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

demandé il y a 5 ans241 vues
1 réponse
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

répondu il y a 5 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions