This message was deleted.
# general
s
This message was deleted.
g
We're using v3 of the Pulumi SDK. Not sure how we would upgrade to v3 of the Automation SDK, but I think that version is referring to the action itself?
a
Can confirm, just started getting the same issue. Was the action version suppose to be bumped as well? The Pulumi v3 requirement has rolled out to
pulumi/actions@v2
consumers.
g
UPDATE: We fixed this by pinning the version of the pulumi action, e.g.
uses: pulumi/actions@v2.2.0
r
Hey folks! It was not intended that this would be pushed to consumers before we did the
v3
release.
So, just for my own understanding, if you don’t pin the action version it appears it pulls in what’s in the main branch in the action? That’s pretty wild. I would’ve thought it would pull the latest released version.
f
I believe that’s right. Actions generally recommends (and will produce templates that) pin to a specific tag with the
@[tag]
syntax, but if you don’t provide one I think it takes latest from the default branch.
g
For what it's worth, we had it pinned to @v2
r
So I think there are 2 issues here: 1. @green-musician-49057 it sounds like you want the action to be
v3
so you can use the
v3
CLI because your code is using automation api from SDK
v3
- is that right? 2. @adventurous-garage-59192 can you tell me more about the issue you’re running into? Are you getting the same error? And you’re using CLI v2?
g
We were not using the automation API, and we were on pulumi sdk
v2.24.1
the first time the issue cropped up, about 3 hours ago, 6:02PM PDT
r
Right, but the error says that you’re using CLI v3 - is that true?
Copy code
You are using Pulumi CLI version 3.0.0 with Automation SDK v2. Please update the SDK.
g
we were using whatever is installed from this action:
pulumi/action-install-pulumi-cli@v1.0.1
No
pulumi-version
specified. I assume that would try to install the latest, which would be v3
👍🏽 1
r
Yeah, I that action installs
latest
if no version is specified. You can specify the version with:
Copy code
- name: Install pulumi
  uses: pulumi/action-install-pulumi-cli@v1.0.2
  with:
    pulumi-version: 2.25.1
a
Pinning the CLI version fixed the issue, thanks! I guess the problem is in the opposite direction than I assumed, with a new version of the action that supports v3 not being published yet. Will update my pulumi stacks when it is!
b
hey sorry about this, we have a newly released version of the Pulumi action using the latest major version - it's highly recommended you pin to major versions in any case, but hopefully this should fix your CI pipelines! Sorry for the disruption