oracle-terraform-modules/terraform-oci-vcn

add support to allow attaching security lists in the subnet module.

shb-mll opened this issue ยท 4 comments

Community Note

  • Please vote on this issue by adding a ๐Ÿ‘ reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

The subnet modules in its current state sets security_lists_ids to Null. This doesn't allow one to attach an existing SL to a subnet. ( line 26 in file https://github.com/oracle-terraform-modules/terraform-oci-vcn/blob/main/modules/subnet/subnet.tf)
Can we parameterise this and allow an input variable to provider security list id's ?
This enhancement will be very helpful.
If not could you provide a suggestion on how to attach an existing SL to a subnet via the module or with terraform a resource ?

New or Affected Resource(s)

oci_core_subnet

@hyder @snafuz any suggestions on this ?

@hyder @devoncrouse @hyder @snafuz could you provide a suggestion for the above issue.

Has there been any movement on this? I really have a need to do this, and there's no way to add security lists to subnets created with this module after the fact (at least not with Terraform).