initial commit of replacement infrastructure automation
[awsible] / infrastructure / modules / tf_aws_vpc / outputs.tf
diff --git a/infrastructure/modules/tf_aws_vpc/outputs.tf b/infrastructure/modules/tf_aws_vpc/outputs.tf
new file mode 100644 (file)
index 0000000..ca68bbc
--- /dev/null
@@ -0,0 +1,35 @@
+output "vpc_id" {
+       value = "${aws_vpc.default.id}"
+}
+
+output "vpc_name" {
+       value = "${var.project}-${var.environment}-vpc"
+}
+
+output "public_subnets" {
+       value = "${aws_subnet.public.*.id}"
+}
+
+output "private_subnets" {
+       value = "${aws_subnet.private.*.id}"
+}
+
+output "nat_gateway_ips" {
+       value = "${aws_eip.nat.*.public_ip}"
+}
+
+output "private_route_table_ids" {
+       value =  "${aws_route_table.private.*.id}"
+}
+
+output "public_route_table_id" {
+       value = "${aws_route_table.public.id}"
+}
+
+output "base_policy_arn" {
+  value = "${aws_iam_policy.base.arn}"
+}
+
+output "general_access_sg_id" {
+  value = "${aws_security_group.general-access.id}"
+}