claudiajs / claudia

Deploy Node.js projects to AWS Lambda and API Gateway easily

Home Page:https://claudiajs.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Lambda function fails to deploy to CF distribution with TLSv1.2_2019 set

karissademi opened this issue · comments

  • Expected behaviour:
    Successful deploy

  • What actually happens:
    The following error gets thrown
    '1 validation error detected: Value \'TLSv1.2_2019\' at \'distributionConfig.viewerCertificate.minimumProtocolVersion\' failed to satisfy constraint: Member must satisfy enum value set: [TLSv1.1_2016, SSLv3, TLSv1.2_2018, TLSv1_2016, TLSv1]',
    Full example

  • Link to a minimal, executable project that demonstrates the problem:
    I can't but this is the code

  --version claudia \
  --use-s3-bucket $S3_BUCKET \
&& npx claudia set-cloudfront-trigger \
  --distribution-id $CLOUDFRONT_DISTRIBUTION_ID \
  --event-types origin-request \
  --version claudia
  • Steps to install the project:

  • Steps to reproduce the problem:
    Happens when the CF distribution I'm trying to deploy to has the security policy set to TLSv1.2_2019 (recommended). I can deploy manually though the AWS console without issue.

Many thanks.