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?

已提問 1 年前檢視次數 393 次
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
專家
已回答 1 年前
  • 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
已回答 1 年前
  • I have done so, but the issue remains.

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南