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 Answers
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
EXPERT
answered a year ago
  • 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
answered a year ago
  • I have done so, but the issue remains.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions