Let's Reconnect, thank you for making 2022 our best year yet.

Look Back
Q:Creating subnet using terraform and private IP — Cloud Customer Connect
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

Received Response
8
Views
1
Comments
edited Jul 27, 2017 7:00AM in Oracle Cloud Infrastructure - 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!