cloudformation with ssm key variable

0

Hi,

I have the following value stored in the SSM key

key: ecrimage-002
value: myimagename

I am trying to retrieve the value by supplying key and referenceid (which is 002) as a "parameter variable" and I cannot seem to get it working in cloudformation.

code is:

"Type": "AWS::ECS::Cluster",  
"Properties" : {  
   "ClusterName" : "{{resolve:ssm:ecrimage:1}}"  

How to pass $referenceid above so I get the value of ecrimage-002 key ? it does not like ecrimage-$referenceid or ecrimage:1}}-$referenceid"

Thanks

질문됨 5년 전247회 조회
1개 답변
0

https://gist.github.com/rshettynj/a04f2165c21dd56763a0fa37f91acb66 I answered my own question.. Nothing special here.. fn::sub does the work.

Edited by: rshettynj on Mar 15, 2019 7:29 AM

답변함 5년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠