Copilot-cli: Can't access secrets - "ResourceInitializationError: unable to pull secrets or registry auth...

Created on 23 Mar 2021  路  5Comments  路  Source: aws/copilot-cli

hi there! I'm enjoying Copilo, but am running into some issues. Have a pretty basic setup (pipeline, dockerfile, manifest, etc.) and started adding in SSM params to use as secrets, but can't get my cluster to update to a new version of a task now because I consistently get this message:

ResourceInitializationError: unable to pull secrets or registry auth: execution resource retrieval failed: unable to retrieve secrets from ssm: service call has been retried 1 time...

Haven't done any customization or anything to it, little perplexed. Was able to access secrets with a "dummy" version of the service earlier (lightweight echo server) but can鈥檛 now. Thanks for your work and help! :)

Most helpful comment

Ah wait - my CLI might have written one of them to the wrong account! I鈥檒l double check and update here 馃憤

All 5 comments

Hi @markthethomas !

Just to make sure, do the SSM parameters have the tags copilot-application, and copilot-environment? https://aws.github.io/copilot-cli/docs/developing/secrets/

Yes indeed!

Ah wait - my CLI might have written one of them to the wrong account! I鈥檒l double check and update here 馃憤

Hi @markthethomas ! I just wanted to double check if the secrets are working now or if there is anything else that we can help with?

@efekarakus hey! yes this was all on me - I had set AWS_PROFILE in a different terminal session but not in another one and had written like 2-3 of the secrets to the wrong aws account. doh! Totally my bad. Was so confused 馃槄 thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

aidansteele picture aidansteele  路  3Comments

fullstackdev-online picture fullstackdev-online  路  3Comments

mikelhamer picture mikelhamer  路  3Comments

iamhopaul123 picture iamhopaul123  路  3Comments

kohidave picture kohidave  路  3Comments