1 個回答
- 最新
- 最多得票
- 最多評論
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
已回答 2 年前
相關內容
- AWS 官方已更新 2 年前
- AWS 官方已更新 3 年前
- AWS 官方已更新 1 年前
Thank you this worked, Thanks for the reply, thanks sir.