Skip to content

Instantly share code, notes, and snippets.

variable "profile" {}
variable "dynamodb_table_name" {}
variable "s3_bucket_name" {}
provider "aws" {
region = "us-east-1"
profile = "${var.profile}"
version = "~> 0.1"
}
{
"version": 3,
"terraform_version": "0.10.3",
"serial": 3,
"lineage": "blah-blah",
"modules": [
{
"path": [
"root"
],
terraform {
backend "s3" {
bucket = "bucket_name_here"
key = "bucket_key"
dynamodb_table = "table_name_here"
region = "us-east-1"
profile = "profile_name"
}
}
#!/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
{