terraform-provider-scaleway
terraform-provider-scaleway copied to clipboard
Static Web Hosting Configuration
trafficstars
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment
Description
It would be nice to be able to manage both the static website option (with index page and error page) and the bucket policies through Terraform.
This would make a drop-in replacement for AWS for the specific purpose of static website hosting.
New or Affected Resource(s)
- scaleway_object_bucket
- scaleway_object_bucket_policy
Potential Terraform Configuration
resource "scaleway_object_bucket" "static-test-1" {
name = "static-test-1"
region = "fr-par"
acl = "public"
website = true
website_index_page = "index.html" # (optional)
website_error_page = "error.html" # (optional)
}
resource "scaleway_object_bucket_policy" "my_bucket_policy" {
bucket = scaleway_object_bucjet.static-test-1
policy = jsonencode(...)
}