This gist is a fork. I found OP's gsite.sh
code below informative, but ultimately didn't use it. See my steps.sh
.
- https://cloud.google.com/storage/docs/hosting-static-website is the first link that comes up through search, but it involves multiple buckets, which confuses the key issues unnecessarily.
- https://cloud.google.com/cdn/docs/setting-up-cdn-with-bucket is simpler to follow, but doesn't cover SSL particularly well.
- https://cloud.google.com/load-balancing/docs/ssl-certificates/google-managed-certs explains the SSL cert setup process a little better. NOTE that you can provision the cert after you've updated your DNS records to reflect the load balancer's IP. Furthermore, the cert will remain in the
PROVISIONING
state until you update thetarget-https-proxies
directive. See next. - https://cloud.google.com/load-balancing/docs/ssl-certificates/google-managed-certs#load-balancer shows you how to add the SSL certificates to a SECOND https-enabled load balancer -- but only thr