-
Notifications
You must be signed in to change notification settings - Fork 277
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
Spaces: Add CORS Configuration Support #1021
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Running into some issues trying to run the tests.
digitalocean/spaces/resource_spaces_bucket_cors_configuration.go
Outdated
Show resolved
Hide resolved
digitalocean/spaces/resource_spaces_bucket_cors_configuration_test.go
Outdated
Show resolved
Hide resolved
@@ -62,6 +62,7 @@ func ResourceDigitalOceanBucket() *schema.Resource { | |||
Type: schema.TypeList, | |||
Optional: true, | |||
Description: "A container holding a list of elements describing allowed methods for a specific origin.", | |||
Deprecated: "Terraform will only perform drift detection if a configuration value is provided. Use the resource `digitalocean_spaces_bucket_cors_configuration` instead.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding deprecation flag to encourage users to use digitalocean_spaces_bucket_cors_configuration
. AWS deprecated this to add more flexibility with bucket creations:
hashicorp/terraform-provider-aws#4418
ooof, at first I was running the test in a way that gave me false positives. Thanks for double checking. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I needed a couple more small changes to the tests to get them passing.
digitalocean/spaces/resource_spaces_bucket_cors_configuration_test.go
Outdated
Show resolved
Hide resolved
digitalocean/spaces/resource_spaces_bucket_cors_configuration_test.go
Outdated
Show resolved
Hide resolved
digitalocean/spaces/resource_spaces_bucket_cors_configuration_test.go
Outdated
Show resolved
Hide resolved
digitalocean/spaces/resource_spaces_bucket_cors_configuration_test.go
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀 Let's go!
Address #1015
Users can configure advance settings for CORS via the
digitalocean_spaces_bucket_cors_configuration
resource.