lulo-plugin-string-generator

1.0.1 • Public • Published

lulo-plugin-string-generator

npm version Build Status Coverage Status Known Vulnerabilities

lulo String Generator generates a random string given the provided length.

Used together with _NoEcho it provdies a simple way to generate keys and passwords via CloudFormation.

lulo String Generator is a lulo plugin

Installation

npm install lulo-plugin-string-generator --save

Usage

Properties

  • Length: The length of the string (Bytes). Default is 128 which is the equivalent of a 256 character string.
  • _NoEcho: _NoEcho is a CustomResource feature that Lulo implements. Use this if you are generating strings that are sensitive, such as keys or passwords, to ensure that they do no leak. Simple set _NoEcho to true.

Updates

Since the only property that can be changed is the length the secret will be regenerated for any update.

Return Values

!GetAtt 'MyStringResource.String' will give the string.

Example

Resources:
    MyString:
        Type: Custom::StringPlugin
        Properties:
            ServiceToken: lambda:arn
    MySecretString:
        Type: Custom::StringPlugin
        Properties:
            ServiceToken: lambda:arn
            Length: 256
            _NoEcho: true

Required IAM Permissions

The Custom Resource does not require any permissions

License

The MIT License (MIT)

Change Log

Change Log

Package Sidebar

Install

npm i lulo-plugin-string-generator

Weekly Downloads

7

Version

1.0.1

License

MIT

Unpacked Size

10.5 kB

Total Files

9

Last publish

Collaborators

  • polythene