Skip to content
This repository has been archived by the owner on Mar 25, 2022. It is now read-only.

Workspaces support with OCI-C object storage #156

Open
drauba opened this issue Sep 19, 2018 · 0 comments
Open

Workspaces support with OCI-C object storage #156

drauba opened this issue Sep 19, 2018 · 0 comments

Comments

@drauba
Copy link

drauba commented Sep 19, 2018

Terraform Version

Terraform v0.11.7

Affected Resource(s)

terraform backend "s3"

Terraform Configuration Files

terraform {
  backend "s3" {
    bucket                      = "terraform-state"
    key                         = "terraform.tfstate"
    region                      = "uscom-central-1"
    endpoint                    = "https://uscom-central-1.storage.oraclecloud.com/"
    skip_region_validation      = true
    skip_credentials_validation = true
    skip_requesting_account_id  = true
    skip_get_ec2_platforms      = true
    skip_metadata_api_check     = true
    force_path_style            = true
  }
}

Debug Output

$ terraform workspace new test
NotFound: Not Found
        status code: 404, request id: , host id:

Expected Behavior

(From Terraform Docs)
key - (Required) The path to the state file inside the bucket. When using a non-default workspace, the state path will be /workspace_key_prefix/workspace_name/key

A new object should be created: terraform-state/test/terraform.tfstate

Actual Behavior

See debug output - no new statefile created

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

  1. Setup OPC provider and remote state backend
  2. terraform init
  3. terraform workspace new test

Important Factoids

Remote state works perfectly fine in default workspace.

OCI-C does not allow sub directories within a bucket, so is it even possible for OCI-C object storage to support multiple workspaces?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant