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.