enough-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?few-plastic-88435
09/09/2022, 3:56 PMagreeable-whale-35898
09/09/2022, 6:26 PMpulumi up
it's stuck indefinitely so:
Previewing update (dev)
View Live: <https://app.pulumi.com/user/Proj/dev/previews/><guid...>
Type Name Plan Info
pulumi:pulumi:Stack Proj-dev 'dotnet build -nologo .' completed successfully
Any idea, if not what the problem is, at least how to debug (I despaired.. couldn't find how to extract logs our of it...) ?
Thanks a lot in advance for any hint!! πππfew-plastic-88435
09/09/2022, 9:35 PMhundreds-ghost-24810
09/09/2022, 10:23 PMworried-helmet-23171
09/10/2022, 11:44 AMfreezing-artist-36980
09/11/2022, 6:41 AMconst vpcConnector = new awsc.apprunner.VpcConnector("vpc-connector", {
securityGroups: [ec2SecurityGroup.id],
subnets: [pulumi.output(vpc.getSubnetsIds)], // ERROR HERE
});
It shows 1. Type 'Output<(type: VpcSubnetType) => Promise<Output<string>[]>>[]' is not assignable to type 'Input<Input<string>[]>'.
freezing-artist-36980
09/11/2022, 6:41 AMconst vpcConnector = new awsc.apprunner.VpcConnector("vpc-connector", {
securityGroups: [ec2SecurityGroup.id],
subnets: [pulumi.output(vpc.getSubnetsIds)], // ERROR HERE
});
It shows 1. Type 'Output<(type: VpcSubnetType) => Promise<Output<string>[]>>[]' is not assignable to type 'Input<Input<string>[]>'.
steep-sunset-89396
09/11/2022, 8:56 AMpulumi.output()
2. if you created the vpc
yourself (recommended), then you will need to create the subnet(s) as well. Then using mySubnet.id
will work.
Have you had a look at the example repository? https://github.com/pulumi/examplesfreezing-artist-36980
09/11/2022, 11:39 AMawsx
which includes private and public subnets already I believe. I think I will just have to get those subnet IDs if I'm not wrong, I just don't know how.average-tiger-58107
09/11/2022, 12:36 PMvpc.publicSubnetIds
and vpc.privateSubnetIds