Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/d-w-arnold/aws-ec2-examples
AWS EC2 user data source code, and other config files.
https://github.com/d-w-arnold/aws-ec2-examples
aws-ec2 cloud-init ec2-instance ec2-user-data shell
Last synced: 9 days ago
JSON representation
AWS EC2 user data source code, and other config files.
- Host: GitHub
- URL: https://github.com/d-w-arnold/aws-ec2-examples
- Owner: d-w-arnold
- License: gpl-3.0
- Created: 2024-11-06T15:49:01.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2024-11-20T12:24:23.000Z (about 1 month ago)
- Last Synced: 2024-11-20T13:28:09.997Z (about 1 month ago)
- Topics: aws-ec2, cloud-init, ec2-instance, ec2-user-data, shell
- Language: Shell
- Homepage: https://github.com/d-w-arnold/aws-cdk-examples
- Size: 25.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# aws-ec2-examples
What is [AWS EC2](https://aws.amazon.com/ec2/)?
This repo is a submodule of: [aws-cdk-examples](https://github.com/d-w-arnold/aws-cdk-examples)
### User Data
Each directory contains a `user-data.sh` script, which acts as the [EC2 user data](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/user-data.html).
### Useful debug commands
Note: These commands are intended to be run on the EC2 instance which has the EC2 user data set.
#### Check which steps of EC2 User Data have run:
```bash
cat /var/log/cloud-init-output.log | grep "##"
```#### Tail the last 200 lines of the output log for the EC2 User Data:
```bash
tail -f -n 200 /var/log/cloud-init-output.log
```#### See user data passed to the EC2 instance.
```bash
curl -s http://instance-data/latest/user-data
```