# Block public sharing of EBS snapshots (declarative policy)

Facts read 10 Nov 2026. Page reviewed 16 Nov 2026.

Block public sharing of EBS snapshots (declarative policy) is an AWS guardrail written in declarative policies. Sets Snapshot Block Public Access to block_new_sharing so new public sharing of EBS snapshots is blocked in the accounts in scope. AWS documents that the account status report shows the current status of the attributes a declarative policy supports for the accounts in scope.

```json
{
  "ec2_attributes": {
    "snapshot_block_public_access": {
      "state": {
        "@@assign": "block_new_sharing"
      }
    }
  }
}
```

- **Blocks:** Sets Snapshot Block Public Access to block_new_sharing so new public sharing of EBS snapshots is blocked in the accounts in scope.
- **Breaks:** AWS documents that snapshots already publicly shared remain publicly available under block_new_sharing, and EnableSnapshotBlockPublicAccess and DisableSnapshotBlockPublicAccess cannot be used to change the enforced setting. ([source](https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_ec2_syntax.html))
- **Test before applying:** As for every Declarative policies guardrail: [how to test before enforcing](/mechanisms/declarative-policy/)
- **Mechanism:** [Declarative policies](/mechanisms/declarative-policy/): The configuration of a supported AWS service attribute in the accounts, OUs or organization they are attached to, including actions by service-linked roles.
- **Taken from:** [provider documentation](https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_ec2_syntax.html), provider documentation

## What the source says

"snapshot_block_public_access: {" (read 10 Nov 2026).

On what it breaks: "Blocks new public sharing of snapshots. Snapshots that were already publicly shared remain publicly available."

## Related guardrails

- [Storage SAS tokens should adhere to 7 day maximum validity](/guardrails/azure-policy-storage-sas-7-days/): Azure, Azure Policy (built-in definitions), data exfiltration
- [Domain restricted sharing](/guardrails/gcp-orgpolicy-domain-restricted-sharing/): Google Cloud, Organization Policy Service (managed and legacy constraints), data exfiltration
- [Service perimeter around managed services](/guardrails/gcp-vpcsc-service-perimeter/): Google Cloud, VPC Service Controls (service perimeters), data exfiltration
- [Deny AWS RAM sharing with external accounts](/guardrails/aws-scp-deny-ram-external-sharing/): AWS, Service control policies (SCPs), data exfiltration

## Related pages

- [Require IMDSv2 for new EC2 instances (declarative policy) (AWS Declarative policies)](/guardrails/aws-declarative-require-imdsv2/)
- [Enforce an Amazon Bedrock guardrail on model inference (declarative policy) (AWS Declarative policies)](/guardrails/aws-declarative-bedrock-guardrail-enforcement/)
- [Opt out of AI service content use organization-wide (declarative policy) (AWS Declarative policies)](/guardrails/aws-declarative-ai-services-opt-out/)

## Sources

- Block public sharing of EBS snapshots (declarative policy): https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_ec2_syntax.html (read 10 Nov 2026)
- How to test it first: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_declarative.html (read 10 Nov 2026)

Last reviewed 16 Nov 2026. Canonical: https://cloudgovernancetools.com/guardrails/aws-declarative-snapshot-block-public-access/
