Sobes.tech
Middle

How to ensure the development team has access to cloud providers?

sobes.tech AI

Answer from AI

We use the principle of least privilege. Create separate IAM users or roles for each team member or group, granting only the permissions necessary to perform their tasks.

For automated processes (CI/CD), use IAM roles with limited rights assigned to services (e.g., EC2, Lambda) or entities (e.g., GitHub Actions OIDC).

Store credentials (whether access keys or temporary tokens) securely. For credentials used manually, encourage the use of the provider's console via Federated Access or Azure AD / Google Identity Platform. For automated processes, integrate secret management systems (e.g., HashiCorp Vault, AWS Secrets Manager, Azure Key Vault, GCP Secret Manager) with CI/CD pipelines.

Implement multi-factor authentication (MFA) for all interactive users.

Configure user activity auditing (logging, e.g., AWS CloudTrail, Azure Activity Logs, GCP Audit Logs) and analyze them to detect suspicious activity.

Use security groups (Security Groups in AWS, Network Security Groups in Azure, Firewall Rules in GCP) to control network access to resources.

When necessary, use VPN or Privileged Access Management (PAM) systems to access sensitive resources.

Periodically review and adjust access rights.

# Example IAM policy in AWS for a developer user
Version: "2012-10-17"
Statement:
  - Effect: Allow # Allow access
    Action: # List of allowed actions
      - ec2:Describe* # View EC2 information
      - s3:ListBucket # View S3 bucket contents
      - s3:GetObject # Read objects from S3
    Resource: "*" # Applies to all resources of this type
  - Effect: Deny # Deny access
    Action: # List of denied actions
      - ec2:TerminateInstances # Prevent deletion of EC2
      - s3:DeleteObject # Prevent deletion of S3 objects
    Resource: "*"
# Example AWS CLI command to create a user and assign a policy
aws iam create-user --user-name developer-user
aws iam attach-user-policy --user-name developer-user --policy-arn arn:aws:iam::aws:policy/ReadOnlyAccess # Example of a built-in policy