Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to set destination bucket for bucket replication rule. #4366

Closed
IBM-diksha opened this issue Feb 23, 2023 · 1 comment
Closed

Not able to set destination bucket for bucket replication rule. #4366

IBM-diksha opened this issue Feb 23, 2023 · 1 comment
Labels
service/Object Storage Issues related to Cloud Object Storage

Comments

@IBM-diksha
Copy link
Collaborator

IBM-diksha commented Feb 23, 2023

Trying to apply bucket replication rules and give a bucket as destination but getting an error saying the bucket name does match the expected format through terraform , but it is a valid bucket name.

Terraform CLI and Terraform IBM Provider Version

1.49.0

Affected Resource(s)

ibm_cos_bucket_replication_rule

Terraform Configuration Files

resource "ibm_cos_bucket_replication_rule" "cos_replication_rule" {
  depends_on = [
    ibm_iam_authorization_policy.policy
  ]
  bucket_crn      = "bucket_crn"
  bucket_location = var.region
  replication_rule {
    rule_id = "replicate-everything"
    enable  = true
    # prefix = "prefix"
    priority                        = 50
    deletemarker_replication_status = false
    destination_bucket_crn          = "crn of destination bucket"
  }
}

Debug Output

should match regexp ^crn:.+:.+:.+:.+:.+:a\/[0-9a-f]{32}:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}:bucket:[a-z-A-Z]*[0-9]*$

@github-actions github-actions bot added the service/Object Storage Issues related to Cloud Object Storage label Feb 23, 2023
@IBM-diksha
Copy link
Collaborator Author

This is issue has been fixed in the latest version - v1.51.0

PR : #4355

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
service/Object Storage Issues related to Cloud Object Storage
Projects
None yet
Development

No branches or pull requests

1 participant