Serverless plugin to expand a KMS alias variable to the ARN of the KMS key
${kms:<alias>}
will expand to the ARN of the kms key. The variable can be used anywhere that other Serverless
variables are resolved.
service: foo
provider:
name: aws
kmsKeyArn: '${kms:alias/aws/lambda}'
runtime: nodejs20.x
plugins:
- serverless-kms-alias
functions:
foo:
handler: foo.handler
service: foo
provider:
name: aws
runtime: nodejs20.x
plugins:
- serverless-kms-alias
functions:
foo:
handler: foo.handler
kmsKeyArn: '${kms:arn:aws:kms:${aws:region}:${aws:accountId}:alias/aws/lambda}'
service: foo
provider:
name: aws
runtime: nodejs20.x
plugins:
- serverless-kms-alias
custom:
kmsAlias:
enabled: false
functions:
foo:
handler: foo.handler
kmsKeyArn: '${kms:arn:aws:kms:${aws:region}:${aws:accountId}:alias/aws/lambda}'