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
エキスパート
回答済み 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.

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ