Skip to content

SAM Deploy fails for Regional API Gateway while upgrading SecurityPolicy to TLS1.3 #9007

@gruthirappan-uturn

Description

@gruthirappan-uturn

Description:

We are trying to upgrade Region API Gateway security policy to TLS1.3 from TLS1.0 using Sam deploy with sam latest version.

Steps to reproduce:

We are using the below command and sam template to update the security policy.

Command - sam deploy "--stack-name", $StackName,
"--parameter-overrides", "Env=$Env", "EnvLower=$EnvLower",
"--capabilities", "CAPABILITY_NAMED_IAM",
"--no-fail-on-empty-changeset",
"--region", "us-east-1",

Type: AWS::Serverless::Api
Properties:
Name: XXXXXXXXXXXXX
StageName: !Ref Env
EndpointConfiguration: REGIONAL
TracingEnabled: true
SecurityPolicy: SecurityPolicy_TLS13_1_2_2021_06

Observed result:

Resource handler returned message: "Endpoint access mode is required for the specified security policy (Service: ApiGateway, Status Code: 400, Request ID: XXXXXXXXXXX) (SDK Attempt Count: 1)" (RequestToken: XXXXXXXXXXXXXXXXX, HandlerErrorCode: InvalidRequest)

Expected result:

We should be able to update the API Gateway to TLS version

Additional environment details (Ex: Windows, Mac, Amazon Linux etc)

  1. OS: Linux
  2. sam --version: latest
  3. AWS region: us-east-1
# Paste the output of `sam --info` here

Add --debug flag to command you are running

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions