Skip to content

Instantly share code, notes, and snippets.

eefahy

  • San Francisco, CA
Block or report user

Report or block eefahy

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View user_data.sh
#!/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
{
View backend.tf
terraform {
backend "s3" {
bucket = "bucket_name_here"
key = "bucket_key"
dynamodb_table = "table_name_here"
region = "us-east-1"
profile = "profile_name"
}
}
View terraform.tfstate
{
"version": 3,
"terraform_version": "0.10.3",
"serial": 3,
"lineage": "blah-blah",
"modules": [
{
"path": [
"root"
],
View main.tf
variable "profile" {}
variable "dynamodb_table_name" {}
variable "s3_bucket_name" {}
provider "aws" {
region = "us-east-1"
profile = "${var.profile}"
version = "~> 0.1"
}
You can’t perform that action at this time.