0
votes

I want to be able to set a variable in a Azure DevOps library and then use it to populate an AWS secret.

In the releases/tasks I see that there is a premade Azure DevOps task "AWS Secrets Manager Create/Update Secret".

Is there anyway I can use a variable I have already set in the Azure DevOps library groups to populate the secret value in the premade task "AWS Secrets Manager Create/Update Secret"?

1
Link the Azure DevOps library groups to the release pipeline, then use the $(variable) to get the value of that variable. - Leo Liu-MSFT
Hi friend, How about this question? Could you please give any feedback? If below answer not resolve your question, please let me know the latest information about this issue. - Leo Liu-MSFT

1 Answers

0
votes

Yes of course, what you need is just refer to this variables (and have variable group added to your pipeline/release)

In YAML it would be just

- task: SecretsManagerCreateOrUpdateSecret@1
  inputs:
    awsCredentials: 'aws'
    regionName: 'eu-west-1'
    secretNameOrId: 'SomeSecret'
    secretValueSource: 'inline'
    secretValue: '$(MyVariable)'

and in UI

enter image description here