early-match-56268
08/18/2020, 12:40 PM~/.pulumi
dir and reinstalled) and then tried to run my project but the wrong plugin versions are being installed when I bring up my project:
❯ poetry run pulumi up
Previewing update (prod):
[resource plugin kubernetes-2.4.0] installing
Downloading plugin: 23.95 MiB / 23.95 MiB [=========================] 100.00% 1s
Moving plugin... done.
error: could not load plugin for aws provider 'urn:pulumi:prod::new-data::pulumi:providers:aws::aws-east': no resource plugin 'aws' found in the workspace or on your $PATH
the aws plugin is not installed and the kubernetes version in my project is 2.4.3 but 2.4.0 plugin is being installed. I can workaround by manually installing the plugins but it is a bit inconvenientmicroscopic-pilot-97530
08/18/2020, 4:28 PMpip install pulumi-aws
, it runs `pulumi plugin install resource aws <version>`: https://github.com/pulumi/pulumi-aws/blob/5f6f8530bb8881ac88eed302c22299018aa39e81/sdk/python/setup.py#L11-L26
Before running an update, the engine will attempt to avoid missing plugins by scanning the most recent prior update’s snapshot to determine what plugin versions were used, and then install those plugins before running the update. (I am guessing this is why it is installing 2.4.0 rather than 2.4.3.)
The engine also asks the language host for required plugins, and it will install those, but it’s a best effort as not all of the language hosts implement this, which is the case for Python. Luckily, we’re planning to address this soon: https://github.com/pulumi/pulumi/issues/4848early-match-56268
08/18/2020, 6:12 PMraw_aws_config = Config('aws')
aws_provider = AwsProvider(
'aws-east',
access_key=raw_aws_config.require('accessKey'),
secret_key=raw_aws_config.require('secretKey'),
region='us-east-1',
opts=ResourceOptions(version='2.13.1'))