victorious-dusk-75271
09/05/2022, 11:15 PMgentle-market-22852
09/06/2022, 4:03 AMgentle-market-22852
09/06/2022, 4:40 AMgentle-market-22852
09/06/2022, 4:41 AMgentle-market-22852
09/06/2022, 5:26 AM<dependency>
<groupId>com.pulumi</groupId>
<artifactId>pulumi</artifactId>
<version>0.5.4</version>
</dependency>
<dependency>
<groupId>com.pulumi</groupId>
<artifactId>azure-native</artifactId>
<version>1.64.0</version>
</dependency>
victorious-dusk-75271
09/06/2022, 6:27 AMenough-potato-36582
09/06/2022, 9:18 AMpulumi up
enough-potato-36582
09/06/2022, 9:20 AMfew-lizard-48557
09/06/2022, 1:00 PMlively-crayon-44649
09/06/2022, 1:13 PMchild_process
functions (e.g. spawn
, spawnSync
) in their Pulumi applications? E.g. suppose you want to set up an SSH tunnel midway through a Pulumi process, after e.g. provisioning a bastion host, so rough pseudo code:
const bastion = new cloudProvider.Instance(...)
spawnSync("ssh", ["-L", ...])
const database = new postgresql.Database(..., {
host: "localhost" // the host is localhost because of the tunnel we've set up
})
I can see a few ways to go about this:
1. Use Pulumi automations, in which I orchestrate the "pre-tunnel" and "post-tunnel" bits. There's an example of this online, but I'm somewhat wary of this as I'd like to maintain access to the "standard" Pulumi CLI and its features if possible, which I understand automations would take me away from
2. "Just call the function" in the middle of the Pulumi program -- I think this is OK? Perhaps it needs wrapping in an apply
or something and feeding into another dependsOn
? https://github.com/pulumi/pulumi-kubernetes/issues/1857 seems to suggest this is possible but the equivalent TypeScript code appears to be type incorrect (though I may be missing something obvious)
3. Use something like @pulumi/command
, though since I want the tunnel to be created on every run, this feels wrong, since I'd not want it to go in the state file. But again, could be wrong here.
All thoughts and input welcome/gratefully received πgray-area-92171
09/06/2022, 1:50 PMpulumi.Any{
).
Does anybody know a sane workaround here? Right now I see this as a blocker for us, I've not found a sane way to work around this bug/limitation.busy-magazine-6225
09/06/2022, 5:59 PMcrooked-cpu-12491
09/06/2022, 7:39 PMerror: Preview failed: unable to find required configuration setting: GCP Project
Set the GCP Project by using:
`pulumi config set gcp:project <project>`
dry-potato-52542
09/06/2022, 7:49 PMvictorious-dusk-75271
09/06/2022, 8:20 PM- β β ββ aws:ec2:LaunchConfiguration primary-eks-ng-nodeLaunchConfiguration deleting.. completing deletion from previous update
victorious-dusk-75271
09/06/2022, 9:13 PMvictorious-dusk-75271
09/07/2022, 3:38 AMkubernetes:<http://rbac.authorization.k8s.io/v1:RoleBinding|rbac.authorization.k8s.io/v1:RoleBinding> (primary-production-laravel-usr-binding):
warning: configured Kubernetes cluster is unreachable: unable to load schema information from the API server: Get "<https://xxxx.gr7.ap-southeast-1.eks.amazonaws.com/openapi/v2?timeout=32s>": dial tcp: lookup <http://xxxx.gr7.ap-southeast-1.eks.amazonaws.com|xxxx.gr7.ap-southeast-1.eks.amazonaws.com> on 172.17.64.1:53: no such host
error: Preview failed: failed to read resource state due to unreachable cluster. If the cluster has been deleted, you can edit the pulumi state to remove this resource
what can i do in this case?victorious-dusk-75271
09/07/2022, 3:38 AMvictorious-dusk-75271
09/07/2022, 4:56 AMicy-doctor-13719
09/07/2022, 3:51 PMfamous-magician-5742
09/07/2022, 5:10 PMnumerous-printer-41511
09/07/2022, 7:21 PMnumerous-printer-41511
09/07/2022, 7:28 PMincalculable-thailand-44404
09/07/2022, 9:12 PMdry-potato-52542
09/07/2022, 9:18 PMable-dentist-35553
09/08/2022, 7:54 AMgorgeous-country-43026
09/08/2022, 8:30 AMwarning: A new version of Pulumi is available. To upgrade from version '3.39.1' to '3.39.2', visit <https://pulumi.com/docs/reference/install/> for manual instructions and release notes.
> winget upgrade pulumi
No applicable update found.
Is the winget GHA deployer broken again?fresh-librarian-41835
09/08/2022, 5:06 PMpulumi config refresh
results in an error: no previous deployment
This stack has resources that were created that are less than 24 hours old.careful-scooter-51385
09/09/2022, 1:13 AMastonishing-quill-88807
09/09/2022, 3:30 PMaliases
would be to migrate from the default provider instance?