-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run local command on Preview #49
Comments
I think something along these lines should be possible. The Pulumi provider interface allows providers to opt in to having their We could likely opt-in to this in this provider, and then allow users to control the behaviour in both There are a few questions on the interface for this:
It would be useful to collect a few concrete examples that show how we would expect this to be used to inform these design decisions (and others that might come up as part of fleshing out a design/implementation for this). |
BTW - Why can't this just be done directly in code? What is the reason a |
We want to use the same credentials for EKS. EKS only gives you a command to retrieve the token in the kubeconfig, but the Pulumi EKS interface allows you to configure it to use a profile. So we use this profile specifier + the local.Command to interact with our clusters. We do use the direct in code approach for Azure because AKS gives you a full token in the kubeconfig. |
One other way we could do this is add an |
I like the idea of an |
Hello!
Issue details
We use the local command to take our AWS credentials from stack config and create an AWS profile on the machine. This enables us to get EKS kubeconfig working. The issue we have here is that on CI machines if we wish to run preview commands, the profile doesn't get created on local disks.
What I'm proposing is adding a preview field, similar to
create
anddelete
but is executed when a preview is ran. I'm happy to do the implementation as this is a significant blocker for us so I'm mostly seeking clarity on whether this is something you would be willing to add.Affected area/feature
Pulumi command library/provider.
The text was updated successfully, but these errors were encountered: