Hi! We have been using the pre-launch dev envs so far, but now switched to the production plan and got the proper staging & productions envs.
I got to deploy to Staging OK, but I have trouble adding AWS secrets there. I didn't find from the docs how it is supposed to work, I don't remember from where we got the info for how it has been working for dev envs.
Is it somehow different?
I authenticated using metaplay-auth and it worked to deploy the docker image fine, but starting the server fails as secrets are missing.
With the same auth I get this when trying to add secrets:
> $ aws secretsmanager create-secret --region eu-west-1 --name metaplay/p1/deployments/imaginedesign-staging/test --secret-string test
>
> An error occurred (AccessDeniedException) when calling the CreateSecret operation: User: arn:aws:sts::252344532344:assumed-role/metaplay-p1-rare-rice-gameserver-admin/stackapi is not authorized to perform: secretsmanager:CreateSecret on resource: metaplay/p1/deployments/imaginedesign-staging/test because no identity-based policy allows the secretsmanager:CreateSecret action
rare-rice is the name our staging env and i did the auth with the eval that works for deploying
> $ eval $(npx @Metaplay Support/metaplay-auth get-aws-credentials -o beyondlabs -p imaginedesign -e staging -f env)