Examples:
New vpc and deploy database rds:
locals {
region = "us-east-1"
tags = {
terraform_managed = true
project = "blockscout-supernet"
}
}
module "vpc" {
source = "./aws"
vpc_name = "name"
ssl_certificate_arn = "<arn>"
deploy_ec2_instance_db = false
deploy_rds_db = true
tags = local.tags
}
!!! For work with existed vpc needs a subnet group: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.WorkingWithRDSInstanceinaVPC.html#USER_VPC.Subnets
Existed vpc and deploy database rds:
locals {
region = "us-east-1"
tags = {
terraform_managed = true
project = "blockscout-supernet"
}
}
module "vpc" {
source = "./aws"
existed_vpc_id = "vpc-05626****"
existed_private_subnets_ids = ["subnet-*", "subnet-*", "subnet-*"]
existed_public_subnets_ids = ["subnet-*", "subnet-*", "subnet-*"]
existed_rds_subnet_group_name = "<name>"
ssl_certificate_arn = "<arn>"
}