-
-
Save qushot/df90f70ca88aec03c1b80de65143c4f0 to your computer and use it in GitHub Desktop.
Cron,Taskqueueの両方を設定するスクリプト
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Project set for Cloud SDK | |
PROJECT_ID=YOUR_PROJECT_ID | |
gcloud config set project $PROJECT_ID | |
# cron allow | |
gcloud beta app firewall-rules create 1 \ | |
--action=allow \ | |
--source-range='0.1.0.1' \ | |
--description='default -> deny, cron -> allow' | |
# taskqueue allow | |
gcloud beta app firewall-rules create 2 \ | |
--action=allow \ | |
--source-range='0.1.0.2' \ | |
--description='default -> deny, taskqueue -> allow' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment