caf example output from caf tooling created to ease wrangling large configuration files
# Init a "stack" à la AWS CDK, Terraform CDK
stack = Stack(stack_name='stack1', region_name="northcentralus", network_cidr='10.0.0.0/16')
# Add "service" subnets
dsc_db_host_compute = stack.add_service(service_name='dsc-db-host-compute')
dsc_db_container_compute = stack.add_service(service_name='dsc-db-container-compute')
dsc_azml_compute = stack.add_service(service_name='dsc-azml-compute')
# OOP style actions on "service" subnets
dsc_db_host_compute.allow_inbound_from(dsc_db_container_compute, port_range="443", protocol='tcp')
# Output the files in this repo
stack.gen_caf()
git clone https://github.com/moon0440/caf-example.git
cd caf-example
az login
terraform plan -out plan.out
terraform apply plan.out