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
npm install lulo-plugin-string-generator --save
- 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
.
Since the only property that can be changed is the length the secret will be regenerated for any update.
!GetAtt 'MyStringResource.String'
will give the string.
Resources:
MyString:
Type: Custom::StringPlugin
Properties:
ServiceToken: lambda:arn
MySecretString:
Type: Custom::StringPlugin
Properties:
ServiceToken: lambda:arn
Length: 256
_NoEcho: true
The Custom Resource does not require any permissions