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
| ARN Base Pattern :- | |
| arn:<aws_parition>:<aws_service>:[<aws_region>]:<account_id>:<root | resource_type>:/<resource_name>[/<sub_resource_names>...] | |
| i. <aws_partition> | |
| Regex - (aws|aws-us-gov|aws-cn) | |
| ii. <aws_service> - No fixed pattern | |
| iii. <aws_region> - No fixed pattern | |
| Most of the regions occur in combination of 2 letter followed by "-" followed by a combination of direction based word , followed by a "-" and then a digit. |
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 | |
| DATE=$(date "+%Y-%m-%d") | |
| GITHUB_OWNER=petenelson | |
| BACKUPS_DIR=~/backups | |
| TAR_FILE=github-repos-$DATE.tar.gz | |
| S3_BUCKET=s3://github-offsite-backup | |
| # Creates a directory if it doesn't exist | |
| # $1: dir path |
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
| #-------------------------------------------------------------- | |
| # This module creates all resources necessary for a beanstalk | |
| # application and environment | |
| #-------------------------------------------------------------- | |
| variable "env_name" {} | |
| variable "vpc_id" {} | |
| variable "beanstalk_solution_stack_name" {} | |
| variable "beanstalk_private_subnets" {} | |
| variable "beanstalk_public_subnets" {} |
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
| <!doctype html> | |
| <title>Site Maintenance</title> | |
| <style> | |
| body { text-align: center; padding: 150px; } | |
| h1 { font-size: 50px; } | |
| body { font: 20px Helvetica, sans-serif; color: #333; } | |
| article { display: block; text-align: left; width: 650px; margin: 0 auto; } | |
| a { color: #dc8100; text-decoration: none; } | |
| a:hover { color: #333; text-decoration: none; } | |
| </style> |