aws / aws/aws-toolkit-azure-devops
SQS Create-Queue Double Quotes missing from command?
- Dominant language
- TypeScript
- Stars
- 258
- Forks
- 114
- PR merge metrics
- No merged PRs in 30d
Description
While creating a queue and assigning it a dead letter queue, I'm having issue with creating the queue. It's states that the Redrive policy is not a valid JSON map. What I'm noticing in the command is that a double quote is missing right before the deadLetterTargetArn property in the command. Could this be the culprit? I would appreciate some looking into and feedback to see if I'm doing something wrong.
**Parameters in VSTS**
--queue-name $(JobRunner.BatchReport.QueueName) --attributes RedrivePolicy='{\"deadLetterTargetArn\":\"$(APN)\", \"maxReceiveCount\":\"5\"}'
**In Debug**
##[debug]awsArguments=--queue-name Master_Local_JDI_BatchReporting --attributes RedrivePolicy='{\"deadLetterTargetArn\":\"arn:aws:sqs:redacted:Master_Local_JDI_BatchReporting_dlq\", \"maxReceiveCount\":\"5\"}'
**Command**
[command]"C:\Program Files\Amazon\AWSCLI\aws.exe" sqs create-queue --queue-name Master_Local_JDI_BatchReporting --attributes "RedrivePolicy='{\deadLetterTargetArn\":\"redacted:Master_Local_JDI_BatchReporting_dlq\", \"maxReceiveCount\":\"5\"}'"
Contributor guide
Research direction
Start with the VSTS parameters, the logged awsArguments value, and the generated Windows command shown in the issue. Reproduce the SQS create-queue call with the RedrivePolicy attribute and compare how quoting is transformed between each stage. Done means the generated command preserves valid JSON for the dead-letter queue and SQS accepts it.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, typescript
- Domain
- cloud, devops
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100