Trying to create a google bucket for the static website.
provider "google" {
project = "myprojectname-123"
credentials = "${file("storage-admin.json")}"
region = "us-central1"
zone = "us-central1-c"
}
resource "google_storage_bucket" "STANDARD" {
name = "mywebsite.com"
storage_class = "STANDARD"
location = "US"
website {
main_page_suffix = "index.html"
not_found_page = "404.html"
}
}
> terraform apply
googleapi: Error 403: The bucket you tried to create is a domain name owned by another user., forbidden
Found this answer for AWS
Q: Is it possible to create storage domain centric storage/bucket from Terraform for Google Cloud?