Skip to content

Instantly share code, notes, and snippets.

@qushot
Created September 16, 2017 08:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save qushot/c3020f3a46eb2b39e224d39e3c8a3d2c to your computer and use it in GitHub Desktop.
Save qushot/c3020f3a46eb2b39e224d39e3c8a3d2c to your computer and use it in GitHub Desktop.
Cron, Taskqueue検証用初期設定スクリプト
#!/bin/sh
# Project set for Cloud SDK
PROJECT_ID=YOUR_PROJECT_ID
gcloud config set project $PROJECT_ID
# default update
gcloud beta app firewall-rules update default \
--action=deny
# instance-a allow
gcloud beta app firewall-rules create 10 \
--action=allow \
--source-range='35.187.194.104' \
--description='default -> deny, instance-a -> allow'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment