I'm seeing a strange issue when trying to run an 'up' or a 'preview'.
Copy code
failed to upgrade resource state: State version 1 is greater than schema version 0 for resource aws_ecs_service. Please upgrade the provider to work with this resource.
anyone seen this before and know what to do to fix it?
a
adventurous-butcher-54166
10/08/2024, 3:41 PM
Check what version you're running and whether there's a newer version available of the provider you're using - assuming `pulumi_aws`:
pip freeze | grep pulumi_aws
s
some-leather-2872
10/08/2024, 4:56 PM
i was/am on version
Copy code
pulumi_aws==6.44.0
pulumi_awsx==2.13.0
I ran
Copy code
pulumi plugin install resource aws 6.55.0
but it looks like its still using the 6.44.0 version, and also still getting the error
some-leather-2872
10/08/2024, 5:08 PM
now, i'm explicitly setting the version on the resource by using
Copy code
opts=pulumi.ResourceOptions(version="6.55.0")
still same error
a
adventurous-butcher-54166
10/08/2024, 9:09 PM
Did you not update the
pulumi_aws
Python package?
s
some-leather-2872
10/09/2024, 3:44 PM
yeah, i've upgraded pulumi_aws package, still same results
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.