ripe-shampoo-80285
04/15/2021, 2:36 AMwide-crayon-4093
04/15/2021, 3:29 AMyaml.NewConfigFile
?wide-crayon-4093
04/15/2021, 3:29 AMripe-shampoo-80285
04/16/2021, 12:14 AMripe-shampoo-80285
04/16/2021, 12:14 AMripe-shampoo-80285
04/16/2021, 12:15 AMpolite-motherboard-78438
04/18/2021, 10:01 PMnetwork, err := hcloud.NewNetwork(ctx, "internal", &hcloud.NetworkArgs{
IpRange: pulumi.String("10.0.1.0/24"),
})
if err != nil {
return err
}
_, err = hcloud.NewNetworkSubnet(ctx, "default", &hcloud.NetworkSubnetArgs{
NetworkId: network.ID(),
Type: pulumi.String("cloud"),
NetworkZone: pulumi.String("eu-central"),
IpRange: pulumi.String("10.0.1.0/24"),
})
if err != nil {
return err
}
The NetworkID is of type pulumi.IntInput
while the network.ID() returns a pulumi.IDOutput
I need to pass the network.ID() as the NetworkId
on the subnet. With this I get C`annot use 'network.ID()' (type IDOutput) as type pulumi.IntInput`
I tried to do something like this, but I am getting into a mental loop and no ideia how to convert the value:
NetworkId: network.ID().ApplyInt(func(i pulumi.IDOutput) (pulumi.IntInput, error) {
return i // WHAT TO DO HERE
}),
How can I get this working? If there is one thing I have trouble is this Apply stuff.
Btw, this example is from the Hetzner provider documentation: https://www.pulumi.com/docs/reference/pkg/hcloud/servernetwork/ which means the documentation is wrong. I can make a PR, if someone kindly help me with this. Thank you!stocky-morning-21061
04/20/2021, 7:02 AMfunc getBaseReferences(ctx *pulumi.Context) (pulumi.Output, error) {
fmt.Println("base stack output")
baseStack, err := pulumi.NewStackReference(ctx, "base", nil)
if err != nil {
return nil, err
}
vpcID := baseStack.GetStringOutput(pulumi.String("vpc"))
if err != nil {
return nil, err
}
publicSubnets := baseStack.GetOutput(pulumi.String("publicSubnets"))
if err != nil {
return nil, err
}
privateSubnets := baseStack.GetOutput(pulumi.String("privateSubnets"))
if err != nil {
return nil, err
}
result := pulumi.All(vpcID, publicSubnets, privateSubnets).ApplyT(func(args []interface{}) (*Vpc, error) {
vpc := args[0].(string)
publicSubnets := args[1].([]interface{})
privateSubnets := args[2].([]interface{})
priv := convert(privateSubnets)
pub := convert(publicSubnets)
return &Vpc{VpcID: vpc, Subnets: Subnets{Public: pub, Private: priv}}, nil
})
return result, nil
}
The pulumi.All part does not seem to get invoked.
What am I missing here?kind-airport-89906
04/21/2021, 2:41 PMkind-airport-89906
04/21/2021, 8:29 PMcluster.Core.Cluster.Name
and with cluster.EksCluster.Name
and i keep getting errors like the following:
./main.go:94:38: cluster.EksCluster.Name undefined (type "<http://github.com/pulumi/pulumi-aws/sdk/v4/go/aws/eks|github.com/pulumi/pulumi-aws/sdk/v4/go/aws/eks>".ClusterOutput has no field or method Name)
busy-soccer-65968
04/21/2021, 10:35 PMfailed to destroy stack: code: 255
, stdout:
, stderr: error: invalid character 'r' after top-level value
the character is different, but the error is always the samewide-crayon-4093
04/22/2021, 9:26 AMpulumi.StringPtrInput
etc values? https://www.pulumi.com/docs/intro/concepts/config/#structured-configuration
i.e I want to bypass manual remapping of structured configs to pulumi provider ResourceArgswide-crayon-4093
04/22/2021, 9:28 AMtype ConfigResource struct {
section ConfigResourceSection
}
type ConfigResourceSection struct {
field string
}
have
type ConfigResource struct {
section ConfigResourceSection // or SomeSpecArgs
}
type ConfigResourceSection struct {
field pulumi.StringInput
}
ripe-shampoo-80285
05/03/2021, 8:20 PMacoustic-iron-92969
05/07/2021, 6:02 PMpulumi.RunErr
directly in my code instead of using the pulumi CLI, but I'm running into missing resource monitor RPC address
. does anyone know where these default values are configured in the CLI?ripe-shampoo-80285
05/14/2021, 1:08 AMripe-shampoo-80285
05/14/2021, 1:09 AMripe-shampoo-80285
05/14/2021, 1:09 AMripe-shampoo-80285
05/14/2021, 1:09 AMripe-shampoo-80285
05/15/2021, 5:58 PMripe-shampoo-80285
05/15/2021, 5:58 PMripe-shampoo-80285
05/17/2021, 2:45 AMripe-shampoo-80285
05/17/2021, 2:46 AMripe-shampoo-80285
05/17/2021, 2:48 AMripe-shampoo-80285
05/17/2021, 1:10 PMripe-shampoo-80285
05/17/2021, 5:24 PMripe-shampoo-80285
05/18/2021, 2:58 AMpulumi plugin install resource eks v0.30.0
This is kind of strange, I never need to do this before. Any idea?billowy-army-68599
05/18/2021, 3:00 AMpulumi plugin install eks v0.30.0
should fix thatbillowy-army-68599
05/18/2021, 3:00 AMripe-shampoo-80285
05/18/2021, 3:04 AMripe-shampoo-80285
05/18/2021, 3:04 AM