Hello there, That's maybe not related to aws module specifically, but if I update a task definition ...
f
Hello there, That's maybe not related to aws module specifically, but if I update a task definition in ecs outside of pulumi (using aws cli, mainly changing a container definition image tag), doing a
pulumi refresh
does not detect the change and it still wants to update something that is already existing. Same problem with the taskDefinition of a service, it does not detect the version has changed with a
refresh
and it shows an outdated diff when doing an
up
Is there a way to make it aware of the changes and avoid an unecessary deployment of the service/tasks ? (I know we could easily do it with Pulumi Deployment, but we don't want to switch to pulumi Enterprise tier yet)
l
Hi Richard. What version (
pulumi version
or
pulumi about
) are you using? We recently (literally last week) released some changes to
refresh
diffs to try and bring them in line with what people typically expect -- if you are on an older version I'd be keen to see if upgrading helps.
f
Hey @lively-crayon-44649 Thanks for the quick reply. I'm indeed a little bit behind :
v3.115.2
I'm right on time for this then ! I'll try the last version right away and will let you know
l
🤞
f
@lively-crayon-44649 unfortunately, that does not fix the issue. pulumi still not refresh the resources and want to update 😓 version
3.121.0
and aws module
6.41.0
up to date.
Also, but totally not related, I don't see a way to show secrets in the preview diff so that I can actually know precisely what's different. there is a
--show-secrets
flag that actually does not work. I'm even having secrets showing up where there's none (for instance a basic checksum value as trigger condition of a
command.local.Command
that is definitely not cast as secret is displayed in the output as secret)
l
Hi Richard -- just to double check, your CLI is on version 3.121.0 (and not just your SDK libraries such as
@pulumi/pulumi
if you are using NodeJS or
pulumi
if you are using Python)? Because it's the CLI that will determine the refresh behaviour in this case. If you have updated the CLI and you are still seeing the issue, it might be worth filing an issue against
pulumi-aws
if you have a reproduction.
f
Hey @lively-crayon-44649 Yes the CLI and the SDK have been updated (I'm using typescript flavor). I'm thinking I could need to do a full refresh with this new version to have the right behavior next time maybe ? I will try but if that's still happening, are you thinking that's related to the specific aws module then ? (can't really give it a try elsewhere)
l
It could be a general engine issue, but it's not uncommon for providers (in this case AWS) to have specific issues also. I'd be inclined to start there and if it is a general engine issue it'll find its way to the
pulumi/pulumi
GH repository.
👍 1