# Block internet gateway ingress for VPCs (declarative policy)

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

Block internet gateway ingress for VPCs (declarative policy) is an AWS guardrail written in declarative policies. Sets VPC Block Public Access to block_ingress for the accounts in scope, so resources in VPCs and subnets cannot receive traffic through internet gateways.

```json
{
  "ec2_attributes": {
    "vpc_block_public_access": {
      "internet_gateway_block": {
        "mode": {
          "@@assign": "block_ingress"
        },
        "exclusions_allowed": {
          "@@assign": "enabled"
        }
      }
    }
  }
}
```

- **Blocks:** Sets VPC Block Public Access to block_ingress for the accounts in scope, so resources in VPCs and subnets cannot receive traffic through internet gateways.
- **Breaks:** While the policy is attached, account administrators cannot change the enforced configuration; AWS lists ModifyVpcBlockPublicAccessOptions, CreateVpcBlockPublicAccessExclusion and ModifyVpcBlockPublicAccessExclusion as blocked. ([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

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

On what it breaks: "Account administrators will not be able to modify the value of the service attribute at the individual account level."

## Related guardrails

- [Network interfaces should disable IP forwarding](/guardrails/azure-policy-nic-no-ip-forwarding/): Azure, Azure Policy (built-in definitions), network perimeter
- [Gateway subnets should not have a network security group](/guardrails/azure-policy-gateway-subnet-no-nsg/): Azure, Azure Policy (built-in definitions), network perimeter
- [Configure key vaults to enable the firewall](/guardrails/azure-policy-keyvault-firewall/): Azure, Azure Policy (built-in definitions), network perimeter
- [Prevent creating or expanding public connectivity for VPCs](/guardrails/aws-scp-prevent-vpc-public-connectivity/): AWS, Service control policies (SCPs), network perimeter

## Related pages

- [Block public sharing of EBS snapshots (declarative policy) (AWS Declarative policies)](/guardrails/aws-declarative-snapshot-block-public-access/)
- [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/)

## Sources

- Block internet gateway ingress for VPCs (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-vpc-block-public-access/
