Fetching Secret Key from Parameter Store: ParameterNotFound

0

I am having an issue during my CodeDeploy scripts because when I run the aws cli get-parameter command on a Parameter Store parameter that holds a AWS_SECRET_KEY value, I get "ParameterNotFound".

Is this because it's a secret key for an account?

When using EC2Connect and running the same command from the shell, I am able to get the value from the Parameter Store.

Any recommendations on how to troubleshoot why the Parameter is returning ParameterNotFound though I can clearly see that it is in the Store?

2 Antworten
0

Hi,

Could you check if the CodeDeploy service role has the required permissions to access to that Parameter Store key? Note that if you are using a secure string parameter, it will also need permission on the KMS key to decrypt data.

profile picture
EXPERTE
beantwortet vor einem Jahr
  • I have done so, but the issue remains.

  • I think it's looking for the AWS_SECRET_ACCESS_KEY in the environment? When I try to run the script from the command prompt, I see "Partial credentials found in env, missing: AWS_SECRET_ACCESS_KEY"

  • I am able to run 4 other get-parameter aws commands right before it and they work just fine.

  • I'm so sorry. Could you update the question and add part of the CodeDeploy scripts? I think it would be useful to help you.

0

Yes, please check the role as previous answer suggests.

profile picture
beantwortet vor einem Jahr
  • I have done so, but the issue remains.

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen