aws-amplify / amplify-cli

The AWS Amplify CLI is a toolchain for simplifying serverless web and mobile development.
Apache License 2.0
2.83k stars 823 forks source link

Amplify CLI fails to create secret in AWS SSM #12878

Closed krypticbit closed 1 year ago

krypticbit commented 1 year ago

How did you install the Amplify CLI?

npm -g

If applicable, what version of Node.js are you using?

18.16.1

Amplify CLI Version

12.1.1

What operating system are you using?

Mac

Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.

No manual changes made

Describe the bug

When I create a lambda and configure a new secret for it via the amplify CLI, the secret is not created (it does not appear in the AWS Secrets Manager).

Expected behavior

I except the secret to appear in the AWS Secrets Manager and my lambda to be able to read the secret.

Reproduction steps

Create a function with access to a secret key via the amplify CLI

Project Identifier

3426d9e4749693f0bbf604ff45b62fa6

Log output

``` # Put your logs below this line ```

Additional information

No response

Before submitting, please confirm:

josefaidt commented 1 year ago

Hey @krypticbit :wave: thanks for raising this! Despite the naming/acronym, Amplify CLI will create parameters in AWS Systems Manager (SSM) Parameter Store. More details on how Amplify CLI uses SSM Parameter Store can be found on our docs https://docs.amplify.aws/cli/reference/ssm-parameter-store/

krypticbit commented 1 year ago

@josefaidt Ah, that was indeed the issue! I see that the Amplify CLI has created the secret in the parameter store as expected. Thank you for your assistance!

github-actions[bot] commented 1 year ago

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see. If you need more assistance, please open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.