bored-spoon-83710
10/03/2022, 5:20 PMswift-machine-98066
10/03/2022, 7:05 PMproud-machine-85126
10/04/2022, 5:48 PMInvokeOption
that lets me set a timeout when calling a data getter? Specifically I'm calling pulumi-openstack's compute.GetImageIds()
and it doesn't timeout.brash-gigabyte-81569
10/04/2022, 8:31 PMrefined-pilot-45584
10/05/2022, 9:17 AMpulumi init
or say pulumi up
from within a Go program is there a way to do this? Without running say cmd.exec().output()
.
Thanks.elegant-author-139
10/05/2022, 4:55 PMerror: It looks like the Pulumi SDK has not been installed. Have you run npm install or yarn install?
I’ve tried doing a npm install @pulumi/pulumi -g
which didn’t seem to help.damp-continent-75299
10/05/2022, 7:50 PMec2Instance, err := ec2.NewInstance(ctx, ec2InstanceIdentifier, &ec2.InstanceArgs{
Ami: pulumi.String(AppInstanceId),
InstanceType: pulumi.String("t3.micro"),
})
policy, err := json.Marshal(map[string]interface{}{
"Version": "2012-10-17",
"Statement": []map[string]interface{}{
{
"Action": []string{
"ec2:Describe*",
},
"Effect": "Allow",
"Resource": "*",
},
},
})
if err != nil {
return err
}
_, err = iam.NewUserPolicy(ctx, envIdentifier, &iam.UserPolicyArgs{
User: awsIamUser.Name,
Policy: pulumi.Sprintf(string(policy)),
})
if err != nil {
return err
}
brash-gigabyte-81569
10/07/2022, 4:19 PMhundreds-tailor-52000
10/17/2022, 8:55 AMbulky-agent-73210
10/17/2022, 3:42 PMexec format error
for this custom provider. Any ideas why that might be happening?crooked-student-89656
10/17/2022, 9:09 PMmost-mouse-38002
10/18/2022, 11:03 AMgo 1.19
in go.mod and doing go get -u
?jolly-church-88521
10/18/2022, 3:48 PMfoo.Arn
(pulumi.StringOutput) to string
? I’m kind of lost here and I cannot find any working example 😕 I’m trying to make it work with foo.Arn.ApplyT(func(arn string) string { … }
but somehow it’s not working for me.crooked-student-89656
10/18/2022, 4:54 PMswift-machine-98066
10/18/2022, 6:04 PMswift-machine-98066
10/18/2022, 6:04 PMhundreds-tailor-52000
10/18/2022, 7:52 PMgifted-fall-44000
10/19/2022, 5:32 PMswift-machine-98066
10/21/2022, 7:04 PMmost-portugal-2672
10/22/2022, 1:58 PMvar systemSubscription = new AzureNative.EventGrid.SystemTopicEventSubscription("subscription-level-events", new AzureNative.EventGrid.SystemTopicEventSubscriptionArgs
{
Destination = new AzureNative.EventGrid.Inputs.ServiceBusQueueEventSubscriptionDestinationArgs
{
EndpointType = "ServiceBusQueue",
ResourceId = queue.Id,
},
SystemTopicName = systemTopic.Name,
ResourceGroupName = resourceGroup.Name
});
but in Go, there doesn't seem to be a struct for ServiceBusQueueEventSubscriptionDestinationArgs
and I'm unable to specify the "ServiceBusQueue" endpoint type and queue ID.
Go Version:
systemSubscription, err := eventgrid.NewSystemTopicEventSubscription(ctx, "subscription-level-events", &eventgrid.SystemTopicEventSubscriptionArgs{
Destination: &eventgrid.ServiceBusQueueEventSubscriptionDestinationArgs{ // <-- missing type ?
},
SystemTopicName: systemTopic.Name,
ResourceGroupName: resourceGroup.Name,
},
)
Any pointers in the right direction would be appreciated. Thank you !gentle-knife-93855
11/02/2022, 3:42 AMkong_vpc, err := ec2.NewVpc(ctx, "kong-network", &ec2.VpcArgs{
CidrBlock: pulumi.String("10.0.0.0/16"),
})
if err != nil {
return err
}
I am trying to fetch the VPC ID to pass it as an input for the subnet using
VpcId := kong_vpc.Id.ApplyT(func(vpc_id string) string {
return vpc_id
}).(pulumi.StringOutput)
But Pulumi throws the following error -
./main.go:17:21: kong_vpc.Id undefined (type *ec2.Vpc has no field or method Id)
The <https:/www.pulumi.com/registry/packages/aws/api-docs/ec2/vpc/#id_go|docs> mentions that Id
is an Output of VPCprehistoric-sandwich-7272
11/03/2022, 1:03 PMcrd2pulumi
-
I have generated from the following crd - https://github.com/argoproj/argo-helm/blob/main/charts/argo-rollouts/templates/crds/rollout-crd.yaml a pulumi package using the above command, and I got errors in the pulumiTypes.go file!
When I am running pulumi up, I get the following error message:
argoRollout/argoproj/v1alpha1/pulumiTypes.go:1842:6: RolloutSpecStrategyBluegreenPostpromotionanalysisArgs redeclared in this block
argoRollout/argoproj/v1alpha1/pulumiTypes.go:1674:6: other declaration of RolloutSpecStrategyBluegreenPostpromotionanalysisArgs
argoRollout/argoproj/v1alpha1/pulumiTypes.go:1917:98: v.Name undefined (type RolloutSpecStrategyBluegreenPostpromotionanalysisArgs has no field or method Name)
.
.
.
argoRollout/argoproj/v1alpha1/pulumiTypes.go:2798:98: too many errors
I am taking from this that the crd2pulumi
couldn’t create the package from the crd correctly.
Is there any way around this?crooked-student-89656
11/03/2022, 7:06 PMgray-fountain-32432
11/04/2022, 5:20 PMfunc GetRouteTable(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *RouteTableState, opts ...pulumi.ResourceOption) (*RouteTable, error) {
var resource RouteTable
err := ctx.ReadResource("aws:ec2/routeTable:RouteTable", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
abundant-agency-55117
11/04/2022, 7:05 PMswift-machine-98066
11/04/2022, 10:00 PMgray-fountain-32432
11/10/2022, 6:16 AMbrokerNodes, err := msk.GetBrokerNodes(ctx, &msk.GetBrokerNodesArgs{
ClusterArn: cluster.Arn.ElementType().String(),
}, nil)
jolly-church-88521
11/10/2022, 4:17 PM}, pulumi.DependsOn([]pulumi.Resource{e.Cluster}))
but somehow it doesn’t work. Any hit? 😞crooked-student-89656
11/11/2022, 7:49 PMaloof-tiger-61862
11/13/2022, 1:37 PMNetworkSecurityGroupArgs
is SecurityRules
which accepts SecurityRuleTypeArrayInput
and Im not sure how to use it correctly (or at all).
lets say I have []network.SecurityRule{}
how do I make it of type SecurityRuleTypeArrayInput
aloof-tiger-61862
11/13/2022, 1:37 PMNetworkSecurityGroupArgs
is SecurityRules
which accepts SecurityRuleTypeArrayInput
and Im not sure how to use it correctly (or at all).
lets say I have []network.SecurityRule{}
how do I make it of type SecurityRuleTypeArrayInput
aloof-easter-15696
11/13/2022, 5:56 PMbillowy-army-68599
11/13/2022, 7:35 PMSecurityGroupRuleArray{
SecurityGroupRule{}
}