https://github.com/int128/hello-ec2-cloud-init
An example to launch an EC2 instance running a service using Terraform and cloud-init
https://github.com/int128/hello-ec2-cloud-init
aws terraform
Last synced: about 2 months ago
JSON representation
An example to launch an EC2 instance running a service using Terraform and cloud-init
- Host: GitHub
- URL: https://github.com/int128/hello-ec2-cloud-init
- Owner: int128
- License: apache-2.0
- Created: 2020-05-28T10:42:17.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-07-04T12:28:40.000Z (about 6 years ago)
- Last Synced: 2025-10-30T13:41:54.364Z (8 months ago)
- Topics: aws, terraform
- Language: HCL
- Homepage:
- Size: 10.7 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hello-ec2-cloud-init
This is Hello World of Amazon EC2 with cloud-init.
## Getting Started
```sh
brew install terraform
brew cask install session-manager-plugin
```
```sh
# provision the resources
terraform init
terraform apply
```
This example will launch an instance running a background service.
```console
% 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
...
```