GCP Cloud Storage Event
Prerequisites
Step 1: Install Required Tools
1.1 Install gcloud CLI
gcloud --versioncurl https://sdk.cloud.google.com | bash
exec -l $SHELLcurl https://sdk.cloud.google.com | bash
exec -l $SHELL1.2 Install Terraform
Step 2: Authenticate with GCP
2.1 Initialize gcloud
2.2 Login to GCP
2.3 Set Application Default Credentials
2.4 Set Your Project
2.5 Verify Current Project
Step 3: Create Terraform Configuration Files
3.1 Create Project Directory
3.2 Create Main Terraform Configuration
3.3 Create Variables File
Step 4: Deploy Infrastructure
4.1 Initialize Terraform
4.2 Preview Changes
4.3 Apply Configuration
4.4 View Outputs
Step 5: Retrieve and Use Credentials
5.1 Get Credentials from Local File
5.2 Get Credentials from Secret Manager
5.3 Verify Service Account
5.4 Verify Custom Role
5.5 Verify Role Binding
Step 6: Verify Deployment
6.1 View All Resources Created
6.2 Verify Service Account
6.3 Verify Custom Role
6.4 Verify IAM Policy Binding
6.5 Verify Enabled APIs
Step 7: Retrieve Service Account Credentials
7.1 Option 1: From Local File
7.2 Option 2: From Secret Manager
7.3 Option 3: From Terraform Output
Last updated
Was this helpful?
