ladderlore
  • S3 や IAM などのサービス名を入力してください。

概念 · CLF-C02 の発展

Service control policies

Organization guardrails: they cap what every principal in the member accounts can do.

このレッスンはまだ翻訳されていないため、英語で表示しています。

クラウドプラクティショナーで学んだこと

  • SCPs set the maximum permissions for accounts in an organization.
  • An SCP never grants access. An IAM policy must still allow the action.
  • SCPs do not apply to the management account.
クラウドプラクティショナーのレッスンを読む
  • S3

    SCP allows
    S3 and EC2
    Result
    S3 works
  • S3

    SCP allows
    EC2 only
    Result
    Denied
  • Nothing

    SCP allows
    Everything
    Result
    Denied
An SCP caps permissions. It never adds any.
  • Block unused Regions

    Deny when aws:RequestedRegion is not approved.

  • Protect CloudTrail

    Deny stopping or deleting trails.

  • Stop leaving the organization

    Deny organizations:LeaveOrganization.

  • Limit root users

    Deny all actions for member-account root.

  • Require encryption

    Deny creating unencrypted volumes.

  • Keep security tools on

    Deny turning off GuardDuty or Config.

Guardrails that scenarios often ask for.

1 / 2

  • Block unused Regions

    Deny when aws:RequestedRegion is not approved.

  • Protect CloudTrail

    Deny stopping or deleting trails.

  • Stop leaving the organization

    Deny organizations:LeaveOrganization.

  • Limit root users

    Deny all actions for member-account root.

  • Require encryption

    Deny creating unencrypted volumes.

2 / 2

  • Keep security tools on

    Deny turning off GuardDuty or Config.

Guardrails that scenarios often ask for.

概要

SCPs attach to the root, to an OU or to an account. A request must be allowed at every level on the path, so the effective permission is the overlap of all of them. They apply to every IAM user and role in a member account, including the account’s root user. They do not apply to the management account, and they do not affect service-linked roles.

There are two strategies. A deny list keeps the default FullAWSAccess policy and adds Deny statements for what you forbid. It is the easy one and the one AWS recommends. An allow list removes FullAWSAccess and names the services allowed. It is stricter and needs more upkeep.

覚えること

  • SCPs limit. They never grant.
  • The effective permission is the overlap of every SCP from the root to the account.
  • They affect member-account principals only, root users included. The management account is exempt.
  • Deny list: keep FullAWSAccess and add Denies. Allow list: remove it and list what is allowed.
  • Block Regions with the aws:RequestedRegion condition.

覚えること

  • Protect CloudTrail by denying StopLogging and DeleteTrail.

試験では

  • “Prevent every account in the organization from using unapproved Regions, even administrators” points to an SCP.
  • “Stop anyone from disabling CloudTrail” points to an SCP that denies cloudtrail:StopLogging.
  • “An SCP allows S3, but users cannot read S3” means the IAM policy still has to allow it.