lulo-plugin-string-generator
v1.0.1
Published
A Lulo plugin for creating random strings
Downloads
8
Maintainers
Readme
lulo-plugin-string-generator
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
totrue
.
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