Skip to content

An example to launch an EC2 instance running a service using Terraform and cloud-init

License

Notifications You must be signed in to change notification settings

int128/hello-ec2-cloud-init

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hello-ec2-cloud-init

This is Hello World of Amazon EC2 with cloud-init.

Getting Started

brew install terraform
brew cask install session-manager-plugin
# provision the resources
terraform init
terraform apply

This example will launch an instance running a background service.

% aws ssm start-session --target i-0935e9832a6391309 --region us-west-2

$ tail -f /tmp/helloworld.log
Thu May 28 11:29:08 UTC 2020
Thu May 28 11:29:09 UTC 2020
Thu May 28 11:29:10 UTC 2020
...

About

An example to launch an EC2 instance running a service using Terraform and cloud-init

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published