Skip to content

diff: cdk diff does not handle non-latin characters correctly #22203

@igormukhin

Description

@igormukhin

Describe the bug

If the deployed version of your CF template has non-latin characters in it, the cdk diff does not understand those characters.

Expected Behavior

cdk diff should correctly handle non-latin characters in the deployed version of CF template.

Current Behavior

non-latic characters in the deployed version of CF template are seen as question marks ?.

Reproduction Steps

Use:

const app = new cdk.App();
const bugStack = new Stack(app, 'non-latin-in-diff-bug');
new secMan.Secret(bugStack, 'secret', {
    secretName: 'secret',
    description: 'привет öäüß',
});

Run: cdk deploy non-latin-in-diff-bug
Then run: cdk diff non-latin-in-diff-bug

The output will be:

Stack non-latin-in-diff-bug
Resources
[~] AWS::SecretsManager::Secret secret secret4DA88516 
 └─ [~] Description
     ├─ [-] ?????? ????
     └─ [+] привет öäüß

Possible Solution

No response

Additional Information/Context

No response

CDK CLI Version

2.43.0 (build 487870a)

Framework Version

2.43.0

Node.js Version

v16.15.1

OS

Windows 10

Language

Typescript

Language Version

4.8.3

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis issue is a bug.needs-cfnThis issue is waiting on changes to CloudFormation before it can be addressed.package/toolsRelated to AWS CDK Tools or CLI

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions