lr.aws_get_secret
Queries a secret in AWS Secrets Manager and saves it to a parameter.
C#
void lr.aws_get_secret(string[] args);
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.aws_get_secret(new string[]{
"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"});