quick-fall-21011
01/02/2022, 7:57 AMvar image = new Image("my-image", new ImageArgs
{
ImageName = Output.Format($"{registry.LoginServer}/{CustomImage}:v1.0.0"),
Build = new DockerBuild
{
Context = relativePath
},
Registry = registryInfo,
});
Running this locally on my machine works fine, since I have dotnet (which builds my pulumi csproj) and also have docker (which is required to build this image. Running this in circle-ci, I'm not able to find an image that satisfies both conditions.
Ideally I'd like to have my whole stack defined in pulumi, but looks more like I need to build the container outside of pulumi thru some other circle-ci orb. Any suggestions/thoughts would be appreciatedfamous-accountant-52516
01/02/2022, 2:26 PMechoing-activity-32278
01/03/2022, 4:38 AMwitty-belgium-75866
01/03/2022, 8:15 AMsticky-exabyte-94099
01/03/2022, 8:37 AMwet-noon-14291
01/03/2022, 9:45 AMError: Failed to parse Pulumi CLI version. This is probably an internal error. You can override this by setting "PULUMI_AUTOMATION_API_SKIP_VERSION_CHECK" to "true".
at parseAndValidatePulumiVersion (/home/tomas/git/elkjopnordic/flash/src/nextapp/node_modules/@pulumi/automation/localWorkspace.ts:740:15)
at LocalWorkspace.<anonymous> (/home/tomas/git/elkjopnordic/flash/src/nextapp/node_modules/@pulumi/automation/localWorkspace.ts:596:25)
at Generator.next (<anonymous>)
at fulfilled (/home/tomas/git/elkjopnordic/flash/src/nextapp/node_modules/@pulumi/pulumi/automation/localWorkspace.js:18:58)
late-energy-66663
01/03/2022, 5:30 PMlively-author-18255
01/03/2022, 8:46 PMwet-noon-14291
01/03/2022, 10:37 PMbreezy-kitchen-97655
01/04/2022, 9:42 AMcareful-vase-44898
01/04/2022, 5:08 PMpolite-napkin-90098
01/04/2022, 5:36 PM./main.go:153:22: sg.Id undefined (type *ec2.SecurityGroup has no field or method Id)
I'll post my code as a thread to avoid clutter.future-window-78560
01/04/2022, 8:57 PMorange-byte-86458
01/04/2022, 9:09 PMalert-fireman-78468
01/05/2022, 7:07 AMpulumi up
where we changed domain name so a new SSL certificate needed to be replaced. A new certificate was provisioned, and the old resource was marked for deletion. But all deletions are normally queued until the last stages of a pulumi up (which is great). But before pulumi made it to the step to change the load balancer to use the new certificate, some other (unrelated) resource failed deployment. We fixed that issue and ran another pulumi up
. But this second attempt starts with deleting the resources that are marked for deletion in the previous attempt. This means it starts with the deletion of the old certificate but it hasn't ran the steps yet to change the load balancer to use the new cert. This makes the deletion fail since you can't delete a cert that is still in use.
Is there a way to tell pulumi to also postpone the deletes from previous updates until all creates/updates have completed?damp-school-17708
01/05/2022, 1:31 PMResources:
+ 7 to create
~ 1 to update
8 changes. 187 unchanged
Do you want to perform this update? yes
Updating (sandbox):
Type Name Status
pulumi:pulumi:Stack link-sandbox
C^C
Resources:
7 unchanged
Duration: 8s
panic: send on closed channel
goroutine 1696 [running]:
<http://github.com/pulumi/pulumi/pkg/v3/engine.diagEvent(0x14002572cc0|github.com/pulumi/pulumi/pkg/v3/engine.diagEvent(0x14002572cc0>, 0x14000b23320, {0x1400213c5a0, 0x1c}, {0x140011adce0, 0x51}, {0x1054413c2, 0x5}, 0x0)
/private/tmp/pulumi-20211229-22668-k5zkrv/pkg/engine/events.go:578 +0x178
<http://github.com/pulumi/pulumi/pkg/v3/engine.(*eventEmitter).diagErrorEvent(...)|github.com/pulumi/pulumi/pkg/v3/engine.(*eventEmitter).diagErrorEvent(...)>
/private/tmp/pulumi-20211229-22668-k5zkrv/pkg/engine/events.go:602
<http://github.com/pulumi/pulumi/pkg/v3/engine.(*eventSink).Errorf|github.com/pulumi/pulumi/pkg/v3/engine.(*eventSink).Errorf>(0x14002572cc0, 0x14000b23320, {0x0, 0x0, 0x0})
/private/tmp/pulumi-20211229-22668-k5zkrv/pkg/engine/eventsink.go:88 +0x170
<http://github.com/pulumi/pulumi/pkg/v3/resource/deploy.(*stepExecutor).executeChain(0x14002bd7200|github.com/pulumi/pulumi/pkg/v3/resource/deploy.(*stepExecutor).executeChain(0x14002bd7200>, 0x9, {0x140017c3140, 0x1, 0x1})
/private/tmp/pulumi-20211229-22668-k5zkrv/pkg/resource/deploy/step_executor.go:231 +0x304
<http://github.com/pulumi/pulumi/pkg/v3/resource/deploy.(*stepExecutor).worker.func1(0x14002bd7200|github.com/pulumi/pulumi/pkg/v3/resource/deploy.(*stepExecutor).worker.func1(0x14002bd7200>, 0x9, {{0x140017c3140, 0x1, 0x1}, 0x1400231e6c0})
/private/tmp/pulumi-20211229-22668-k5zkrv/pkg/resource/deploy/step_executor.go:376 +0xa4
created by <http://github.com/pulumi/pulumi/pkg/v3/resource/deploy.(*stepExecutor).worker|github.com/pulumi/pulumi/pkg/v3/resource/deploy.(*stepExecutor).worker>
/private/tmp/pulumi-20211229-22668-k5zkrv/pkg/resource/deploy/step_executor.go:373 +0x1f8
the problem is that if I do pulumi up again it doesn't find any resource, how to get the state back? (using s3 as backend for state and latest pulumi version)lemon-train-62069
01/05/2022, 7:05 PMnew aws.lambda.CallbackFunction(
"lambdaThatPushesToSqs,
{
callback: async (ev, ctx) => {
// i want to do something like this
mySqsQueue.sendMessage("myEvent)
}
}
)
// to trigger this
mySqsQueue.onEvent("myEvent", () => console.log("hello"))
wonderful-finland-34377
01/05/2022, 9:32 PMfast-ability-28628
01/06/2022, 2:21 AMred-football-97286
01/06/2022, 9:11 AMpulumi up
it just sits there on either the preview (or live if skipping the preview) and does nothing. I'm using the latest cli version, 3.21.0.freezing-umbrella-80278
01/06/2022, 9:45 AMsteep-beach-52652
01/06/2022, 11:25 AMaws:ec2:Vpc (test-vpc):
error: aws:ec2/vpc:Vpc resource 'test-vpc' has a problem: Missing required argument: The argument "cidr_block" is required, but no definition was found.. Examine values at 'Vpc.CidrBlock'.
error: Preview failed: one or more inputs failed to validate
steep-beach-52652
01/06/2022, 11:25 AMmagnificent-lifeguard-15082
01/06/2022, 11:53 AMnixpkgs.pulumi-bin
) and versions of plugins? In CI (Github actions where admittedly nix is not fully configured yet) it complains the aws plugin isn't available - though it is in my package-lock.json
pulumi:providers:aws (default_4_33_0):
error: no resource plugin 'aws-v4.33.0' found in the workspace or on your $PATH, install the plugin using `pulumi plugin install resource aws v4.33.0`
Weirder, when I run locally it warns of a mismatch:
resource plugin aws is expected to have version >=4.33.0, but has 4.27.2
But when checking versions locally it seems ok..
% pulumi plugin ls
NAME KIND VERSION SIZE INSTALLED LAST USED
aws resource 4.33.0 360 MB 1 day ago 38 minutes ago
docker resource 3.1.0 39 MB 1 day ago 38 minutes ago
terraform resource 5.5.1 85 MB 1 day ago 19 hours ago
freezing-umbrella-80278
01/06/2022, 1:32 PMimport * as pulumi from "@pulumi/pulumi";
import * as digitalocean from "@pulumi/digitalocean";
const foo = new digitalocean.KubernetesCluster("foo", {
region: "nyc1",
version: "1.20.2-do.0",
nodePool: {
name: "front-end-pool",
size: "s-2vcpu-2gb",
nodeCount: 3,
},
});
Example code taken from the Pulumi DigitalOcean package documentation.
How do I retrieve the droplet node IPv4 addresses for use in say creating DnsRecord
resources?
const _default = new digitalocean.Domain("default", {name: "<http://example.com|example.com>"});
// This code doesn't work because foo.nodePool is just the inputs.
const dnsRecords = foo.nodePool.nodes(node => new digitalocean.DnsRecord("www", {
domain: _default.name,
type: "A",
value: node.ipv4Address,
}));
I assume I have to either use the async methods such as
https://www.pulumi.com/registry/packages/digitalocean/api-docs/getkubernetescluster/
function getKubernetesCluster(args: GetKubernetesClusterArgs, opts?: InvokeOptions): Promise<GetKubernetesClusterResult>
But the problem then is I can't pass the cluster ID to this method as the resource has not bee provisioned yet when this method is called.
I also thought of generating a resource using the static get
method defined on the resource but I also don't think I have the ID of the cluster to call this method yet.
https://www.pulumi.com/registry/packages/digitalocean/api-docs/kubernetescluster/#look-up
public static get(name: string, id: Input<ID>, state?: KubernetesClusterState, opts?: CustomResourceOptions): KubernetesCluster
quiet-plastic-34312
01/06/2022, 7:33 PMlate-energy-66663
01/06/2022, 9:50 PMcolossal-room-15708
01/07/2022, 3:25 AMpulumi import
and pulumi up
using the azure-native
package is super slow within a docker container.
It wasn't like this before I started migrating from the "old" azure package.
It's taking at least 5 minutes every time I execute a command now, which is making the migration very slow.colossal-room-15708
01/07/2022, 3:27 AMmagnificent-lifeguard-15082
01/07/2022, 11:57 AM--color always
works to enable colour output but heirarchy is still not there.magnificent-lifeguard-15082
01/07/2022, 11:57 AM--color always
works to enable colour output but heirarchy is still not there.billowy-army-68599
01/07/2022, 2:08 PMmagnificent-lifeguard-15082
01/07/2022, 2:08 PMbillowy-army-68599
01/07/2022, 2:10 PMmagnificent-lifeguard-15082
01/07/2022, 2:11 PMType Name Plan Info
+ pulumi:pulumi:Stack platform-preview create.. warning: resource plugin aws is expected to hav
+ ├─ awsx:x:ec2:SecurityGroup service create
Vs.
+ pulumi:pulumi:Stack platform-preview create
+ pulumi:pulumi:Stack platform-preview create API key does not start with "SG.".
+ pulumi:pulumi:Stack platform-preview create 2 db service
billowy-army-68599
01/07/2022, 2:15 PMmagnificent-lifeguard-15082
01/07/2022, 2:18 PM