Closed dleavitt closed 2 months ago
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
arn:<stuff...>:MySecret9A3F29-vdHtS43BP1i1-knwb3S
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
Thank you very much, especially for the great explanation of what's going on!
Released as version 1.0.23.
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