1 Answer
- Newest
- Most votes
- Most comments
3
Hi, I hope you're keeping well today.
The intrinsic function Fn::Sub would be best for this scenario [1]. So you have your parameter defined like:
Enviroment:
Type: String
Default: "dev"
AllowedValues:
- "dev"
- "uat"
- "prod"
Then in your AWS::DMS::Endpoint resource, for the 'EndpointIdentifier' option define it something like:
Description: "Endpoint test"
Resources:
BasicEndpoint:
Type: "AWS::DMS::Endpoint"
Properties:
....
EndpointIdentifier: !Sub 'fp-epk-${Environment}-dms-target'
....
....
This will populate the psuedo parameter ${Environment} with the value you selected for the parameter Environment.
I hope you find this useful. If you have any additional queries, please let me know!
REFERENCES:
[1] https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html
answered 2 years ago
Relevant content
- AWS OFFICIALUpdated 2 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
Thank you this worked, Thanks for the reply, thanks sir.