1.3.0 • Published 5 years ago

@cfn-modules/secret v1.3.0

Weekly downloads
34
License
Apache-2.0
Repository
github
Last release
5 years ago

Build Status NPM version

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'