Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[@aws-cdk/aws-secretsmanager] ARN is incorrect when getting via fromSecretName #11072

Closed
arpowers opened this issue Oct 23, 2020 · 2 comments
Closed
Assignees
Labels
@aws-cdk/aws-secretsmanager Related to AWS Secrets Manager bug This issue is a bug. needs-triage This issue or PR still needs to be triaged.

Comments

@arpowers
Copy link

When using fromSecretName with secrets manager, it returns a secret but the arn property is returned as the name of the secret (used for lookup) not the actual ARN.

Reproduction Steps

const theSecret = secretsmanager.Secret.fromSecretName(
      this,
      "TheSecret",
      "my-secret-name",
    )

return [theSecret.secretArn]

// returns  ["my-secret-name"] should be [<the arn of the secret>]
--- 

This is :bug: Bug Report
@arpowers arpowers added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Oct 23, 2020
@github-actions github-actions bot added the @aws-cdk/aws-secretsmanager Related to AWS Secrets Manager label Oct 23, 2020
@njlynch
Copy link
Contributor

njlynch commented Oct 26, 2020

Duplicate of #10519. PR to fix is #11042.

@njlynch njlynch closed this as completed Oct 26, 2020
@github-actions
Copy link

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-secretsmanager Related to AWS Secrets Manager bug This issue is a bug. needs-triage This issue or PR still needs to be triaged.
Projects
None yet
Development

No branches or pull requests

2 participants