Fixes #284
Changes the AWS profile to be a user-supplied variable, opposed to statically being just `terraform`.
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
provider "aws" {
|
provider "aws" {
|
||||||
shared_credentials_file = "${var.shared_credentials_file}"
|
shared_credentials_file = "${var.shared_credentials_file}"
|
||||||
region = "${var.region}"
|
region = "${var.region}"
|
||||||
profile = "terraform"
|
profile = "${var.profile}"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Create a VPC to launch our instances into
|
# Create a VPC to launch our instances into
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
region = "us-west-1"
|
region = "us-west-1"
|
||||||
|
profile = "terraform"
|
||||||
shared_credentials_file = "/home/user/.aws/credentials"
|
shared_credentials_file = "/home/user/.aws/credentials"
|
||||||
public_key_name = "id_logger"
|
public_key_name = "id_logger"
|
||||||
public_key_path = "/home/user/.ssh/id_logger.pub"
|
public_key_path = "/home/user/.ssh/id_logger.pub"
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
variable "region" {
|
variable "region" {
|
||||||
default = "us-west-1"
|
default = "us-west-1"
|
||||||
}
|
}
|
||||||
|
variable "profile" {
|
||||||
|
default = "terraform"
|
||||||
|
}
|
||||||
variable "availability_zone" {
|
variable "availability_zone" {
|
||||||
description = "https://www.terraform.io/docs/providers/aws/d/availability_zone.html"
|
description = "https://www.terraform.io/docs/providers/aws/d/availability_zone.html"
|
||||||
default = ""
|
default = ""
|
||||||
|
|||||||
Reference in New Issue
Block a user