https://pulumi.com logo
#general
Title
# general
b

brash-vr-21201

12/10/2021, 3:06 PM
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

billowy-army-68599

12/10/2021, 3:25 PM
@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

brash-vr-21201

12/10/2021, 3:28 PM
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

billowy-army-68599

12/10/2021, 3:30 PM
you can call the github releases API and fetch the latest version of course
but it's generally better to pin a version
b

brash-vr-21201

12/10/2021, 3:35 PM
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

billowy-army-68599

12/10/2021, 3:42 PM
you'd pin it in your
package.json
, what does it look like at the moment?
b

brash-vr-21201

12/10/2021, 3:47 PM
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

billowy-army-68599

12/10/2021, 3:50 PM
yup, that should work!
b

brash-vr-21201

12/10/2021, 3:51 PM
Great! thanks a lot
3 Views