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 Not Detecting Existing Remote State in S3 After Migration from OCI Resource Manager to Git

Hi Team,

We have a production OCI environment provisioned using Terraform through OCI Resource Manager, which includes compartments, IAM, networking, OIC, ATP, and compute resources. The Terraform code and state file are available.

The client now wants to manage the infrastructure using GitHub pipelines. I have uploaded the Terraform code to a GitHub repository and migrated the state file to an AWS S3 bucket, as the client has an AWS environment.

However, when running terraform init, Terraform is not detecting the existing state file and indicates that 96 resources need to be created. It appears the backend is not being recognized, even though an S3 backend block has been configured in the

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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