boundless-tailor-35598
08/05/2021, 4:39 PM[Output] public Output<string> VpcId { get; set; }
[Output] public Output<ImmutableArray<string>> PublicSubnetIds { get; set; }
and am trying to reference these from another stack.
I can reference the stack and can get the VpcId back using:
var network = new StackReference(SeparateNetworkStackName);
var vpcId = network.GetOutput("VpcId").Apply(x => x.ToString());
However, I can't work out how to retrieve the array of public subnets. These would seems like a fairly common operation. Anyone know how to do it?boundless-tailor-35598
08/05/2021, 4:51 PMboundless-tailor-35598
08/05/2021, 4:52 PMOutput<object> publicSubnetIds = network.GetOutput("PublicSubnetIds");
Output<ImmutableArray<object>> subnets = publicSubnetIds.Apply(x => (ImmutableArray<object>) x);
var secondPublicSubnetId = subnets.Apply(x => x[1].ToString());
green-stone-37839
08/05/2021, 5:16 PMstack.GetOuput("output").Apply(x => x as string[]);
boundless-tailor-35598
08/05/2021, 7:17 PMboundless-tailor-35598
08/06/2021, 8:28 AMenough-garden-22763
08/13/2021, 10:54 PM<PackageReference Include="Pulumi" Version="3.9.1" />
with <ProjectReference Include="..\..\..\..\pulumi\sdk\dotnet\Pulumi\Pulumi.csproj" />
everywhere and add <AssemblyVersion>3.9.0.0</AssemblyVersion>
in Pulumi.csproj
. Not as seamless as replace
command I got used to in go.mod
but it helped me a lot making iterative changes. Is that how folks do it or is there an easier way?numerous-action-56322
08/17/2021, 1:14 PMboundless-car-60268
08/26/2021, 8:52 AMCustomResource
that adds some database entries. I'd like to remove those entries if the resource is being destroyed. I'm pretty sure that the answer, if there is one, is that something will need to be executed outside of the CustomResource
derived class.numerous-action-56322
08/26/2021, 4:27 PMminiature-leather-70472
09/02/2021, 1:06 PMbulky-policeman-29913
09/05/2021, 7:08 PMvar x = resource.prop.Apply(x => x)
bulky-policeman-29913
09/05/2021, 7:10 PMbulky-policeman-29913
09/05/2021, 7:40 PMrapid-soccer-18092
09/07/2021, 7:21 AMboundless-monkey-2042
09/09/2021, 9:11 PMbroad-chef-99140
09/10/2021, 4:11 PMpartial class
but wanted to reach out to see if there are any conventions?worried-city-86458
09/14/2021, 3:51 AMOutput<ImmutableArray<string>>
(of aws subnet ids fwiw), I need to create a bunch of aws resources for each subnet.
Unless I'm missing something, there doesn't seem to be a nice way to enumerate the array outside of apply, since there's no way to get the array length, unless I use OutputUtilities
.worried-lunch-10568
09/15/2021, 5:05 AMbroad-chef-99140
09/21/2021, 3:14 PMappsettings.json
and secrets.json
in C# Pulumi projects? My scenario is that I want to use a connection string for a resource on a completely different resource group. not controlled by pulumi as an application setting for my azure app service. I want to store the value of this connection string in secrets.json
like I would for any typicaly .net application. The only docs I can find is this https://www.pulumi.com/blog/7-ways-to-deal-with-application-secrets-in-azure/#2-configuration-files but this simply says "_With some configuration not shown here, the properties are filled at startup_", but it is the stuff that is not shown that I would love to see.enough-butcher-66045
09/22/2021, 3:36 AMcustomHttpsConfiguration
, but this option doesn't seem to exist in the Pulumi SDK?enough-butcher-66045
09/22/2021, 3:36 AMrapid-soccer-18092
09/22/2021, 7:54 AMInput<string>
and I need to assign it to an object
type in my values object map, but implicit typing doesn't kick in so the assigned value is Input<T>. See below... the args.DatadogApiKey
is `Input<string>`:
var datadogChart = new Chart("datadog-chart",
new ChartArgs
{
Chart = "datadog",
Version = args.DatadogChartVersion,
Namespace = "default",
Values = new Dictionary<string, object>
{
["datadog"] = new Dictionary<string, object>
{
["apiKey"] = args.DatadogApiKey,
["site"] = "<http://datadoghq.eu|datadoghq.eu>"
},
}
});
wooden-lifeguard-41446
09/23/2021, 8:13 AMswift-island-2275
09/29/2021, 8:42 AMvar aks_mypool_12128392_vmss = new AzureNative.Compute.VirtualMachineScaleSet("aks-mypool-12128392-vmss", new AzureNative.Compute.VirtualMachineScaleSetArgs
{
DoNotRunExtensionsOnOverprovisionedVMs = false,
Identity = new AzureNative.Compute.Inputs.VirtualMachineScaleSetIdentityArgs
{
Type = "UserAssigned",
The Type property is of type Input<Pulumi.AzureNative.Compute.ResourceIdentityType>? and it seems there's no implicit conversion from string. Is it a bug ?mysterious-australia-14256
10/01/2021, 10:56 AMfierce-cat-91199
10/03/2021, 11:48 PMruntime:options:binary
in my Pulumi.yaml pointing to the built DLL.
However, now when running pulumi preview
, I get Error: no resource plugin 'azure-native-v1.34.0' found in the workspace or on your $PATH
.
Without the binary option, pulumi is working, and strangely my stack is using v1.33 of the azure-native pluginenough-garden-22763
10/04/2021, 3:08 PMinputShape(T)
style records to Input<T>
with the facilities in the SDK, specifically Inputs.GetAmiIdsFilterInputArgs to Inputs.GetAmiIdsFilterArgs from the AWS provider. GetAmiIdsFilterInputArgs essentially is a record that’s deeply transformed by codegen to insert Input<_>
layer everywhere to make it easier for the users to pass outputs in. In my work I need to “unnest” all these inputs back. I found a different way forward but it’s striking me as not exactly elegant and it will make the implementation diverge from what we have in some other language SDKs. So I’d like to solicit feedback here, perhaps I’m missing something obvious.quiet-architect-74241
10/06/2021, 12:26 PMchilly-hairdresser-56259
10/12/2021, 10:33 PMApply
statement.