Closed jamest-pin closed 8 months ago
Thanks for this report @jamest-pin. This warning is coming from the underlying aws provider.
The deprecation message was fixed in pulumi-aws in Release v6.1.0 · pulumi/pulumi-aws, but pulumi-aws-apigateway just specifies ^6.0.4
for the aws provider version: https://github.com/pulumi/pulumi-aws-apigateway/blob/516c004ea6376febbf9d3a0418cb3ae2b79552c0/provider/cmd/pulumi-resource-aws-apigateway/package.json#L7C1-L7C29 so it's a little tricky to see when pulumi-aws-apigateway should have picked up the change.
I notice that you have multiple versions of both the aws plugin and the aws-apigateway plugin installed though so it's likely your program is just picking out the old version.
You can use pulumi plugin rm
to remove the old plugin versions.
If you want to explicitly force the version of the resource from your YAML program - you can do that with the version option:
api_app:
type: aws-apigateway:RestAPI
options:
version: 2.1.1
properties:
stageName: ${pulumi.stack}
routes:
# https://www.pulumi.com/registry/packages/aws-apigateway/api-docs/restapi/#target
- localPath: ${confFrontendCompiledFilesPath}
method: GET
path: /
Thank you @mjeffryes. I forgot to mention I'd already tried removing ALL plugins using pulumi plugin rm
. It appears to make no difference. It simply redownloads the 6.0.4
version of the aws plugin. I am using yaml thus not specifying the version anywhere. I commented out all instances of version:
in the options:
block to make sure of this.
I also tried destroying my dev stack completely, deleting all plugins, then trying again. It still downloads 6.0.4
.
In production, I don't have the liberty of destroying the stack, or even certain resources (such as DNS entries, which cannot be load balanced or blue/greened and take time to propagate). I need a way of
Sorry, I also forgot to mention I have always had the version set (btw, 2.1.0 is the latest for aws-apigateway). I just forgot to include that in my example in the original post. I copied the code from a time where I was testing without setting the version.
options:
version: 2.1.0
Thanks in advance for your time.
@jamest-pin I realized we have a lockfile pinning the AWS version to v6.0.4; I opened a PR to see if we can bring in a more recent version
Thanks, I did
options:
version: 2.2.0
and the warning is gone now.
Minor FYI, the docs page still shows 2.1.0 as being the latest. https://www.pulumi.com/registry/packages/aws-apigateway/api-docs/restapi/
What happened?
I get this warning on every apply:
Slack thread: https://pulumi-community.slack.com/archives/CRH5ENVDX/p1703063228853249?thread_ts=1703036443.323509&cid=CRH5ENVDX
Example
I do this:
Output of
pulumi about
Additional context
Contributing
Vote on this issue by adding a 👍 reaction. To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).