Hi. We are using automation api for our service us...
# general
b
Hi. We are using automation api for our service using the JavaScript sdk. And after certain intervals it keeps saying the AWS plugin version not found whenever we want to create a stack and a new plugin version is out. Is anyone else facing this issue? Is there a way to fix the AWS plugin version ? We are using the automation api in docker container and there is a ci/cd pipeline in place if that is relevant?
b
@brash-vr-21201 there's an install plugins function you should use: https://www.pulumi.com/docs/reference/pkg/nodejs/pulumi/pulumi/automation/#Workspace-installPlugin
b
Yeah but this requires us to provide the version it doesn't install the latest automatically. So every now and then the deployment breaks for a new stack.
b
you can call the github releases API and fetch the latest version of course
but it's generally better to pin a version
b
Ok, thanks for the releases api suggestion. On the second comment. Yeah so is there a way to like pin it ? That would be ideal in this case? we use localWorkspace.createOrSelectStack for the stack creation.
b
you'd pin it in your
package.json
, what does it look like at the moment?
b
Ok so you mean that if I fix the version of @pulumi/aws so like "@pulumi/aws" : "^4.25.0" to let's say "@pulumi/aws" : "4.25.0" . and correspondingly I install Plugin version 4.25.0 . That should solve this? So these versions are related ?
b
yup, that should work!
b
Great! thanks a lot