-
-
Save qushot/92e7bf6c5d5dad88f938341d7a4b1438 to your computer and use it in GitHub Desktop.
検証2で使用するファイアウォールルール作成スクリプト
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 | |
# 検証2で使用 | |
# 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 update 1 \ | |
--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