Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kmsKeyID is not recognized and fails deployment when configValidationMode is set to error #84

Open
waggonerjake opened this issue Sep 2, 2022 · 0 comments

Comments

@waggonerjake
Copy link

Having the property

frameworkVersion: '3'
configValidationMode: error
...

in your serverless.yaml while also having

provider:
  deploymentBucket:
    name: ${self:service}-deployment-bucket-${opt:stage}
    serverSideEncryption: aws:kms
    kmsKeyID: ${param:KEY_ALIAS_ARN}

will cause the deployment to fail due to kmsKeyID not being a recognized property. By switching to configValidationMode: warn, you can successfully deploy and have the bucket use the KMS key provided. If I want to keep the configValidationMode property as error, then I cannot use this to set up KMS encryption.

I am using serverless 3.22.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant