summaryrefslogtreecommitdiffstats
path: root/subnets.tf
diff options
context:
space:
mode:
authorSpike <avlampson+git@gmail.com>2019-04-07 22:03:31 +0100
committerSpike <avlampson+git@gmail.com>2019-04-07 22:03:31 +0100
commitbb81085619769aca861ab5d5bbff86f71c9435d2 (patch)
tree80b45de34d9f0647c10e6d6fae5b408c21c190c5 /subnets.tf
downloadfundapp_demo-master.zip
fundapp_demo-master.tar.gz
fundapp_demo-master.tar.bz2
Autoscaling Group, and associated controls and configsHEADmaster
Diffstat (limited to 'subnets.tf')
-rw-r--r--subnets.tf18
1 files changed, 18 insertions, 0 deletions
diff --git a/subnets.tf b/subnets.tf
new file mode 100644
index 0000000..7ed881f
--- /dev/null
+++ b/subnets.tf
@@ -0,0 +1,18 @@
+# Public Subnets
+resource "aws_subnet" "public_1" {
+ vpc_id = "${aws_vpc.fundapp_demo_vpc.id}"
+ cidr_block = "${var.vpc_net_prefix}.10.0/24"
+ availability_zone = "${var.aws_az_1}"
+}
+
+resource "aws_subnet" "public_2" {
+ vpc_id = "${aws_vpc.fundapp_demo_vpc.id}"
+ cidr_block = "${var.vpc_net_prefix}.20.0/24"
+ availability_zone = "${var.aws_az_2}"
+}
+
+resource "aws_subnet" "public_3" {
+ vpc_id = "${aws_vpc.fundapp_demo_vpc.id}"
+ cidr_block = "${var.vpc_net_prefix}.30.0/24"
+ availability_zone = "${var.aws_az_3}"
+}