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개 답변
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
전문가
답변함 일 년 전
  • 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
답변함 일 년 전
  • I have done so, but the issue remains.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠