purple-orange-91853
07/13/2021, 9:12 PMpulumi:providers:aws default_4_12_0 error: no resource plugin 'aws-v4.12.0' found in the workspace or on your $PATH, install the plugin using pulumi plugin install resource aws v4.12.0
. Above that I see that we have installed v4.11.0 as defined in our config which worked late last week when I testing against this method.
Executing command: pulumi plugin install resource aws v4.11.0
[resource plugin aws-4.11.0] installing
Downloading plugin: 75.91 MiB / 75.91 MiB 100.00% 1s
How do we avoid this and/or is it possible to have the pulumi plugin install
command always pull the latest version rather than manually specifying a version on run time?
The pipeline is pulling the pulumi/pulumi:3.6.1 docker image to run in.
Pulling image pulumi/pulumi:v3.6.1
Digest: sha256:28c72d280cf89401cbc5600be57d15372c43483702a170edcdb772907288f6f1
Status: Image is up to date for pulumi/pulumi:v3.6.1
billowy-army-68599
07/13/2021, 9:13 PMnpm install
before your pulumi up?purple-orange-91853
07/13/2021, 9:14 PMbillowy-army-68599
07/13/2021, 9:15 PMpurple-orange-91853
07/13/2021, 9:16 PMyarn install
during the docker build process------------------------------
Executing command: pulumi login
Logging in using access token from PULUMI_ACCESS_TOKEN
Logged in to <http://pulumi.com|pulumi.com> as jakeatomic (<https://app.pulumi.com/jakeatomic>)
------------------------------
Executing command: pulumi plugin install resource aws v4.11.0
[resource plugin aws-4.11.0] installing
Downloading plugin: 75.91 MiB / 75.91 MiB 100.00% 1s
------------------------------
Executing command: pulumi plugin install resource kubernetes v3.5.0
[resource plugin kubernetes-3.5.0] installing
Downloading plugin: 26.22 MiB / 26.22 MiB 100.00% 0s
------------------------------
Executing command: pulumi plugin install resource eks v0.22.0
[resource plugin eks-0.22.0] installing
Downloading plugin: 670.75 KiB / 670.75 KiB 100.00% 0s
------------------------------
Executing command: pulumi plugin ls
NAME KIND VERSION SIZE INSTALLED LAST USED
aws resource 4.11.0 271 MB n/a 12 seconds ago
aws resource 3.38.1 254 MB n/a 2 seconds ago
eks resource 0.22.0 158 MB n/a 9 seconds ago
kubernetes resource 3.5.0 67 MB n/a 10 seconds ago
kubernetes resource 2.9.1 77 MB n/a 1 second ago
+ pulumi:pulumi:Stack platform-staging create
pulumi:providers:aws default_4_12_0 error: no resource plugin 'aws-v4.12.0' found in the workspace or on your $PATH, install the plugin using `pulumi plugin
install resource aws v4.12.0`
+ pulumi:pulumi:Stack platform-staging create
pulumi:providers:aws default_4_12_0 1 error
billowy-army-68599
07/13/2021, 9:29 PMpurple-orange-91853
07/13/2021, 9:32 PMcommands:
- pulumi login
- pulumi plugin install resource aws v4.11.0
- pulumi plugin install resource kubernetes v3.5.0
- pulumi plugin install resource eks v0.22.0
- pulumi plugin ls
- pulumi stack select atomicfi/${{STAGE}}
- pulumi stack
- pulumi up --non-interactive --yes -r
billowy-army-68599
07/13/2021, 9:32 PMpulumi plugin install resource aws $(curl -s <https://api.github.com/repos/pulumi/pulumi-aws/releases/latest> | jq '.tag_name' -r)
yarn install
?purple-orange-91853
07/13/2021, 9:33 PM# More examples of Codefresh YAML can be found at
# <https://codefresh.io/docs/docs/yaml-examples/examples/>
version: "1.0"
# Stages can help you organize your steps in stages
stages:
- "clone"
- "build"
- "deploy"
steps:
clone:
title: "Cloning repository"
type: "git-clone"
repo: "atomicfi/platform"
revision: "${{CF_BRANCH}}"
git: "github"
stage: "clone"
build:
title: "Building Docker image"
image: pulumi/pulumi
working_directory: "${{clone}}"
tag: "${{CF_BRANCH_TAG_NORMALIZED}}"
commands:
- yarn install
stage: "build"
RunPulumi:
title: Deploying
stage: deploy
working_directory: "${{clone}}/deployments/aws-${{AWS_REGION}}"
image: pulumi/pulumi:v3.6.1
kube_context: ${{STAGE}}
buildkit: true
ssh: default
commands:
- pulumi login
- pulumi plugin install resource aws v4.11.0
- pulumi plugin install resource kubernetes v3.5.0
- pulumi plugin install resource eks v0.22.0
- pulumi plugin ls
- pulumi stack select atomicfi/${{STAGE}}
- pulumi stack
- pulumi up --non-interactive --yes -r
# - pulumi destroy --non-interactive --yes -r
billowy-army-68599
07/13/2021, 9:35 PMpackage.json
- inside your statepackage.json
and someone new comes along and does yarn install
they'll get the latest version of the plugin, which will then be stored in state. If you do pulumi stack export
you should see the version on the provider field for each resourcepackage.json
package.json
?purple-orange-91853
07/13/2021, 9:37 PM{
"dependencies": {
"@pulumi/aws": "^4.8.0",
"@pulumi/awsx": "^0.30.0",
"@pulumi/eks": "^0.31.0",
"@pulumi/kubernetes": "^3.3.1",
"@pulumi/pulumi": "^3.4.0",
"codefresh": "^0.75.26",
"js-yaml": "^3.14.1",
"lodash": "^4.17.21"
},
"devDependencies": {
"@types/node": "^15.12.2"
}
}
billowy-army-68599
07/13/2021, 9:38 PMpurple-orange-91853
07/13/2021, 9:39 PM