Questions tagged [terraform-provider-oci]

A "provider" module for the cloud infrastructure management framework, allowing Terraform to interact with Oracle's cloud infrastructure resources (OCI).

For additional information:

21 questions
3
votes
3 answers

Simple terraform script failing with 400-CannotParseRequest

I have tried different scripts for creating a simple instance in OCI, but they all fail with the same cryptic error "400-CannotParseRequest" after I ran terraform apply Script: resource "oci_core_instance" "ubuntu_oci_instance" { …
André Roggeri Campos
  • 889
  • 1
  • 11
  • 28
2
votes
3 answers

How to add new rule in existing Default Route Table in OCI using terraform

I am trying to create a rule in the existing Default Route Table in OCI using terraform. Basically I am trying to add a rule for internet gateway so I can access it using ssh. not sure but I am not able to access TCP till I am not adding rule in…
1
vote
1 answer

Create a Network Load Balancer on Oracle Cloud Infrastructure with a Reserved IP using Terraform

Using Terraform to set up a Network Load Balancer on Oracle Cloud Infrastructure, it works as expected if created with an ephemeral public IP, however one created using a reserved public IP does not respond. Here are the exact Terraform resourses…
starfry
  • 9,273
  • 7
  • 66
  • 96
1
vote
0 answers

Python_terraform lib does not apply init command during the initial start of the code

I am trying to invoke the terraform code using the python_terraform module but the issue is whenever I am trying to run the code for the first time it does not invoke the "terraform init" automatically, I have to manually execute the "terraform…
Vivek Minj
  • 11
  • 1
1
vote
1 answer

Getting the error in terraform code while trying to connect to linux server in OCI cloud shell . ------Failed to read ssh private key: no key found

Getting the error in terraform code while trying to connect to linux server in OCI cloud shell . ------Failed to read ssh private key: no key found Below is my code : - resource "null_resource" "remote-exec" { provisioner…
1
vote
1 answer

UPDATED - Terraform OCI - create multiple VCN in different regions

I would like to create 2 VCN and other resources inside two or more regions. I upload my code inside this github account When i execute the code (you have to set the tenancy, user, fingerprint, etc) i don't have errors, but: When I go to the root…
Julio
  • 471
  • 5
  • 20
0
votes
1 answer

replace_triggered_by alternative prior to terraform 1.2

I have requirement to re-create the VM when hardware shapes changes. replace_triggered_by is one of the possible solution when shape changes VM can be replace easily, however we have constraints for terraform version and can not use version 1.X. Can…
Jitendra
  • 29
  • 3
0
votes
0 answers

How to bring my own key to OCI Vault using Terraform?

I'm trying to use this feature of OCI Vault on my Terraform code, but I can't find a way to do it. There's a restore_from_file key, but I don't think that's what I'm looking for. Please help!
0
votes
0 answers

Terraform core instance creation, 404 unauthorized error

Error: 404-NotAuthorizedOrNotFound, Authorization failed or requested resource not found. Suggestion: Either the resource has been deleted or service Core Instance need policy to access this resource. Policy reference:…
0
votes
0 answers

OCI: How to extract multiple instances using regex expression

I am trying to extract multiple host with regex pattern but it is returning none We are having below 3 servers application-host-ad1-01 application-host-ad1-02 application-host-ad1-03 Running below content in a file, using terraform plan data…
0
votes
0 answers

Why am I getting this 404 Authorization error on Terraform OCI?

Trying to provision a network in OCI and I'm getting this same error for every single subnet even though the "terraform plan" is successful with no issues. Anybody know what the problem is here? Error: 404-NotAuthorizedOrNotFound, Authorization…
0
votes
1 answer

how to pass params to bash file from terraform

I am using cloud-init to run commands on my instance using user-data. I want to create password for jupyter notebook that I want to start as systemd. this is my terraform main.tf resource "oci_core_instance" "jupyterlab_instance" { metadata = { …
masterfly
  • 861
  • 4
  • 11
  • 24
0
votes
1 answer

Not able to connect to remote host via terraform OCI ,remote-exec

I am new to Terraform , OCI . So I am now trying to ssh on a linux host in my OCI via cloud shell, but that host is in a private subnet. So I am trying below command but getting timeout error. Could you please tell me where I am getting this…
0
votes
1 answer

Terraform OCI - 403 Please go to your home region

I currently have a terraform code to create some basic infrastructure on oracle and it works if I pass the region "us-sanjose-1" ", but when I change to the region" us-ashburn-1 "it generates the following error: Error: 403-NotAllowed Provider…
0
votes
1 answer

How create multiple VCN at the same time

I have a problem, i need create more than one VCN. I want to set variables into a JSON file. like this: init_values.json { "terraform": { "tenancy_ocid": "ocid1.ten.xxxxxxxxxxxxxxxxxx", "user_ocid": "ocid1.user..xxxxxxxxxxxxxxxxxx", …
Julio
  • 471
  • 5
  • 20
1
2