mirror of
https://codeberg.org/scottslowe/learning-tools.git
synced 2026-03-11 09:04:37 +00:00
commit
10476fbcdc
3 changed files with 9 additions and 3 deletions
3
terraform/aws/new-vpc/output.tf
Normal file
3
terraform/aws/new-vpc/output.tf
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
output "instance_public_ip" {
|
||||
value = "${aws_instance.coreos01.public_ip}"
|
||||
}
|
||||
|
|
@ -1,3 +1,3 @@
|
|||
provider "aws" {
|
||||
region = "us-west-2"
|
||||
region = "${var.user_region}"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
}
|
||||
Loading…
Reference in a new issue