Skip to content

Instantly share code, notes, and snippets.

@albertoal
Created November 2, 2018 19:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save albertoal/a905138afce25f31236c070c878b055e to your computer and use it in GitHub Desktop.
Save albertoal/a905138afce25f31236c070c878b055e to your computer and use it in GitHub Desktop.
provider "aws" {
region = "eu-west-2"
}
terraform {
backend "s3" {
bucket = "tf-state-blog"
key = "dev/terraform"
region = "eu-west-2"
}
}
locals {
azs = ["eu-west-2a", "eu-west-2b", "eu-west-2c"]
environment = "dev"
kops_state_bucket_name = "${local.environment}-kops-state"
// Needs to be a FQDN
kubernetes_cluster_name = "k8s-dev0.domain.com"
ingress_ips = ["10.0.0.100/32", "10.0.0.101/32"]
vpc_name = "${local.environment}-vpc"
tags = {
environment = "${local.environment}"
terraform = true
}
}
data "aws_region" "current" {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment