[`something/like/a/path`](https://google.com)
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
| #! /usr/bin/env bash | |
| # Exit script if you try to use an uninitialized variable. | |
| set -o nounset | |
| # Exit script if a statement returns a non-true return value. | |
| set -o errexit | |
| # Use the error status of the first failure, rather than that of the last item in a pipeline. | |
| set -o pipefail |
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
| package main | |
| import ( | |
| "fmt" | |
| "sort" | |
| "github.com/aws/aws-sdk-go/aws" | |
| "github.com/aws/aws-sdk-go/aws/session" | |
| "github.com/aws/aws-sdk-go/service/ec2" | |
| "github.com/aws/aws-sdk-go/service/ec2/ec2iface" |
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
| #! /usr/bin/env python | |
| """ | |
| # this one has load balancer name | |
| # and does not end in gz | |
| bucket[/prefix]/AWSLogs/aws-account-id/elasticloadbalancing/region/yyyy/mm/dd/aws-account-id_elasticloadbalancing_region_load-balancer-name_end-time_ip-address_random-string.log | |
| # this one has load balancer ID | |
| # and ends in gz |
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 is for python 2/3 compatibility. | |
| # | |
| try: | |
| import urlparse | |
| from urllib import urlencode | |
| except: | |
| import urllib.parse as urlparse | |
| from urllib.parse import urlencode |
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
| import json | |
| import time | |
| import boto3 | |
| # aws swf list-closed-workflow-executions | |
| # --domain $SWF_DOMAIN | |
| # --type-filter name=$WORKFLOW_NAME |
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
| tf plan -target=aws_s3_bucket.tf_remote_config_bucket -out=confbucket.plan | |
| tf apply confbucket.plan | |
| # Configure against your new bucket. | |
| terraform remote config -backend="S3" \ | |
| -backend-config="bucket=project-name-terraform-state" \ | |
| -backend-config="key=env-region-terraform-state/terraform.tfstate" \ | |
| -backend-config="region=us-west-2" \ | |
| -backend-config="encrypt=1" |
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
| # hello |
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
| # /usr/bin/env python |