Description: Deploys security resources to support KMS encryption Resources: MasterKmsKey: Type: AWS::KMS::Key Properties: Enabled: true EnableKeyRotation: true KeyPolicy: Version: 2012-10-17 Id: key-default-1 Statement: - Sid: Enable IAM User Permissions Effect: Allow Principal: AWS: !Join - '' - - 'arn:aws:iam::' - !Ref 'AWS::AccountId' - ':root' Action: 'kms:*' Resource: '*' KeySpec: SYMMETRIC_DEFAULT KeyUsage: ENCRYPT_DECRYPT Outputs: MasterKey: Description: A reference to the KMS Master Key Value: !GetAtt MasterKmsKey.Arn