The AMI ID in this template is based on the Frankfurt region. If you are practicing in a different region, then make sure yo change the AMI ID.

AWSTemplateFormatVersion: "2010-09-09"
Description: "EC2 instance for development."
Resources: 
  MyEC2Instance: 
    Type: AWS::EC2::Instance
    Properties: 
      ImageId: "ami-0a1ee2fb28fe05df3"
      InstanceType: "t2.micro"


Custom IAM Policy used in the video:


{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": [
                "ec2:*",
                "s3:GetObject"
            ],
            "Resource": "*"
        }
    ]
}