-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
aws-cdk-lib/aws-chatbot: Tag elements cannot contain whitespaces #30381
Comments
Update: Payload has changed to the AWSChatbot service. |
Seems resolved now @nguyentoanit ?? |
@paulocen : Not yet from my side. Still get the same error. 🤷 |
Nope, the issue still exists:
|
@paulocen Also, I am not sure what you mean by this:
? |
I think this is some internal error from AWS, because we are not even setting a tag on the given resource. I have inspected the actual CF template as it's in the CF stack. Here's the definition: "DriverSlackChannel8D461434": {
"Type": "AWS::Chatbot::SlackChannelConfiguration",
"Properties": {
"ConfigurationName": "AD-OpsTools-foo",
"IamRoleArn": {
"Fn::GetAtt": [
"DriverSlackChannelConfigurationRoleB1E5C93B",
"Arn"
]
},
"LoggingLevel": "INFO",
"SlackChannelId": "snipped",
"SlackWorkspaceId": "snipped",
"SnsTopicArns": [
{
"Fn::Join": [
"",
[
"arn:",
{
"Ref": "AWS::Partition"
},
":sns:us-east-1:123:foo"
]
]
},
{
"Fn::ImportValue": "..."
},
{
"Fn::Join": [
"",
[
"arn:",
{
"Ref": "AWS::Partition"
},
":sns:ap-northeast-1:123:foo"
]
]
},
{
"Fn::Join": [
"",
[
"arn:",
{
"Ref": "AWS::Partition"
},
":sns:me-central-1:123:foo"
]
]
}
]
}
}, |
Hi @nguyentoanit , thanks for reaching out and sharing the repro code. I am not able to repro the error on my side rather, getting a different one which is related to channel access, seems fixable so working on it. Meanwhile, as a workarond, Could you please try using the L1 construct like the given code shared below as I was able to successfully deploy the chatbot with L1 Construct . Source code - const slackChannel = new CfnSlackChannelConfiguration(this, 'SlackChannelConfiguration', {
configurationName: "cdk-integration-test-slack-config",
slackChannelId: "********12",
slackWorkspaceId: "T0****Z",
loggingLevel: LoggingLevel.ERROR,
iamRoleArn: "arn:aws:iam::123456789:role/service-role/AWSChatbot-role-1503-private",
}); Generated Synth template snippet-
Deployment - Let me know if that works for you. |
Why would L1 be any different? It just produces the same CloudFormation template in the end. |
yes, it would. I am not saying its wrong. Its just that deployment is successful so that would mean there might be some bug in L2 construct implementation which I am currently investigating. I shared the L1 construct as an alternate to existing issue. |
I don't see how the L2 or L3 has anything to do with it. I posted the entire template. Which is ultimately what the pipeline deploys. Pipeline does not use CDK to deploy. It uses CodePipeline native actions, and the templates produced by CDK. The template is there for everyone to see, as an artifact of the build. It does not even contain tags. |
the AWS team has made some adjustments on their end. |
|
Comments on closed issues and PRs are hard for our team to see. If you need help, please open a new issue that references this one. |
Describe the bug
Recently, CDK failed to update stacks.
Looks like, an internal service (WheatleyOrchestration) didn't accept Tag elements contain whitespaces.
Expected Behavior
The internal service accepts Tag elements contain whitespaces.
Current Behavior
CDK couldn't update
SlackChannelConfiguration
because an internal service required Tag elements without whitespaces.Reproduction Steps
Deploy this stack:
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.143.0
Framework Version
2.143.0
Node.js Version
18.19.0
OS
Linux
Language
TypeScript
Language Version
TypeScript (5.4.5)
Other information
No response
The text was updated successfully, but these errors were encountered: