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
Tagged:
0