Adding VPC/Subnets to config files

This commit is contained in:
2020-07-30 01:59:24 +01:00
parent b33a7001b5
commit 403e007d05
2 changed files with 18 additions and 6 deletions

View File

@@ -1,12 +1,12 @@
# Not needed in a single environment # Not needed in a single environment
option_settings: option_settings:
# aws:ec2:vpc: aws:ec2:vpc:
# VPCId: vpc-02f98fa754899162c VPCId: vpc-016efd8cfbcca99a8
# Subnets: "subnet-0b17872a2b9315fad,subnet-0342e8a0a77b30e23,subnet-0eacb84d238279a58" Subnets: "subnet-00c0725542e08b1d7,subnet-039fd98ceb88c863c,subnet-0eacb84d238279a58"
# DBSubnets: "subnet-0b17872a2b9315fad,subnet-0342e8a0a77b30e23,subnet-0eacb84d238279a58" DBSubnets: "subnet-00c0725542e08b1d7,subnet-039fd98ceb88c863c,subnet-0eacb84d238279a58"
# ELBSubnets: "subnet-0b17872a2b9315fad,subnet-0342e8a0a77b30e23,subnet-0eacb84d238279a58" ELBSubnets: "subnet-00c0725542e08b1d7,subnet-039fd98ceb88c863c,subnet-0eacb84d238279a58"
aws:autoscaling:launchconfiguration: aws:autoscaling:launchconfiguration:
SecurityGroups: "prod-strapi-eb-ec2_sg" SecurityGroups: sg-087f33381c535528b
# aws:elbv2:loadbalancer: # aws:elbv2:loadbalancer:
# ManagedSecurityGroup: sg-0e6f91df2ed07050a # ManagedSecurityGroup: sg-0e6f91df2ed07050a
# SecurityGroups: sg-0e6f91df2ed07050a # SecurityGroups: sg-0e6f91df2ed07050a

View File

@@ -4,6 +4,18 @@ output "s3_static_assets_id" {
description = "Name of the static assets S3 bucket." description = "Name of the static assets S3 bucket."
} }
# VPC
output "vpc_id" {
value = module.vpc.vpc_id
description = "The ID of the VPC."
}
output "subnet_public_ids" {
value = module.subnets.public_subnet_ids
description = "The IDs of the public subnets."
}
# Security groups # Security groups
output "aws_security_group_ec2_security_group" { output "aws_security_group_ec2_security_group" {