aws-cloudformation / aws-cloudformation/cloudformation-coverage-roadmap

AWS::Chatbot::MicrosoftTeamsChannelConfiguration - TeamsChannelId validation pattern incorrect

Open
#1,886 3 comments 1 reaction 0 assignees View on GitHub
bug
Dominant language
No language data
Stars
1.1k
Forks
62
PR merge metrics
No merged PRs in 30d

Description

### Name of the resource

Other

### Resource Name

AWS::Chatbot::MicrosoftTeamsChannelConfiguration

### Issue Description

The `TeamsChannelId` property of `AWS::Chatbot::MicrosoftTeamsChannelConfiguration` is displayed as `^([a-zA-Z0-9-_=+/.,])*%3a([a-zA-Z0-9-_=+/.,])*%40([a-zA-Z0-9-_=+/.,])*$` in the Cfn docs however when copying Team channel links the pattern should actually be `^([a-zA-Z0-9-_=+/.,])*%3A([a-zA-Z0-9-_=+/.,])*%40([a-zA-Z0-9-_=+/.,])*$` (at least in my case). Notice specifically that the pattern is `%3A` when copied from the Teams application and not `%3a`.

Weirdly, if I take my URL copied from Teams (which includes `%3A`) and update it manually to show `%3a` instead then the link still links to the right channel.

As an interesting note, if I create the configuration using the AWS console, I do not need to manually edit the URL that is provided from the Microsoft Teams application.

### Expected Behavior

When copying a Teams link from Microsoft Teams, the channel ID should not need altering to be valid in Cfn to deploy a Teams configuration.

### Observed Behavior

Teams channels copied from the link provided by the Microsoft Teams application do not match the expected pattern from Cfn. If you use the teams channel ID copied directly from the Microsoft Teams application, it does not deploy and provides the error:

```
Properties validation failed for resource TeamsConfiguration with message: #/TeamsChannelId: failed validation constraint for keyword [pattern]
```

### Test Cases

Link to a Teams channel with Cfn

### Other Details

Someone should probably either:
- Remove the validation
- Figure out what the correct validation should be from Microsoft

Contributor guide

Open the contributing guide

Research direction

The issue names no repository files or tests. Start by reproducing the CloudFormation validation failure with a Microsoft Teams channel link containing `%3A`, then compare that value with the documented TeamsChannelId pattern. Done means deciding the correct validation with Microsoft Teams behavior and verifying that a copied channel ID deploys without manual alteration.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws
Domain
cloud
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.