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

ambitious-father-68746

04/09/2022, 12:23 PM
Hi, is it possible to use different provider versions for different resources?
b

bitter-eve-53295

04/09/2022, 3:28 PM
Yup, just set up your opts:
Copy code
res = some.Resource(
    ...
    opts=pulumi.ResourceOptions(
        provider=some.Provider(...),
    )
)
a

ambitious-father-68746

04/09/2022, 4:01 PM
Yes, I use that extensively, but how do I specify the version of the provider being used?
Answering my own question with Python, all we need to do is specify the version as a resource option when creating the provider:
Copy code
pulumi_aws.Provider(
    ...
    opts=pulumi.ResourceOptions(version=<version>))
❤️ 1
3 Views