# Require HTTPS for access to resources

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

Require HTTPS for access to resources is an AWS guardrail written in resource control policies. Denies requests to resources in the listed services (S3, STS, KMS, SQS, Secrets Manager, Cognito, CloudWatch Logs, DynamoDB, ECR, OpenSearch Serverless) when aws:SecureTransport is false.

```json
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Deny",
      "Principal": "*",
      "Action": [
        "s3:*",
        "sts:*",
        "kms:*",
        "sqs:*",
        "secretsmanager:*",
        "cognito-identity:*",
        "cognito-idp:*",
        "logs:*",
        "dynamodb:*",
        "ecr:*",
        "aoss:*"
      ],
      "Resource": "*",
      "Condition": {
        "BoolIfExists": {
          "aws:SecureTransport": "false"
        }
      }
    }
  ]
}
```

- **Blocks:** Denies requests to resources in the listed services (S3, STS, KMS, SQS, Secrets Manager, Cognito, CloudWatch Logs, DynamoDB, ECR, OpenSearch Serverless) when aws:SecureTransport is false.
- **Breaks:** Callers outside the organization, including trusted partners, are also denied if they connect over an unencrypted connection, because RCPs apply regardless of whether the principal belongs to the organization. ([source](https://raw.githubusercontent.com/aws-samples/resource-control-policy-examples/main/Restrict-resource-access-patterns/README.md))
- **Test before applying:** As for every Resource control policies guardrail: [how to test before enforcing](/mechanisms/rcp/)
- **Mechanism:** [Resource control policies (RCPs)](/mechanisms/rcp/): Resources of supported services in member accounts, for any principal calling them; not resources in the management account and not service-linked roles.
- **Taken from:** [open source set](https://raw.githubusercontent.com/aws-samples/resource-control-policy-examples/main/Restrict-resource-access-patterns/Restrict-access-to-only-HTTPS-connections-to-your-resources.json), MIT-0 (README states MIT-0; LICENSE file fetched, MIT-0 text, Copyright Amazon.com, Inc.): https://raw.githubusercontent.com/aws-samples/resource-control-policy-examples/main/LICENSE

## What the policy text names

It names 11 actions or patterns: `s3:*`, `sts:*`, `kms:*`, `sqs:*`, `secretsmanager:*`, `cognito-identity:*`, `cognito-idp:*`, `logs:*`, and more. Its conditions test `aws:SecureTransport`.

## What the source says

"aws:SecureTransport: false" (read 10 Nov 2026).

On what it breaks: "This can help you prevent potential attackers from manipulating network traffic and trusted partners from accessing your resources over an unencrypted connection."

## Related guardrails

- [Storage accounts should have the specified minimum TLS version](/guardrails/azure-policy-storage-min-tls/): Azure, Azure Policy (built-in definitions), encryption and keys
- [Key vaults should have deletion protection enabled](/guardrails/azure-policy-keyvault-purge-protection/): Azure, Azure Policy (built-in definitions), encryption and keys
- [OS and data disks should be encrypted with a customer-managed key](/guardrails/azure-policy-disk-cmk/): Azure, Azure Policy (built-in definitions), encryption and keys
- [Deny KMS key deletion](/guardrails/aws-scp-deny-kms-key-deletion/): AWS, Service control policies (SCPs), encryption and keys
- [Enforce a 30-day KMS key deletion window](/guardrails/aws-scp-kms-30-day-deletion-window/): AWS, Service control policies (SCPs), encryption and keys
- [Deny disabling default EBS encryption](/guardrails/aws-scp-deny-disable-ebs-default-encryption/): AWS, Service control policies (SCPs), encryption and keys

## Related pages

- [Require TLS 1.2 or later for S3 (AWS Resource control policies)](/guardrails/aws-rcp-s3-minimum-tls-1-2/)
- [Deny changes to S3 Block Public Access at bucket level (AWS Resource control policies)](/guardrails/aws-rcp-deny-bucket-public-access-block-changes/)
- [Deny unauthenticated access to Cognito identity pools (AWS Resource control policies)](/guardrails/aws-rcp-deny-cognito-unauthenticated-access/)

## Sources

- Require HTTPS for access to resources: https://raw.githubusercontent.com/aws-samples/resource-control-policy-examples/main/Restrict-resource-access-patterns/Restrict-access-to-only-HTTPS-connections-to-your-resources.json (read 10 Nov 2026)
- What it breaks: https://raw.githubusercontent.com/aws-samples/resource-control-policy-examples/main/Restrict-resource-access-patterns/README.md (read 10 Nov 2026)
- How to test it first: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_rcps_examples.html (read 10 Nov 2026)

Last reviewed 16 Nov 2026. Canonical: https://cloudgovernancetools.com/guardrails/aws-rcp-require-https/
