Skip to main content

instances and firewall with GCP CLI

  1. In Cloud Shell, paste and run the following commands to create a few instances:
for i in {1..3}; \
do \
  gcloud compute instances create "nginxstack-$i" \
  --machine-type "f1-micro" \
  --tags nginxstack-tcp-443,nginxstack-tcp-80 \
  --zone us-central1-f \
  --image   "https://www.googleapis.com/compute/v1/projects/bitnami-launchpad/global/images/bitnami-nginxstack-1-10-2-0-linux-debian-8-x86-64" \
  --boot-disk-size "200" --boot-disk-type "pd-standard" \
  --boot-disk-device-name "nginxstack-$i"; \
done
  1. Run the following command to create a firewall rule to allow external traffic to the instances:
gcloud compute firewall-rules create nginx-firewall \
 --allow tcp:80,tcp:443 \
 --target-tags nginxstack-tcp-80,nginxstack-tcp-443

Comments

Popular posts from this blog

Year in Review | Facebook New Year video | Facebook

FB New Year in Review How can I see, edit and share my Year in Review? Your Year in Review is a personalized video that lets you highlight and share your meaningful moments from this year. These moments can include photos and posts that you've shared or been tagged in. To see your Year in Review visit  facebook.com/yearinreview2016  or click  Watch Yours  on a Year in Review that has been shared by a friend. You may also see your Year in Review video in your News Feed, but it's only visible to you unless you share it. To share your Year in Review: Go to  facebook.com/yearinreview2016 Click  Share Video Select the audience  for the post Click  Post To edit your Year in Review before you share it: Go to  facebook.com/yearinreview2016 Click  Edit Video  and then choose the photos you want to appear in your video Click  Share Select the audience  for the post Click  Post You can als...

Gate free Material,GATE Question Papers ,GATE Coaching Centers, GATE 2013 Tricks, GATE Sample Paper,GATE Mock Test, GATE Videos Courses

hie friends here is the best website where u get all the information about gate.  http://www.gate.examsavvy.com yes, this is the best site, where u can get all the info abt gate.. Graduate Aptitude Test in Engineering GATE 2013 Exam, Syllabus, Coaching, Study materials, GATE Question Papers and GATE Preparation Books   About GATE Examination Graduate Aptitude Test in Engineering (GATE) is an all India examination administered and conducted jointly by the Indian Institute of Science and seven Indian Institutes of Technology on behalf of the National Coordinating Board - GATE, Department of Education, Ministry of Human Resource Development (MHRD), Government of India.The GATE Exam committee, which comprises of representatives from the administering institutes, is the sole authority for regulating the examination and declaring the results. GATE is conducted through the constitution of eight zones. The zones and the corresponding administrative institute...

Online Cricket Betting, Its Cricket Fever..!!!!! bet365.com

hi friends, cricket fever all over the world, and betting bookies rule the time, want to become imran hasmi in jannat.. lollll jus for fun, but for the information here are some best bookies in the online for betting. don't invest more its my suggestion dude.. never addict to easy money :) Bet365 bet365 customers can set up an online betting account from an Indian address. People setting up an account at bet365 can also choose to manage their account in Indian Rupees rather than in U.S Dollars or British Pounds. bet365 will accept bets from Indian customers in every state in India. bet365 is one of the world’s largest online bookmakers and is based in Stoke in the United Kingdom. It is a family-owned business belonging to the Coates family, who also own Stoke City football club. It is one of the most respected and trusted bookmaking businesses in the world. Customers in India can deposit money into their bet365 account using their debit card, credit card, NETELL...