CloudFormation – 5

Parameters from SSM

Consider such a yaml template:

Now let’s create the parameteres in SSM:

AWS Systems Manager -> Parameter Store -> Create parameter

Now go and create the second parameter. First copy the AMI Id.

And create parameter:

Create ->

And now go and create the stack

Next ->

The stack is being created. On the parameteres tab we see used parameteres and the values:

When we go to the created EC2 instance we see that instance type and the AMI is which was selected:

 

Now let’s change the value of an AMI parameter:

And update the stack:

Next -> Next ->

AMI of EC2 instance has been changed:

 

Public Parameters from SSM