Clean up environment

Clean up Terraform+AWS `new-vpc` environment to adhere to standards described in issue #80.

Signed-off-by: Scott Lowe <scott.lowe@scottlowe.org>
This commit is contained in:
Scott Lowe 2017-05-25 10:09:03 -06:00
parent 9fa36f70bf
commit e0228f2809
No known key found for this signature in database
GPG key ID: 949F43F6E6C11780
3 changed files with 9 additions and 3 deletions

View file

@ -0,0 +1,3 @@
output "instance_public_ip" {
value = "${aws_instance.coreos01.public_ip}"
}

View file

@ -1,3 +1,3 @@
provider "aws" {
region = "us-west-2"
region = "${var.user_region}"
}

View file

@ -1,11 +1,14 @@
variable "user_region" {
type = "string"
description = "AWS region in which all resources will be created"
}
variable "keypair" {
type = "string"
description = "AWS SSH keypair to use to connect to instances"
default = "aws_rsa"
}
variable "flavor" {
type = "string"
description = "AWS type to use when creating instances"
default = "t2.micro"
}