https://pulumi.com logo
Title
b

bored-table-20691

06/07/2021, 11:44 PM
Is there a way to disable the default providers (e.g. for AWS/Kubernetes), to force you to always have to specify a provider? I am always worried I will forget setting the provider somewhere and it will use the default ones with whatever they are configured
1
l

little-cartoon-10569

06/08/2021, 12:57 AM
Afaik this can only be done by using a stack transformation. Someone did get it going and posted their code recently.. no more than 6 weeks ago. I'll have a look through my history, I was in the thread...
b

bored-table-20691

06/08/2021, 1:31 AM
@little-cartoon-10569 is this available for non-Typescript?
l

little-cartoon-10569

06/08/2021, 1:43 AM
Yes I think so. Which language preferred? I'll find the docs
Can't see it in the Python docs.. and wow TypeScript has the advantage in docs.
It does exist in Python though. It's mentioned here: https://www.pulumi.com/docs/intro/concepts/resources/#transformations
I just don't know where the
registerStackTransformation
function lives, in Python.
b

bored-table-20691

06/08/2021, 3:09 AM
Great - Go is what I needed. Thank you!
👍 1
w

white-balloon-205

06/08/2021, 6:15 AM
Note btw this feature request is tracked in https://github.com/pulumi/pulumi/issues/3383. There’s a comment on the issue that provides a slightly hacky workaround that can work pretty well in practice until official support is added.
👍 1
b

bored-table-20691

06/08/2021, 6:20 AM
Thanks @white-balloon-205, this is helpful.