Open thpham opened 1 year ago
The branch with the proposition is ready here: https://github.com/thpham/terraform-oci-drg/commits/fix/issue-14-drg-attachment-another-cmp
I'm just waiting the Oracle contribution Agreement to be validated and completed on my company side.
Community note
Description
In the context of VPC attachments to a DRG which is in another compartment (because potentially managed by other Network dept.), we would like to be able to use this module close to where we create the VPCs which will be attached to it. Therefore, beside the policies statements* required to do the attachments, we would need to adapt the current code with the terraform proposition below.
Note:
policy statements required to attach VPCs in another compartment than the DRG.
New or existing resource(s)
drg_compartment_id
which is null by defaultdata.oci_core_drgs.drg_data
to use it in case the DRG is in another compartment.Example Terraform configuration
References