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 | |
| # Script to clone all repositories from AWS CodeCommit on a specific AWS Account. | |
| # This script clone ssh repositories, but it can be changed to use https | |
| # Requirements | |
| # aws-cli - https://aws.amazon.com/pt/cli/ | |
| # jq - https://stedolan.github.io/jq/ | |
| # git |
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 | |
| # Use EC2 Role to allow the EC2 modify Route 53 record, instead of AWS_SECRET_KEYS | |
| AWS_REGION="us-east-1" | |
| HOSTED_ZONE_ID="XXXXXXXXXXXXXXXXXXXX" | |
| DOMAIN_NAME="example.com" | |
| # Get the current IP address | |
| EC2_IP=$(curl http://169.254.169.254/latest/meta-data/public-ipv4) |
OlderNewer