Skip to content

GoogleCloudPlatform/deploystack-static-hosting-with-domain

Repository files navigation

Deploy Stack - Static Hosting with Domain (YesOrNoSite)

This is a simple site creator that will spin up a Cloud Storage Served static website, fronted by a Google Cloud Load Balancer with an SSL certificate.

ToDo architecture

Install

You can install this application using the Open in Google Cloud Shell button below.

Open in Cloud Shell

Clicking this link will take you right to the DeployStack app, running in your Cloud Shell environment. It will walk you through setting up your architecture.

Cleanup

To remove all billing components from the project

  1. Typing deploystack uninstall

NOTE: This will only clean up the infrastructure; buying a domain is permanent and non-reversable.

Testing

If you want to modify the script and test you have to jump through a few hoops. Also, the script can work against domains you've already purchased with Cloud Domains. So do that first - then setup testing.

  1. Create a dedicated Google Cloud Project for Domain
  2. Obtain domain with Cloud Domains
  3. Verify the domain with using Google Webmaster Central
  4. Add your Cloud Build Service Account as an owner of that account.
  5. Set an environmental variable $APPINABOX_YESORNOSITE_DOMAIN to be the domain you reserved.
  • Run in bash:
./test
  • Run in Cloud Build
gcloud builds submit --substitutions=_APPINABOX_YESORNOSITE_DOMAIN=$APPINABOX_YESORNOSITE_DOMAIN --config=test.yaml .

This is not an official Google product.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published