Skip to content

Commit

Permalink
Add KMS Alias
Browse files Browse the repository at this point in the history
  • Loading branch information
ingalls committed Oct 25, 2024
1 parent 1777c4c commit c8be4e4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cloudformation/lib/kms.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@ import cf from '@openaddresses/cloudfriend';

export default {
Resources: {
KMSAlias: {
Type: 'AWS::KMS::Alias',
Properties: {
AliasName: cf.join(['alias/', cf.stackName]),
TargetKeyId: cf.ref('KMS')
}
},
KMS: {
Type : 'AWS::KMS::Key',
Properties: {
Expand Down

0 comments on commit c8be4e4

Please sign in to comment.