bumpy-easter-72049
02/23/2021, 9:27 PMfull-artist-27215
02/23/2021, 9:51 PMopts = pulumi.ResourceOptions(provider=my_provider)
calls scattered about. Are there any recommended approaches to dealing with this? (We're using the Python SDK) Thanks in advance! 🙇tall-needle-56640
02/23/2021, 10:20 PMvar packageCreated = functionApp.Name.Apply(async n =>
{
return await ZipDeployAsync(publishDirectory, n, resourceGroupName);
});
var outputs = packageCreated.Apply(p =>
{
return (IDictionary<string, object?>)new Dictionary<string, object?>
{
{ "packageCreated", p },
};
});
RegisterOutputs(outputs);
results in this error:
panic: fatal: An assertion has failed: cannot complete a resource 'urn:pulumi:dev::pr-mgmt::pulumi:pulumi:Stack::pr-mgmt-dev' whose registration isn't pending
goroutine 156 [running]:
<http://github.com/pulumi/pulumi/sdk/v2/go/common/util/contract.failfast(...)|github.com/pulumi/pulumi/sdk/v2/go/common/util/contract.failfast(...)>
D:/a/pulumi/pulumi/src/github.com/pulumi/pulumi/sdk/go/common/util/contract/failfast.go:23
<http://github.com/pulumi/pulumi/sdk/v2/go/common/util/contract.Assertf(0xc001b2c000|github.com/pulumi/pulumi/sdk/v2/go/common/util/contract.Assertf(0xc001b2c000>, 0x1f5c58e, 0x40, 0xc0017b7928, 0x1, 0x1)
D:/a/pulumi/pulumi/src/github.com/pulumi/pulumi/sdk/go/common/util/contract/assert.go:33 +0x1ad
<http://github.com/pulumi/pulumi/pkg/v2/resource/deploy.(*stepExecutor).ExecuteRegisterResourceOutputs(0xc0009efb00|github.com/pulumi/pulumi/pkg/v2/resource/deploy.(*stepExecutor).ExecuteRegisterResourceOutputs(0xc0009efb00>, 0x2b4e8705338, 0xc001bf4e20)
What am I doing wrong? Is it a bug for a user to see an "assertion failed" message?
Workaround
[Output] public Output<bool> PackageCreated { get; set; }
hundreds-stone-38001
02/23/2021, 10:27 PM$ pulumi import aws:lambda/function:Function my-imported-lambda MyLambdaOnAWS
Previewing import (dev)
View Live: <https://app.pulumi.com/.../import-test/dev/previews/>...
Type Name Plan Info
+ pulumi:pulumi:Stack import-test-dev create 1 error
= └─ aws:lambda:Function my-imported-lambda import 1 error
Diagnostics:
aws:lambda:Function (my-imported-lambda):
error: Preview failed: diffing urn:pulumi:dev::import-test::aws:lambda/function:Function::my-imported-lambda: handler and runtime must be set when PackageType is Zip
pulumi:pulumi:Stack (import-test-dev):
error: preview failed
Any suggestion on how to deal with the error "handler and runtime must be set when PackageType is Zip"clever-cartoon-41433
02/23/2021, 10:40 PMclever-cartoon-41433
02/23/2021, 10:41 PMclever-cartoon-41433
02/23/2021, 11:23 PMclever-cartoon-41433
02/23/2021, 11:24 PMelegant-oil-67420
02/24/2021, 2:32 AMelegant-oil-67420
02/24/2021, 2:32 AMelegant-oil-67420
02/24/2021, 2:32 AMwide-crayon-4093
02/24/2021, 4:19 AMclever-cartoon-41433
02/24/2021, 5:07 AMclever-cartoon-41433
02/24/2021, 5:11 AMbumpy-easter-72049
02/24/2021, 6:11 AMprotected
status?bumpy-easter-72049
02/24/2021, 6:13 AMprotected
storage account, then i create a second resource and pass parent = storageAccountReference
, then the second resource shows up as protected in the pulumi statekind-mechanic-53546
02/24/2021, 8:25 AMpulumi destroy --target {urn}
states that
All resources necessary to destroy this target will also be destroyed
This would seem to imply that child resources of a @pulumi/kubernetes.yaml.ConfigGroup would be destroyed as well but this is not the case
--target-dependents
also doesn't cause the child resources to be destroyed
Am I missing something?cold-motherboard-287
02/24/2021, 8:49 AM.filter
resources in Typescript that you've just created based on some property?
I'm struggling do it with created resources since they all use the Output<T>
in the propertieselegant-island-39916
02/24/2021, 11:18 AM--set-file
with helm charts using pulumi-kubernetes
? I'm using Python. Thanks!millions-market-17062
02/24/2021, 1:16 PMgentle-monitor-55086
02/24/2021, 2:38 PMbreezy-apartment-46543
02/24/2021, 3:12 PMbland-dawn-25389
02/24/2021, 4:23 PMgcp:cloudrun/domainMapping:DomainMapping
):
Diagnostics:
gcp:cloudrun:DomainMapping (domain-mapping):
error: gcp:cloudrun/domainMapping:DomainMapping resource 'domain-mapping' has a problem: Computed attribute cannot be set
error: gcp:cloudrun/domainMapping:DomainMapping resource 'domain-mapping' has a problem: Computed attribute cannot be set
error: gcp:cloudrun/domainMapping:DomainMapping resource 'domain-mapping' has a problem: Computed attribute cannot be set
error: gcp:cloudrun/domainMapping:DomainMapping resource 'domain-mapping' has a problem: Computed attribute cannot be set
error: Preview failed: one or more inputs failed to validate
I tried the three formats documented in Pulumi's docstring:
1. pulumi import gcp:cloudrun/domainMapping:DomainMapping default locations/{{location}}/namespaces/{{project}}/domainmappings/{{name}}
2. pulumi import gcp:cloudrun/domainMapping:DomainMapping default {{location}}/{{project}}/{{name}}
3. pulumi import gcp:cloudrun/domainMapping:DomainMapping default {{location}}/{{name}}
With the third format, without a project part, I receive the error project: required field is not set
.
The two first formats seem happy with the `id`string passed, i.e. not complaining about a missing field, but return the 4 errors mentioned above. Yet I could import many other GCP resources successfully; this is the only one that gives me trouble.
I tried with Pulumi versions 2.21.1 and 2.21.2.
These errors are similar to other reported errors (https://pulumi-community.slack.com/archives/C84L4E3N1/p1608570994454500 / https://github.com/pulumi/pulumi/issues/5828, https://github.com/pulumi/pulumi-terraform-bridge/issues/74), where the workaround solution was to remove an argument, but this was in the context Pulumi code, not a resource import.
Any ideas? Thanks in advance!early-motorcycle-69706
02/24/2021, 7:00 PMgithub.Repository
?early-motorcycle-69706
02/24/2021, 7:01 PMThis resource allows you to create and manage repositories within your GitHub organization or personal account.
but there is no attribut to work with ogsearly-motorcycle-69706
02/24/2021, 7:01 PMearly-motorcycle-69706
02/24/2021, 7:01 PMearly-motorcycle-69706
02/24/2021, 7:02 PMearly-motorcycle-69706
02/24/2021, 7:04 PMadamant-translator-31969
02/24/2021, 7:54 PMdeleting urn:pulumi:develop::mycomponent::awsx:x:ec2:Vpc$aws:ec2/vpc:Vpc::cloud-pulumi: 1 error occurred:
* Error deleting VPC: DependencyViolation: The vpc 'vpc-xxxxxx' has dependencies and cannot be deleted.
status code: 400, request id: 6b680395-95b2-463b-8d58-0023e5