A Lulo plugin for creating random strings
npm install lulo-plugin-string-generatorlulo 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
npm install lulo-plugin-string-generator --save
`Usage
$3
* 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.$3
Since the only property that can be changed is the length the secret will be regenerated for any update.$3
!GetAtt 'MyStringResource.String' will give the string.$3
`
Resources:
MyString:
Type: Custom::StringPlugin
Properties:
ServiceToken: lambda:arn
MySecretString:
Type: Custom::StringPlugin
Properties:
ServiceToken: lambda:arn
Length: 256
_NoEcho: true
``