Skip to content

Instantly share code, notes, and snippets.

@jschr
Last active April 12, 2017 23:16
Show Gist options
  • Save jschr/88a133971ae4c208905eff0532e7de3f to your computer and use it in GitHub Desktop.
Save jschr/88a133971ae4c208905eff0532e7de3f to your computer and use it in GitHub Desktop.
terraform dev environment
# the dev environment's input variables
variable "region" { }
variable "aws_access_key" { }
variable "aws_secret_key" { }
variable "domain" { }
variable "github_username" { }
variable "mailgun_api_key" { }
variable "mailgun_smtp_password" { }
# set up the aws provider
provider "aws" {
region = "${var.region}"
access_key = "${var.aws_access_key}"
secret_key = "${var.aws_secret_key}"
}
# set up the mailgun provider
provider "mailgun" {
api_key = "${var.mailgun_api_key}"
}
# the app module
module "app" {
source = "../modules/app"
domain = "${var.domain}"
github_username = "${var.github_username}"
mailgun_smtp_password = "${var.mailgun_smtp_password}"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment