Skip to content

Commit 1f757d4

Browse files
Merge branch 'gcpsolution99:main' into main
2 parents b9417f9 + 1c4a216 commit 1f757d4

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

GSP/Abhi_Firewall_Policy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ cat > firewall.tf <<EOF_END
2828
resource "google_compute_firewall" "allow_ssh" {
2929
name = "allow-ssh-from-anywhere"
3030
network = "default"
31-
project = "qwiklabs-gcp-00-5e2401d27ba2"
31+
project = "$PROJECT_ID"
3232
3333
allow {
3434
protocol = "tcp"

GSP/Abhi_VPC_Subnet.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@ gcloud services enable cloudresourcemanager.googleapis.com --project=$PROJECT_ID
2222

2323
gcloud storage buckets create gs://$PROJECT_ID-tf-state --project=$PROJECT_ID --location=$REGION --uniform-bucket-level-access
2424

25-
26-
terraform init
27-
2825
cat > firewall.tf <<EOF_END
2926
terraform {
3027
required_providers {
@@ -105,9 +102,10 @@ output "subnet_name" {
105102
}
106103
EOF_END
107104

105+
terraform init
108106
terraform plan
109-
110107
terraform apply --auto-approve
108+
111109
pattern=(
112110
"**********************************************************"
113111
"** S U B S C R I B E TO **"

0 commit comments

Comments
 (0)