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

Add secretsmanager #66

Merged
merged 2 commits into from
Aug 29, 2024
Merged

Add secretsmanager #66

merged 2 commits into from
Aug 29, 2024

Conversation

dleavitt
Copy link
Contributor

The resource segment of the ARN has an extra trailing "-abc123" piece that isn't part of the secret name and can't be included in the console URL. It always appears to be a - followed by six alphanumeric chars.

Example:
Secret ARN: arn:<stuff...>:MySecret9A3F29-vdHtS43BP1i1-knwb3S
Secret Name: MySecret9A3F29-vdHtS43BP1i1

Looks like this is specifically documented, so throwing an error if the suffix is missing.

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-secretsmanager-secret.html#cfn-secretsmanager-secret-name

At least for the secrets in my account, the resource segment of the ARN has an extra trailing "-xyZ12" piece that isn't part of the secret name and can't be included in the console URL.

For now just throwing an error if that suffix is missing, but please update / LMK if there are secrets without the suffix in the ARN and what their console URLs are so we can make the helper work for them.
@fxkr fxkr merged commit 2233a61 into link2aws:master Aug 29, 2024
1 check passed
@fxkr
Copy link
Contributor

fxkr commented Aug 29, 2024

Thank you very much, especially for the great explanation of what's going on!

Released as version 1.0.23.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants