Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Q:Creating subnet using terraform and private IP

edited Jul 27, 2017 7:00AM in OCI - General 1 comment

Summary

Q:Creating subnet using terraform and private IP

Content

Hello,

when creating subnets using terraform I would like to Prohibit public IP addresses for Instances in this Subnet. I can't seem to find a parameter that configures this.

I tried something like this (but it didn't work) after looking at the API documentation, https://docs.us-phoenix-1.oraclecloud.com/api/#/en/iaas/20160918/requests/CreateSubnetDetails

resource "baremetal_core_subnet" "TF_PrivateSubnet_Web_PHX_0" {

  availability_domain = "${lookup(data.baremetal_identity_availability_domains.ADs.availability_domains[0],"name")}"

  cidr_block = "10.0.1.0/24"

  display_name = "TF_PrivateSubnet_Web_PHX_0"

  compartment_id = "${var.compartment_ocid}"

  vcn_id = "${baremetal_core_virtual_network.TF_VCN_PHX.id}"

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!