Merge pull request #79 from lowescott/ec2-cleanup

Clean up simple EC2 environment
This commit is contained in:
Scott S. Lowe 2017-05-25 09:34:51 -06:00 committed by GitHub
commit c1c422b18a
3 changed files with 9 additions and 4 deletions

View file

@ -0,0 +1,3 @@
output "instance_ip_address" {
value = "${aws_instance.test-01.public_ip}"
}

View file

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

View file

@ -1,17 +1,19 @@
variable "user_region" {
type = "string"
description = "AWS region in which to create all resources"
}
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"
}
variable "sec-group" {
type = "string"
description = "AWS security group to apply to instances"
default = "sg-7099b514"
}