From the course: Complete Guide to AWS Software Deployment

Unlock the full course today

Join today to access over 24,400 courses taught by industry experts.

Solution: Use CloudFormation to build an instance with SSM

Solution: Use CloudFormation to build an instance with SSM - Amazon Web Services (AWS) Tutorial

From the course: Complete Guide to AWS Software Deployment

Solution: Use CloudFormation to build an instance with SSM

- [Instructor] All right, let's take a look at the solution to this challenge. If you open up instance and security group.yml, we can see our starting point and we can notice right away a few things that we can remove to get where we're going. First of all, we don't need the key name because we'll not be using an SSH key to reach this instance. So not only can we remove that from the parameter section, but we can go down to the instance and remove the key name reference. Furthermore, we don't need these security group IDs on this instance anymore, so we can remove these two lines as well as this entire section here, defining a security group. Now that's it for deleting content. To show you what we'll add, I'll go into the challenge solution folder and open up this instance-ssm-access.yml. Open it up and you'll see the first and simplest solution to this challenge. Up above, you can see I've made the deletions that I just described and I've added one new thing, IamInstanceProfile. This…

Contents