lr.awsGetSecret

Queries a secret in AWS Secrets Manager and saves it to a parameter.

Syntax

lr.awsGetSecret(object);

Arguments

NameComments
ServerUrl URL for the web request.
AccessKeyAccess key for AWS service authentication,
SecretKeySecret key for AWS service authentication
SecretIdThe ARN or name of the secret to retrieve.
ResultParamNameParameter name where the retrieved secret will be saved.

Return Values

Returns 0 on success, or 1 for an error.

Parameterization

All string input arguments can be passed using standard parameterization.

Example

Copy code
lr.awsGetSecret(
    {
    serverUrl:"https://secretsmanager.eu-central-1.amazonaws.com/"
    accessKey:"ABCDE3F5VDXCR23GV",
    secretKey:"Sfp01wlur0zsVoOKuMTuDV9fpkDdxdHrJuK0",
    secretId:"arn:aws:secretsmanager:eu-central-1:2345653738:secret:lrp-web-protocol-secret-paRino",
    resultParamName:"Test"}
    );