oci_bastion_bastion

This resource provides the Bastion resource in Oracle Cloud Infrastructure Bastion service.

Creates a new bastion. A bastion provides secured, public access to target resources in the cloud that you cannot otherwise reach from the internet. A bastion resides in a public subnet and establishes the network infrastructure needed to connect a user to a target resource in a private subnet.

Example Usage

resource "oci_bastion_bastion" "test_bastion" {
	#Required
	bastion_type = var.bastion_bastion_type
	compartment_id = var.compartment_id
	target_subnet_id = oci_core_subnet.test_subnet.id

	#Optional
	client_cidr_block_allow_list = var.bastion_client_cidr_block_allow_list
	defined_tags = {"foo-namespace.bar-key"= "value"}
	dns_proxy_status = var.bastion_dns_proxy_status
	freeform_tags = {"bar-key"= "value"}
	max_session_ttl_in_seconds = var.bastion_max_session_ttl_in_seconds
	name = var.bastion_name
	phone_book_entry = var.bastion_phone_book_entry
	static_jump_host_ip_addresses = var.bastion_static_jump_host_ip_addresses
}

Argument Reference

The following arguments are supported:

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

Attributes Reference

The following attributes are exported:

Timeouts

The timeouts block allows you to specify timeouts for certain operations: * create - (Defaults to 20 minutes), when creating the Bastion * update - (Defaults to 20 minutes), when updating the Bastion * delete - (Defaults to 20 minutes), when destroying the Bastion

Import

Bastions can be imported using the id, e.g.

$ terraform import oci_bastion_bastion.test_bastion "id"