-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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-ssm: Allow creating parameters from a full ARN #30790
Comments
The proposed solution should generate CloudFormation template parameters like this working example: Parameters:
ImageIdParam:
Type: AWS::SSM::Parameter::Value<AWS::EC2::Image::Id>
Default: arn:aws:ssm:us-east-1:123456789012:parameter/name/of/my/param |
related to #30646 Is this something you want? |
This issue has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled. |
@pahud Yes, the pull request you linked will cover my use case. Thanks! |
Closing; this has been resolved thanks to #30646 being merged in. |
Comments on closed issues and PRs are hard for our team to see. |
Describe the feature
As it stands today, the
StringParameter
class assumes parameter names given tofromStringParameterAttributes
are in the same account as the containing stack.Please introduce support for providing a pre-existing SSM Parameter Store parameter ARN to create an instance of
StringParameter
.Another acceptable implementation might be to add an
account
property to theStringParameterAttributes
interface and alter the logic insidefromStringParameterAttributes
to use the full ARN for theCfnParameter
default value.Use Case
SSM Parameter Store introduced cross-account sharing in February 2024. The linked post has the following excerpt:
This is my exact use case. I have a String Parameter whose data type is
aws:ec2:image
in account A. The parameter is shared with account B. I have a CloudFormation stack with a Launch Template in account B where I'd like to reference the parameter in account A.Proposed Solution
Add a new static method named
fromStringParameterArn
(or something similar) on theStringParameter
class. This new method should allow me to provide a full ARN for an SSM Parameter Store parameter that can be used in a CloudFormation stack in a different account.Other Information
No response
Acknowledgements
CDK version used
2.148.0
Environment details (OS name and version, etc.)
N/A
The text was updated successfully, but these errors were encountered: