oracle/terraform-examples

rhel74-images - Need clearer examples in configuration.tf

alexng-canuck opened this issue · 5 comments

Issue by goltermann
Monday Dec 11, 2017 at 19:28 GMT
Originally opened as oracle/terraform-provider-oci#383


When running through an example, I got caught up a few times on putting in bad data. We should make the build_env examples easier:

  1. Compartment - you cannot use the root compartment, make that clear
  2. AD - you need to specify the AD as "AD-N" without any other prefix or suffix
  3. Subnet - the subnet cannot contain a space - that's an issue, because if you create a VCN via the UI and have it automatically create subnets, it will create them of the form "Public Subnet xXXx:REGION-AD"

Comment by goltermann
Monday Dec 11, 2017 at 22:00 GMT


Also of note, the subnet needs to allow ping to work - so the security list should have ICMP All on the 10.0.0.0/16 subnet.

Comment by nelsonse
Tuesday Dec 12, 2017 at 00:28 GMT


In addition, subnet also needs port 80 open as well.

Comment by briangustafson
Monday Dec 18, 2017 at 19:42 GMT


The subnet/security list configuration issues could be fixed by creating them through TF rather than using data sources.

Comment by nelsonse
Thursday Jan 04, 2018 at 01:09 GMT


The subnet/security list cannot be automated at this time since there is no way to update security lists in TF currently. Once that functionality is available, the security list for the subnet can be updated with the appropriate rules.

Requirements for security lists are being updated in the README.

I cannot repo the "space in the subnet" issue.

Closing - will track internally.