question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CDK diff incomplete on MacOS

See original GitHub issue
  • I’m submitting a …

    • 🪲 bug report
    • 🚀 feature request
    • 📚 construct library gap
    • ☎️ security issue or vulnerability => Please see policy
    • ❓ support request => Please see note at the top of this template.
  • What is the current behavior? On MacOS (Mojave) the cdk diff command only prints the ‘IAM Statement Changes’ section while there are several more changes (IAM policy changes and a lot of different changed resources). On two Linux machines (one running Ubuntu, one running Amazonlinux 2) with the same NodeJS version the cdk diff command on the same stack shows all the differences.

  • What is the expected behavior (or behavior of feature suggested)? The cdk diff on MacOS should show the full set of changes just like it does on Linux.

  • What is the motivation / use case for changing the behavior or adding this feature? As a developer using the CDK, I want to see all changes that the deployment would cause so that I don’t find a “bad surprise” after the deployment.

  • Please tell us about your environment:

    • CDK CLI Version: 0.35.0
    • Module Version: 0.35.0
    • OS: OSX Mojave
    • Language: TypeScript
    • NodeJS Version: v10.15.3
  • Other information

    • Usually, I am using zsh on my Macbook, but I also tried it with bash and sh - same result.
    • Edit: I played around with a few more combinations of diffs: in a cdk diff without any ‘IAM Statement Changes’, I can at least see an incomplete list of resource changes in the list of differences. So there might be a connection.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
lqueryvgcommented, Jul 1, 2019

@NGL321, thanks for responding, but I think this is my misunderstanding. I’ve seen “hype” on the internet saying that cdk diff is equivalent to terraform plan. I don’t think that’s true.

terraform plan compares the desired state (your code) against deployed resources. Whereas cdk diff compares the desired state against the stack. It doesn’t look at the deployed resources until you deploy, and it will only do that if it sees that your code has changed. You only find out about discrepancies between the stack and deployed resources at deployment time, so there’s always room for a little “surprise”, here or there 😉 😮

Bottom line, it’s not the same at all really.

1reaction
NGL321commented, Jun 25, 2019

Hi Thomas, thanks so much for reaching out.

It would be super helpful if we could get a gist of your terminal, so we can better analyze what is going on.

Read more comments on GitHub >

github_iconTop Results From Across the Web

AWS CDK Toolkit (cdk command) - AWS Documentation
The cdk diff command compares the current version of a stack (and its dependencies) defined in your app with the already-deployed versions, or...
Read more >
aws-cdk | Yarn - Package Manager
The AWS Cloud Development Kit (AWS CDK) is an open-source software development framework to define cloud infrastructure in code and provision it through...
Read more >
Solved: VMware Horizon authenticating but not connecting o...
I am on macOS Big Sur 11.3 Beta on a 2018 Mac mini. ... Apr 01 11:01:42.450 +01:00: vmware-view 2417| Reseting global state...
Read more >
aws-cdk: cdk diff command extremely slow - Stack Overflow
OS: macOS Monterey 12.5.1 · CPU: Apple M1 Max · CDK version: 2.40.0 (build 56ba2ab) · NPM: 8.15.0 · node.js version: 18.9.0 ·...
Read more >
The OCF - Open CDK Guide
That being said, the cloud is complicated, CloudFormation coverage of AWS is incomplete, and the CDK itself (and IaC in general) is still...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found