Experimenting with GCP SDK follow along https://app.pluralsight.com/library/courses/gcp-fundamentals/
- Create a new Google Cloud Storage Bucket
- Copy a picture to bucket
- Create compute instance bloghost
- Configure a simple LAMP Server
- Create SQL instance
- Setup user blogdbuser
- Setup Firewall Rules
add code here
add code here
add code here
add code here
add code here
add code here
add code here
TO REMOVE
gcloud compute instances delete bloghost --quiet
gcloud compute instances create bloghost \
--metadata-from-file startup-script=./lamp_startup.sh \
--zone us-central1-a \
gcloud compute instances add-tags bloghost \
--tags http-server,https-server
gcloud compute firewall-rules delete allow-http --quiet
gcloud compute firewall-rules delete allow-https --quiet
gcloud compute firewall-rules create allow-http \
--action allow \
--rules tcp:80 \
--direction IN \
--target-tags http-server
gcloud compute firewall-rules create allow-https \
--allow tcp:443 \
--direction IN \
--target-tags https-server