@cfn-modules/secret
v1.3.0
Published
AWS Secrets Manager secret with encryption
Downloads
386
Readme
cfn-modules: AWS Secrets Manager secret
AWS Secrets Manager secret with encryption.
Install
Install Node.js and npm first!
npm i @cfn-modules/secret
Usage
If you pass in a KMS Module the key will be used to encrypt the secret.
---
AWSTemplateFormatVersion: '2010-09-09'
Description: 'cfn-modules example'
Resources:
Secret:
Type: 'AWS::CloudFormation::Stack'
Properties:
Parameters:
KmsKeyModule: !GetAtt 'Key.Outputs.StackName' # optional
Name: 'my-secret-name' #optional
Description: 'A secret description' #optional
CharactersToExclude: '"@/\' # optional
PasswordLength: 30 # optional
TemplateURL: './node_modules/@cfn-modules/secret/module.yml'
Examples
none
Related modules
Parameters
Wrapper
If you want to use an existing Secret, use the wrapper with the Arn
of the existing secret:
---
AWSTemplateFormatVersion: '2010-09-09'
Description: 'cfn-modules example'
Resources:
Secret:
Type: 'AWS::CloudFormation::Stack'
Properties:
Parameters:
Arn: 'arn:aws:secretsmanager:eu-west-1:111111111111:secret:name/of/secret' # required
TemplateURL: './node_modules/@cfn-modules/secret/wrapper.yml'