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年前243ビュー
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年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ