I'm not sure whether this issue is involved with aws-events or cdk diff.
Reproduction Steps
I have deployed this resource:
import * as events from '@aws-cdk/aws-events'
new events.Rule(this, 'rule', {
eventPattern: {
detail: {
type: ['대한민국'], // Any non-single byte characters
},
}
)
cdk diff always tells there is a difference even though it has been deployed.
$ cdk diff <stack>
Stack <stack>
Resources
[~] AWS::Events::Rule rule rule5EE78A73
└─ [~] EventPattern
└─ [~] .detail:
└─ [~] .type:
└─ @@ -1,3 +1,3 @@
[ ] [
[-] "????"
[+] "대한민국"
[ ] ]
But when I tried to deploy again, it tells:
$ cdk deploy <stack>
<stack>
<stack>: deploying...
<stack>: creating CloudFormation changeset...
✅ <stack> (no changes)
What did you expect to happen?
$ cdk diff <stack>
✅ <stack> (no changes)
What actually happened?
$ cdk diff <stack>
Stack <stack>
Resources
[~] AWS::Events::Rule rule rule5EE78A73
└─ [~] EventPattern
└─ [~] .detail:
└─ [~] .type:
└─ @@ -1,3 +1,3 @@
[ ] [
[-] "????"
[+] "대한민국"
[ ] ]
Environment
- CLI Version : aws-cli/2.0.45 Python/3.8.5 Darwin/19.6.0 source/x86_6
- Framework Version: aws-cdk 1.62.0
- Node.js Version: v14.9.0
- OS : macOS Catalina
- Language (Version): TypeScript 4.0.2
Other
This is 🐛 Bug Report
I'm not sure whether this issue is involved with
aws-eventsorcdk diff.Reproduction Steps
I have deployed this resource:
cdk diffalways tells there is a difference even though it has been deployed.But when I tried to deploy again, it tells:
What did you expect to happen?
What actually happened?
Environment
Other
This is 🐛 Bug Report