I’m writing Terraform scripts for OCI (Oracle Cloud Infrastructure) Resource Manager.
I want to:
- provision a VCN (Virtual Cloud Network) in a compartment,
- provision public and private subnets on the VCN,
- provision a bastion on the public subnet targeting the private subnet,
- provision a security list for the private subnets to allow access from the bastion and
- update the private subnet to add the security list.
Is it possible to acheive these sequently and automatically? It looks like cyclic or recursive, so I don’t know how to make these possible in Terraform.