boundless-tailor-35598
06/19/2020, 9:56 AMboundless-tailor-35598
06/19/2020, 10:48 AMbroad-dog-22463
06/19/2020, 10:49 AMbroad-dog-22463
06/19/2020, 10:49 AMbroad-dog-22463
06/19/2020, 10:50 AMboundless-tailor-35598
06/19/2020, 10:50 AMlimited-carpenter-34991
06/22/2020, 9:10 AMvar backend = new Backend(namePlaceHolder, new BackendArgs
{
ApiManagementName = apiManagement.Name,
ResourceGroupName = resourceGroup,
Protocol = "http",
Url = Output.Format($"https://{app.DefaultHostname}/api")
});
Output<string> backendId = backend.Name.Apply(id => id);
var backendIdParameter = Output.Format(@$"""{backendId}""");
var apiPolicy = new ApiPolicy($"{namePlaceHolderWithoutSpecialCharacter}", new ApiPolicyArgs
{
ApiManagementName = apiManagement.Name,
ResourceGroupName = resourceGroup,
ApiName = api.Name,
XmlContent = $@"
<policies>
<inbound>
<base/>
<set-backend-service id="4711" backend-id={backendIdParameter} />
</inbound>
<backend>
<base/>
</backend>
<outbound>
<base/>
</outbound>
<on-error>
<base/>
</on-error>
</policies>",});
Every time the xmlContent is filled inside the backend-id with "Pulum.Output<string>" and not the string value.
What i have to do to get the value inside this xmlContent?limited-carpenter-34991
06/22/2020, 12:00 PMSystem.InvalidOperationException: Expected Pulumi.AssetOrArchive but got System.String deserializing Pulumi.Azure.Storage.Blob.source
I coud not find anxy issue on github.
Sometimes the error comes and sometimes it works with no problems.worried-city-86458
06/24/2020, 10:27 AMconst cluster = new eks.Cluster(
name,
{
deployDashboard: false,
publicSubnetIds: publicSubnetIds,
privateSubnetIds: privateSubnetIds,
instanceRole: instanceRole,
roleMappings: iam.getRoleMappings(),
userMappings: iam.getUserMappings(),
skipDefaultNodeGroup: true,
tags: {
Environment: environment,
EnvironmentType: environmentType,
CostCenter: costCenter
},
version: k8sVersion,
vpcId: vpc.outputs.Vpc
},
{
customTimeouts: {
create: "30m",
update: "30m"
}
}
);
... but I can't find the equivalent of a lot of the above args on ClusterArgs
e.g. how am I supposed to pass role and user mappings? 😕mysterious-australia-14256
06/24/2020, 11:23 AMflat-bear-83490
06/24/2020, 4:02 PMtranformations
at https://www.pulumi.com/docs/intro/concepts/programming-model/#transformations and I'm finding that ResourceOptions.Merge doesn't seem to be available - I wondered if anyone had any pointers on this? Thanks!
var vpc = new MyVpcComponent("vpc", new ComponentResourceOptions
{
Transformations =
{
args =>
{
if (args.Resource.GetResourceType() == "aws:ec2/vpc:Vpc" ||
args.Resource.GetResourceType() === "aws:ec2/subnet:Subnet")
{
return new ResourceTransformationResult
{
Args: args.Args,
Options: ResourceOptions.Merge( // Not available
args.Options,
new CustomResourceOptions { IgnoreChanges = { "tags" } }),
};
}
return null;
}
},
});
cold-iron-6673
06/26/2020, 1:16 PMflat-bear-83490
07/01/2020, 9:50 AMazure:network:NetworkSecurityGroup (productionuk-NSG):
error: inputs to import do not match the existing resource
but can't for the life of me work out the difference. Can anyone recommend some approaches for getting more detailed information about the specific difference?flat-mouse-20634
07/01/2020, 12:18 PMvar project = new Project("test", new ProjectArgs
{
ProjectName = "my-project-is-super",
});
I am getting the below error and not getting any further details
error: Page not found.
Am I missing something?numerous-artist-1705
07/02/2020, 4:40 PMworried-city-86458
07/02/2020, 9:09 PMworried-city-86458
07/02/2020, 9:15 PMpulumi up
as a background task
• ... this seems to require --debug
output from Pulumi to try get some relevant output to delay until the child dotnet process has started
• It would be nice if Pulumi supported a command-line option like --debug-break
that would output the dotnet pid and wait for the debugger
• VS Code prompts multiple times for the parameters since it currently doesn't support passing parameters to the preLaunchTask
• I can now simply F6
to build (sanity check) and F5
to jump into a debugging session (prompted for project and stack)worried-city-86458
07/02/2020, 9:22 PMflat-bear-83490
07/06/2020, 4:33 PMflat-bear-83490
07/06/2020, 4:33 PMnumerous-processor-60508
07/06/2020, 7:24 PMnumerous-processor-60508
07/06/2020, 7:24 PMnumerous-artist-1705
07/09/2020, 5:04 PMchilly-hairdresser-56259
07/09/2020, 8:13 PMbored-activity-40468
07/10/2020, 2:15 PMDeployment.RunAsync<T>
what's the preferred method of awaiting in `T`'s ctor since a ctor can't be async. Doing people do Task.Run
or is there another way? An example would be wanting to call await someStack.GetValueAsync()
bored-activity-40468
07/10/2020, 7:07 PMpulumi preview
?chilly-hairdresser-56259
07/14/2020, 3:05 PMchilly-hairdresser-56259
07/14/2020, 9:11 PMbored-activity-40468
07/15/2020, 12:55 AM.Apply(func)
which feels sort of like .ContinueWith(func)
which is what async await tries to avoid, I think.bumpy-motorcycle-53357
07/17/2020, 2:14 PM