# Require IAM authentication on Lambda function URLs

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

Require IAM authentication on Lambda function URLs is an AWS guardrail written in service control policies. Denies creating or updating a Lambda function URL configuration unless its auth type is AWS_IAM. What it breaks: function URLs with auth type NONE can no longer be created or updated in the affected accounts.

```json
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Deny",
      "Action": [
        "lambda:CreateFunctionUrlConfig",
        "lambda:UpdateFunctionUrlConfig"
      ],
      "Resource": "arn:aws:lambda:*:*:function/*",
      "Condition": {
        "StringNotEquals": {
          "lambda:FunctionUrlAuthType": "AWS_IAM"
        }
      }
    }
  ]
}
```

- **Blocks:** Denies creating or updating a Lambda function URL configuration unless its auth type is AWS_IAM.
- **Breaks:** Function URLs with auth type NONE can no longer be created or updated in the affected accounts. ([source](https://raw.githubusercontent.com/aws-samples/service-control-policy-examples/main/Sensitive-data-protection/README.md))
- **Test before applying:** As for every Service control policies guardrail: [how to test before enforcing](/mechanisms/scp/)
- **Mechanism:** [Service control policies (SCPs)](/mechanisms/scp/): IAM users, IAM roles and the root user in member accounts; not the management account and not service-linked roles.
- **Taken from:** [open source set](https://raw.githubusercontent.com/aws-samples/service-control-policy-examples/main/Sensitive-data-protection/Deny-modification-to-Lambda-URL-Config.json), MIT-0 (README states MIT-0; LICENSE file fetched, MIT-0 text, Copyright Amazon.com, Inc.): https://raw.githubusercontent.com/aws-samples/service-control-policy-examples/main/LICENSE

## What the policy text names

It names 2 actions or patterns: `lambda:CreateFunctionUrlConfig`, `lambda:UpdateFunctionUrlConfig`. Its conditions test `lambda:FunctionUrlAuthType`.

## What the source says

"lambda:FunctionUrlAuthType: AWS_IAM" (read 10 Nov 2026).

On what it breaks: "Enforce lambda function URLs are called using IAM authentication."

## Related guardrails

- [Network interfaces should not have public IPs](/guardrails/azure-policy-nic-no-public-ip/): Azure, Azure Policy (built-in definitions), public exposure
- [Configure storage accounts to disallow public blob access](/guardrails/azure-policy-storage-disable-public-blob/): Azure, Azure Policy (built-in definitions), public exposure
- [Storage accounts should disable public network access](/guardrails/azure-policy-storage-disable-public-network/): Azure, Azure Policy (built-in definitions), public exposure
- [Deny disabling block public access for AMIs](/guardrails/aws-scp-deny-disable-ami-block-public-access/): AWS, Service control policies (SCPs), public exposure
- [Deny changes to S3 Block Public Access at bucket level](/guardrails/aws-rcp-deny-bucket-public-access-block-changes/): AWS, Resource control policies (RCPs), public exposure
- [Deny unauthenticated access to Cognito identity pools](/guardrails/aws-rcp-deny-cognito-unauthenticated-access/): AWS, Resource control policies (RCPs), public exposure

## Related pages

- [Require HTTPS for access to resources (AWS Resource control policies)](/guardrails/aws-rcp-require-https/)
- [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/)

## Sources

- Require IAM authentication on Lambda function URLs: https://raw.githubusercontent.com/aws-samples/service-control-policy-examples/main/Sensitive-data-protection/Deny-modification-to-Lambda-URL-Config.json (read 10 Nov 2026)
- What it breaks: https://raw.githubusercontent.com/aws-samples/service-control-policy-examples/main/Sensitive-data-protection/README.md (read 10 Nov 2026)
- How to test it first: https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_testing-policies.html (read 10 Nov 2026)

Last reviewed 16 Nov 2026. Canonical: https://cloudgovernancetools.com/guardrails/aws-scp-require-lambda-url-iam-auth/
