Changes the AWS profile to be a user-supplied variable, opposed to
statically being just `terraform`.
This commit is contained in:
chiggins
2019-05-15 15:18:45 -05:00
parent 82976fd265
commit 0f8f230d81
3 changed files with 5 additions and 1 deletions

View File

@@ -2,7 +2,7 @@
provider "aws" {
shared_credentials_file = "${var.shared_credentials_file}"
region = "${var.region}"
profile = "terraform"
profile = "${var.profile}"
}
# Create a VPC to launch our instances into

View File

@@ -1,4 +1,5 @@
region = "us-west-1"
profile = "terraform"
shared_credentials_file = "/home/user/.aws/credentials"
public_key_name = "id_logger"
public_key_path = "/home/user/.ssh/id_logger.pub"

View File

@@ -1,6 +1,9 @@
variable "region" {
default = "us-west-1"
}
variable "profile" {
default = "terraform"
}
variable "availability_zone" {
description = "https://www.terraform.io/docs/providers/aws/d/availability_zone.html"
default = ""