1
message: '{"ResourceType":"storage.v1.bucket","ResourceErrorCode":"403","ResourceErrorMessage":{"code":403,"errors":[{"domain":"global","message":"The
    bucket you tried to create requires domain ownership verification.","reason":"forbidden"}],"message":"The
    bucket you tried to create requires domain ownership verification.","statusMessage":"Forbidden","requestPath":"https://www.googleapis.com/storage/v1/b","httpMethod":"POST","suggestion":"Consider
    granting permissions to [email protected]"}}'

Above is the message when I tried to create storagebuckets via Deployment Manager. I already tried adding [email protected] to the Verified owners of that domain on the Google Search Console but still no luck

1 Answer 1

-1

To create a Storage Bucket with domain name, your account should be a verified owner of the domain, not the cloudservices.gserviceaccount.com. Additional information can be found in Domain-Named Bucket Verification documentation.

You have to login to your domain name provider with the same account that you use to login to the Google Cloud Console. Then request a new domain name, go to Google Cloud Console App Engine page. Go to Settings and then click on Custom domains and then Add a custom domain. After adding the domain name there and verifying it, you will be able to create a bucket name using that domain as name. But make sure to do so with the same account that the domain was verified with.

3
  • I meant creating w/ the use of Cloud Deployment Manager. I can create via Google Cloud Console but what I want is via Cloud Deployment Manager. I can not find anything in their documentation regarding this Commented Feb 27, 2019 at 11:15
  • For deployment you can find examples created by Google in Deployment Manager Examples. You can test these deploymentmanager-samples directly from Cloud Shell. However the account that is going to be specified in the .jinja file, should be the same account that verified the ownership of the domain. Also those files should be deployed in Cloud Shell running from that account. Commented Feb 27, 2019 at 16:20
  • Sorry but there is none in there. Unless you can specifically point and provide a solution yourself and not just pointing out something Commented Feb 28, 2019 at 4:29

Not the answer you're looking for? Browse other questions tagged or ask your own question.