Skip to content

Cloud Platforms

Cloud platforms are where the majority of modern infrastructure runs. DevSecOps engineers need to understand not just how to deploy services, but how to secure them, observe them, and keep costs predictable.

This section covers AWS and GCP — the two platforms most commonly encountered in enterprise environments.

TopicAWSGCP
ComputeEC2, ECS, EKS, LambdaCompute Engine, GKE, Cloud Run
StorageS3, EBS, EFSCloud Storage, Persistent Disk
NetworkingVPC, Security Groups, ALBVPC, Firewall Rules, Cloud Load Balancing
IAMIAM Roles, Policies, STSIAM, Service Accounts, Workload Identity
SecretsSecrets Manager, Parameter StoreSecret Manager
ObservabilityCloudWatch, X-RayCloud Logging, Cloud Monitoring, Cloud Trace
SecurityGuardDuty, Security Hub, ConfigSecurity Command Center, Chronicle

Shared across both platforms: least privilege is everything.

{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:GetObject",
"s3:PutObject"
],
"Resource": "arn:aws:s3:::my-app-bucket/*"
}
]
}

Key practices:

  • Never use root account credentials
  • Rotate access keys on a 90-day schedule (or eliminate keys, use roles instead)
  • Enable MFA on all IAM users
  • Use IAM roles for EC2/Lambda — no credentials in code

GCP uses predefined roles and custom roles. Prefer predefined roles where possible:

Terminal window
# Grant Storage Object Viewer to a service account
gcloud projects add-iam-policy-binding PROJECT_ID \
--member="serviceAccount:app@PROJECT_ID.iam.gserviceaccount.com" \
--role="roles/storage.objectViewer"

Workload Identity Federation eliminates service account key files — the preferred approach for GKE workloads.

ControlAWSGCP
Enable root MFA✅ IAM → Security credentials✅ Organisation policy
Block public S3/GCS✅ S3 Block Public Access✅ Public access prevention
Enable cloud trail/audit logs✅ CloudTrail✅ Cloud Audit Logs
Enable threat detection✅ GuardDuty✅ Security Command Center
Centralise logging✅ CloudWatch Logs + S3✅ Log sink → Cloud Storage

Detailed pages per service and certification prep guides are actively being written. Subscribe to updates to be notified.