https://pulumi.com logo
#aws
Title
# aws
g

gray-chef-51307

02/26/2024, 7:23 PM
Has anyone experienced issues when moving between awsx and awsx/classic? Specifically around EKS trying to recreate deployments (instead of updating). This is with just a node_module update and no other changes. Just wanted to see if there was any tips or tricks to getting this stuff to leave unchanged deployments alone.
s

salmon-account-74572

02/26/2024, 7:56 PM
There are significant differences between
awsx/classic
and
awsx
, so I’m not surprised that you are seeing proposed changes. There is no workaround of which I am aware, sorry.
g

gray-chef-51307

02/26/2024, 7:57 PM
I thought the whole point of moving to /classic was to allow for no changes? if I don't use classic I have to rewrite pretty much everything lol. It's not a super pleasant experience.
either way, thanks for the feedback. Good to know i'm not crazy trying to do this stuff.
s

salmon-account-74572

02/26/2024, 7:59 PM
Moving to
awsx/classic
allows you to “opt out” of the changes, as long as you don’t upgrade out of it. Unfortunately, getting away from classic means rewriting stuff---sorry about that.
l

little-cartoon-10569

02/26/2024, 8:46 PM
You're upgrading from 0.4.1 to something newer, and changing all the imports from awsx.* to awsx.classic.*? And everything except EKS deploymets are doing the right things?
s

salmon-account-74572

02/26/2024, 9:26 PM
I took his question the opposite way, but maybe I misunderstood? I thought @gray-chef-51307 was already on
awsx/classic
and was moving to
awsx
.
l

little-cartoon-10569

02/26/2024, 9:28 PM
You don't have any changes in node_modules when changing API within the one package...
g

gray-chef-51307

02/26/2024, 9:47 PM
No, @little-cartoon-10569 is correct.
We were on awsx and then upgraded and moved to awsx/classic to avoid a significant rewrite (small changes were needed).
cc @helpful-animal-33727
l

little-cartoon-10569

02/26/2024, 9:57 PM
Can you paste the detailed diffs of the unexpectedly-changing resources? Slacks' Text Snippet tool is good for sharing fixed-width formatted text.
g

gray-chef-51307

02/26/2024, 10:07 PM
It's quite a bit. Let me find my last pulumi up and post them both
We removed several K8s deployments. This is using my branch prior to my merging into the main branch.
Hmm, looks like most of it is actually kubernetes stuff ... this may be a misunderstanding ...
Will post it anyway ...
Pulumi preview of main branch.
l

little-cartoon-10569

02/26/2024, 10:22 PM
All the deployment replaces are due to changed specs, which is correct. Are the specs changing unexpectedly? Can you view the detailed diff, rather than the summary, and inspect the spec changes? If they're different for a "bad" reason and causing inappropriate replacements, then I'm sure Scott and the Pulumi team would like to know.