aws / aws/aws-toolkit-azure-devops

AWS SSM Run Command issue with SNS Notifications

Open
#529 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
258
Forks
114
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**

Error raised by [AWS Systems Manager](https://docs.aws.amazon.com/systems-manager/index.html) [SendCommand](https://docs.aws.amazon.com/systems-manager/latest/APIReference/API_SendCommand.html) when the Run Command task includes SNS Notifications

**To reproduce**

1- Create a task using the AWS SSM Run Command
2- Setup the SNS Notifications
3- Run the pipeline

**Expected behavior**

API should not raise parameter errors

**Screenshots**

**Your Environment**

- On-prem or cloud based?: Cloud
- Azure DevOps version: [Sprint 225](https://learn.microsoft.com/azure/devops/release-notes/2023/sprint-225-update)
- AWS Toolkit for Azure DevOps version: 1.13.0

**Additional context**

Toolkit is sending wrong parameters to AWS Systems Manager SendCommand API:

Value 'command' at 'notificationConfig.notificationType' failed to satisfy constraint: Member must satisfy enum value set: [Command, Invocation];
Value '[all]' at 'notificationConfig.notificationEvents' failed to satisfy constraint: Member must satisfy constraint: [Member must satisfy enum value set: [All, Success, Cancelled, InProgress, TimedOut, Failed]]

**AWS Document**
![Screenshot 2023-08-23 171049](https://github.com/aws/aws-toolkit-azure-devops/assets/3782868/80bd1434-fd92-473e-86ba-11d77660cf19)

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the AWS SSM Run Command task with SNS Notifications in a pipeline, then compare the parameters sent to the SendCommand API with the AWS documentation. Check the notificationConfig notificationType and notificationEvents values against the reported enum errors. Done means the pipeline runs without parameter validation errors.

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
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.