AWS to GCP IAM Journey

🔐 Expanding My Cloud Skill Set — From AWS to GCP IAM!

Coming from an AWS background, I’ve always worked hands-on with IAM — managing users, roles, policies, and securing access.

Now, I’m diving deep into Google Cloud Platform (GCP) and just wrapped up a solid hands-on session with GCP IAM — from understanding the structure to running real gcloud CLI commands.

🧠 Key Concepts I Explored:

  • GCP IAM structure: Members, Roles, Policies
  • Role types: Basic, Predefined, Custom
  • IAM Policies and their inheritance across Org > Folders > Projects
  • Service Accounts for programmatic access (GCP’s version of IAM Roles + Instance Profiles)

🛠️ CLI Hands-On with gcloud:

srinivasa12_1-1744024833012.png

1. Check gcloud CLI version and IAM availability
gcloud version
gcloud iam --help

2. 📋 List all GCP projects
gcloud projects list

3. ⚙️ Check current gcloud CLI configuration
gcloud config list

4. 🔍 Get IAM policy for a specific project
gcloud projects get-iam-policy PROJECT_ID

5. 🛠️ Create a custom IAM role
gcloud iam roles create customViewerRole \
--project=PROJECT_ID \
--title="Custom Viewer" \
--permissions="resourcemanager.projects.get,compute.instances.list" \
--stage="GA"

6. 👤 List all service accounts in a project
gcloud iam service-accounts list

🔐 IAM is the backbone of cloud security — whether it's AWS or GCP, knowing how to manage access securely is crucial.

🙏 Thanks to the amazing cloud community for all the resources and inspiration!

1 0 53