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 공식업데이트됨 일 년 전
- AWS 공식업데이트됨 2년 전
Thank you this worked, Thanks for the reply, thanks sir.