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)
- OS: Linux
sam --version: latest
- AWS region: us-east-1
# Paste the output of `sam --info` here
Add --debug flag to command you are running
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)
sam --version: latestAdd --debug flag to command you are running