AWS CloudFormation Template Tutorial

Learn how to set up a CloudFormation Template, how it’s being updated, what happens and more!
If you want to learn more:
Get the AWS CloudFormation Master Class course at a special price!

Don’t forget to subscribe to get more content about Apache Kafka and AWS!

I’m Stephane Maarek, a consultant and software developer, and I have a particular interest in everything related to Big Data, Cloud and API. I sat on the 2019 Program Committee organizing the Kafka Summit. I’m also an AWS Certified Solutions Architect, Developer, SysOps Administrator, and DevOps Engineer.

My other courses are available here:

Follow me on social media:
LinkedIn –
Twitter –
Medium –


30 thoughts on “AWS CloudFormation Template Tutorial”
  1. Resources:


    Type: AWS::EC2::Instance


    AvailabilityZone : us-east-2

    ImageId:ami-0cc2ff2b4c4608a2f (64-bit Arm)


    – Cannot render the template because of an error.:
    YAMLException: can not read a block mapping entry; a multiline key may not be an implicit key at line 7,

    column 34: InstanceType:t2.micro ^

    I am getting above error, Could you please share your help

  2. Hello, I also had a question regarding stacks in CloudFormation. How would I go about checking the individual cost of a stack created? I know when creating the template you can use the AWS Pricing Calculator to determine that information prior to creation, but wanted to know how to check that information after the fact. Any thoughts?

  3. Can you programmatically upload files to the newly created instance using CloudFormation?

  4. Hey, I don't have much knowledge on aws can i buy this course or do i need to take any intro course before this

  5. Am I the only one who noticed him speak over is mistake with Course and CloudFormation

  6. Hi Stephane.
    Just a quick question. As you said when I update the cloud formation stack, it deletes the old instance and creates a new instance. But I have the old instance with important services installed. The new instance doesn't have it installed.
    Any thoughts on why it is doing that?
    I saw there is another way, which is importing resources into the current stack, but we need to give a deletion policy for the modified resources.
    Any other suggestions to update just the stack template without affecting/modifying the instance?

  7. Thank you stephane i learn alot from your AWS Solution Architect and SysOps course! 🙂

Leave a Reply

Your email address will not be published.

Captcha loading...