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

Terraform Bastion Error

edited Jul 13, 2021 10:43AM in OCI - General 3 comments

Summary

terraform

Content

hi all , does annybody can create an terraform script in order to create a bastion port forwarding to an oracle database running on a VM

As you can see  i created a bastion in an hub vcn an a instance and database on another vcn

for example , my code with the variable values  :

resource "oci_bastion_session" "test_session_managed_ssh" {
  bastion_id = oci_bastion_bastion.Bastion.id
  key_details {
    public_key_content =  mysshkey
  }
  target_resource_details
    session_type       = MANAGED_SSH
    target_resource_id = oci_core_instance.OracleCmanLinux.id  ( oracel OEL resource Id )
    target_resource_operating_system_user_name = "opc"

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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