fresh-spring-82225
01/10/2024, 8:17 PMdrwx------ 6 kenji staff 192B Jan 6 13:57 resource-aws-v5.35.0/
-rw-r--r-- 1 kenji staff 0B Jan 6 13:57 resource-aws-v5.35.0.lock
drwx------ 6 kenji staff 192B Jan 6 14:03 resource-aws-v5.42.0/
-rw-r--r-- 1 kenji staff 0B Jan 6 14:03 resource-aws-v5.42.0.lock
drwx------ 6 kenji staff 192B Jan 8 09:23 resource-aws-v6.13.2/
-rw-r--r-- 1 kenji staff 0B Jan 8 09:23 resource-aws-v6.13.2.lock
drwx------ 6 kenji staff 192B Jan 10 12:13 resource-aws-v6.13.3/
-rw-r--r-- 1 kenji staff 0B Jan 10 12:13 resource-aws-v6.13.3.lock
drwx------ 6 kenji staff 192B Jan 6 14:31 resource-aws-v6.14.0/
-rw-r--r-- 1 kenji staff 0B Jan 6 14:31 resource-aws-v6.14.0.lock
drwx------ 6 kenji staff 192B Jan 6 14:34 resource-aws-v6.15.0/
-rw-r--r-- 1 kenji staff 0B Jan 6 14:34 resource-aws-v6.15.0.lock
drwx------ 6 kenji staff 192B Jan 6 14:27 resource-aws-v6.17.0/
-rw-r--r-- 1 kenji staff 0B Jan 6 14:27 resource-aws-v6.17.0.lock
drwx------ 6 kenji staff 192B Jan 9 18:18 resource-aws-v6.18.0/
-rw-r--r-- 1 kenji staff 0B Jan 9 18:18 resource-aws-v6.18.0.lock
drwx------ 6 kenji staff 192B Jan 9 18:35 resource-aws-v6.3.0/
-rw-r--r-- 1 kenji staff 0B Jan 9 18:35 resource-aws-v6.3.0.lock
drwx------ 6 kenji staff 192B Jan 6 13:35 resource-aws-v6.4.0/
-rw-r--r-- 1 kenji staff 0B Jan 6 13:35 resource-aws-v6.4.0.lock
drwx------ 6 kenji staff 192B Jan 8 09:45 resource-aws-v6.8.0/
-rw-r--r-- 1 kenji staff 0B Jan 8 09:45 resource-aws-v6.8.0.lock
drwx------ 6 kenji staff 192B Jan 6 12:48 resource-aws-v6.9.0/
-rw-r--r-- 1 kenji staff 0B Jan 6 12:48 resource-aws-v6.9.0.lock
green-stone-37839
01/10/2024, 8:47 PMpackage.json
? Short story is yes, it's determined by the version in your package.json
fresh-spring-82225
01/10/2024, 8:58 PMfresh-spring-82225
01/10/2024, 9:30 PMbrave-angle-33257
01/10/2024, 10:04 PMfresh-spring-82225
01/10/2024, 10:23 PMfresh-spring-82225
01/10/2024, 10:25 PMyarn why
, but if I understand correctly it should be resolving to v6.17.0
> yarn why @pulumi/aws
├─ @pulumi/awsx@npm:2.4.0
│ └─ @pulumi/aws@npm:6.17.0 (via npm:^6.9.0)
│
└─ pin-dash@workspace:.
└─ @pulumi/aws@npm:6.17.0 (via npm:^6.17.0)
limited-rainbow-51650
01/11/2024, 9:24 AMawsx
is a component package which has its own dependency on the core aws
package. Not so long ago, I extended our docs a bit with some more info:
https://www.pulumi.com/docs/languages-sdks/javascript/#dependencies-on-provider-packages-within-component-packages
You also have to make a distinction between pulumi
operations which evaluate your infrastructure code and operations which use only the state information. This is how pulumi
CLI acts in general (which is still a simplified representation):
• `preview`: Pulumi CLI will use the new plugin version from your NodeJS package.json
to read the existing resource state, calculate the diff & display the needed resource changes. The new version is not saved to state.
• `refresh`: Pulumi CLI doesn't execute the user program, so will use the plugin version recorded in the state to read the resource state, and communicate with the real API to compare. When changes are accepted, some property values can be updated but no change in the version of the plugin binary will happen.
• `up`: these proposed changes are applied using the new version of the provider. When some resources are scheduled for deletion, this will be done using the old version of the plugin. Other resource changes are handled using the new version of the plugin. The resource changes, together with the new plugin version, are now saved in the state.
• `destroy`: Pulumi CLI doesn't execute the user program, hence the plugin version from the state is used to delete the resources. All state is deleted at the end.
As you can read, multiple versions can still be at play when you just upgraded a provider version.green-alligator-4238
01/13/2024, 4:53 PMfresh-spring-82225
01/25/2024, 6:53 PM