Template example (note that in practice, two spaces should be used as indentation instead of 4 spaces or tabs)
Using a template creates a stack which maps a logical resource in template to a physical resource (e.g. actual EC2 instance). If the template is updated, the stack can also be updated accordingly.
Template file can be uploaded to AWS console, which creates a S3 bucket for that file with a name starting with cf-