aws / aws/aws-toolkit-azure-devops
Secrets Manager get secret task output not a valid json
- Dominant language
- TypeScript
- Stars
- 258
- Forks
- 114
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
Not sure if I am doing something wrong or a bug!
I am using Secrets Manager Get secret task and saving the secret value to a variable.
When I print the variable, I was expecting it to be valid JSON but it is not.
**To reproduce**
```
- task: SecretsManagerGetSecret@1
inputs:
awsCredentials: '${{ parameters.awsCredentials }}'
regionName: '${{ parameters.awsRegion }}'
secretIdOrName: 'my-secret'
variableName: 'build-var-my-secret'
# print out variable
- script: echo $(build-var-my-secret)
displayName: 'Print out variable'
```
**Expected behavior**
was expecting valid JSON
`{"foo":"bar"}`
Instead got
`{foo:bar}`
**Screenshots**
**Your Environment**
- cloud version
- Azure DevOps version: Not sure, it is cloud version, not self-hosted!
- AWS Toolkit for Azure DevOps version: 1.13.0
Thanks!
Contributor guide
Research direction
Start with the SecretsManagerGetSecret@1 task and the YAML reproduction in the issue, then trace how the AWS Secrets Manager value is assigned to the Azure DevOps variable. Reproduce the printed output and inspect relevant task tests or entry points. Done means the task's documented output behavior is established and, if applicable, the variable preserves valid JSON such as {"foo":"bar"}.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, azure, typescript
- Domain
- cloud, devops
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100