Using terraform
, filter the latest official AMI released by Cannonical. Launch EC2 instance.
In the example, terraform will store the state in s3 bucket.
In this example, variables are defined in a separate file.
Example of how to create terraform module and store locally
Example of how to push terraform in github repository and use it.