bitter-river-54082
02/22/2021, 12:24 PMdependsOn: [
ec2.servicesInstance,
The instance's dependencies :
dependsOn: [
vpc.vpc,
Why the script is not awaiting execution until all vpc resources are up? How can I fix it?important-pizza-29356
02/22/2021, 2:44 PMpulumi up
)? https://www.pulumi.com/docs/reference/pkg/gcp/organizations/project/millions-furniture-75402
02/22/2021, 2:55 PMPulumi.yaml
vs interactive pulumi stack tag
commands?big-apartment-95438
02/22/2021, 3:05 PM// Create a Kubernetes Namespace
const argoNamespace = new k8s.core.v1.Namespace("argo", {}, {provider: clusterProvider});
Actual name: argo-fmzcuekxable-dinner-12335
02/22/2021, 3:50 PMvar functionResource = new Pulumi.AzureNextGen.Web.V20200601.WebAppFunction("functionResource", new Pulumi.AzureNextGen.Web.V20200601.WebAppFunctionArgs
{
Config = {
"bindings"{
{ "cardinality", "many" },
{ "connection", "RootManageSharedAccessKey" },
{ "consumerGroup", "$Default" },
{ "dataType", "" },
{ "direction", "in" },
{ "eventHubName", datadogEventHub.Name },
{ "name", "eventHubMessages" },
{ "type", "eventHubTrigger" }
},
Files =
{
{
"index.js", "<https://github.com/DataDog/datadog-serverless-functions/blob/master/azure/activity_logs_monitoring/index.js>"
},
},
FunctionName = $"{datadogFunctionApp.Name}/EventHubTrigger-DataDog",
Name = $"{datadogFunctionApp.Name}/EventHubTrigger-DataDog",
ResourceGroupName = RGName
});
damp-tiger-87899
02/22/2021, 4:20 PMable-dinner-12335
02/22/2021, 8:18 PMvar blob = new Blob($"zip-{reg}", new BlobArgs
{
StorageAccountName = storageAccount.Name,
StorageContainerName = container.Name,
Type = "Block",
Source = new FileArchive("./functionapp"),
Name = "function_sourcecode"
});
The first run creates the block blob as expected. Fails on subsequent runs with:
error: Running program 'C:\Repos\Pulumi\deployment\bin\Debug\netcoreapp3.1\deployment.dll' failed with an unhandled exception:
System.InvalidOperationException: Expected Pulumi.AssetOrArchive but got System.String deserializing Pulumi.Azure.Storage.Blob.source
at Pulumi.Serialization.Converter.ConvertObject(String context, Object val, Type targetType)
at Pulumi.Serialization.Converter.ConvertValue(String context, Value value, Type targetType, ImmutableHashSet`1 resources)
at Pulumi.Deployment.CompleteResourceAsync(Resource resource, Boolean remote, Func`2 newDependency, ResourceArgs args, ResourceOptions options, ImmutableDictionary`2 completionSources)
at Pulumi.Deployment.Runner.<>c__DisplayClass9_0.<<WhileRunningAsync>g__HandleCompletion|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at Pulumi.Deployment.Runner.WhileRunningAsync()mammoth-honey-6147
02/22/2021, 8:45 PMsparse-dog-88757
02/22/2021, 8:46 PMstocky-student-96739
02/22/2021, 9:16 PMlemon-machine-35564
02/23/2021, 12:24 AMpulumi up
go looking for ts files when you run it?big-apartment-95438
02/23/2021, 8:10 AMcolossal-potato-56488
02/23/2021, 1:36 PMredis
and a postgres
service on a custom kubernetes cluster (I’ve only found it for AWS or Azure). Is there any? Thanks!chilly-hospital-92934
02/23/2021, 1:42 PMacc1 = alicloud.Provider("acc1", region="cn-beijing")
__opts__=pulumi.ResourceOptions(provider=acc1) to object of resource.
How to do similar solution to our own resource providers?big-apartment-95438
02/23/2021, 3:47 PMrefined-journalist-70469
02/23/2021, 4:22 PMlemon-machine-35564
02/23/2021, 5:27 PMerror: resource 'urn:pulumi:development-jeffrichie::service::pulumi:pulumi:StackReference::vpc/development' registered twice (read and read)
What is the recommended pattern when working in a relatively large project where you need to reference things like VPC CIDR’s, etc all over the place?proud-pizza-80589
02/23/2021, 5:45 PMbetter-secretary-59658
02/23/2021, 6:49 PMwide-parrot-89490
02/23/2021, 8:29 PMpreview
and up
individually if needed (it's a large stack, sometimes we know exactly what changes we want and expect). I thought I could do that using ComponentResources in combination with pulumi up|preview --target [--target-dependents]
, but so far no luck: when I pulumi preview --target arn:of:my:ComponentResource
pulumi only looks at the ComponentResource
and ignores its children.
Am I trying to use the wrong tool here? Is there a way to do a partial `preview`/`up` in a stack by selecting a group or component, without having to point to every particular resource?colossal-australia-65039
02/23/2021, 9:02 PMbumpy-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 AM