Last active
September 28, 2022 19:56
-
-
Save morenoh149/a6e4f3970d983754c6bdb0e84837b804 to your computer and use it in GitHub Desktop.
aws solution architect certification user data script for ec2 instances
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
yum update -y | |
yum install -y httpd | |
systemctl start httpd | |
systemctl enable httpd | |
echo "<h1>Hello World from $(hostname -f)</h1>" > /var/www/html/index.html |
when creating rds instances you will want to enable DNS Hostnames on the VPC https://www.youtube.com/watch?v=PuFGvU3jbtk
if sqlectron doesn't load the rds tables try https://dbeaver.io/
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you delete the default vpc's you can recreate them by following https://www.youtube.com/watch?v=TUTqYEZZUdc, doublecheck your security groups allow http traffic and have an internet gateway and route tables.