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 | |
# Got most of this from http://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_cloudwatch_logs.html | |
# and https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_awslogs.html | |
# Install awslogs and the jq JSON parser | |
yum install -y awslogs jq aws-cli nfs-utils | |
# ECS config | |
# ECS_AVAILABLE_LOGGING_DRIVERS is needed if you're not using the ECS optimized ami | |
{ |
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
terraform { | |
backend "s3" { | |
bucket = "bucket_name_here" | |
key = "bucket_key" | |
dynamodb_table = "table_name_here" | |
region = "us-east-1" | |
profile = "profile_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
{ | |
"version": 3, | |
"terraform_version": "0.10.3", | |
"serial": 3, | |
"lineage": "blah-blah", | |
"modules": [ | |
{ | |
"path": [ | |
"root" | |
], |
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
variable "profile" {} | |
variable "dynamodb_table_name" {} | |
variable "s3_bucket_name" {} | |
provider "aws" { | |
region = "us-east-1" | |
profile = "${var.profile}" | |
version = "~> 0.1" | |
} |