concept
Private AWS architecture as code
Design module ownership and private application network boundaries.
Formal Syntax & Structure
terraform syntaxterraform
Private AWS architecture as codeWorking Example
Example Snippetterraform
# Illustrative module interfaces only; implementation not supplied.module "network" { source = "./modules/network" vpc_cidr = "10.40.0.0/16"}module "identity" { source = "./modules/identity"}module "security" { source = "./modules/security" vpc_id = module.network.vpc_id}module "database" { source = "./modules/database" subnet_ids = module.network.db_subnet_ids security_group_id = module.security.db_sg_id}module "edge" { source = "./modules/edge" vpc_id = module.network.vpc_id subnet_ids = module.network.edge_subnet_ids security_group_id = module.security.edge_sg_id}module "application" { source = "./modules/application" subnet_ids = module.network.app_subnet_ids security_group_id = module.security.app_sg_id task_role_arn = module.identity.task_role_arn execution_role_arn = module.identity.execution_role_arn target_group_arn = module.edge.target_group_arn database_endpoint = module.database.endpoint}