lr.awsGetSecret
Queries a secret in AWS Secrets Manager and saves it to a parameter.
Syntax
lr.awsGetSecret(object);
Arguments
Name | Comments |
---|---|
ServerUrl | URL for the web request. |
AccessKey | Access key for AWS service authentication, |
SecretKey | Secret key for AWS service authentication |
SecretId | The ARN or name of the secret to retrieve. |
ResultParamName | Parameter 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
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"}
);