Last active
April 12, 2017 23:16
-
-
Save jschr/88a133971ae4c208905eff0532e7de3f to your computer and use it in GitHub Desktop.
terraform dev environment
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
# 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