elegant-dress-88912
10/06/2020, 3:10 PMelegant-dress-88912
10/06/2020, 3:10 PMelegant-dress-88912
10/06/2020, 3:12 PMpulumi.Map{}
worksrich-exabyte-94739
10/07/2020, 5:56 PMinfra
stack in our `api`stack and using the example code is returning an error:
slug := fmt.Sprintf("foo/%v/%v", ctx.Project(), "infra")
stackRef, err := pulumi.NewStackReference(ctx, slug, nil)
if err != nil {
return err
}
Returns the following error:
pulumi:pulumi:StackReference (foo/bar/api):
error: resource 'urn:pulumi:api::bar::pulumi:pulumi:StackReference::foo/bar/api' registered twice (read and read)
Am I missing something here?stocky-spoon-28903
10/07/2020, 6:31 PMrich-exabyte-94739
10/07/2020, 6:36 PMpulumi.NewStackReference
stack refrich-exabyte-94739
10/07/2020, 7:02 PMstocky-spoon-28903
10/07/2020, 8:40 PMtall-needle-56640
10/08/2020, 9:01 PMpulumi/pulum
image, ran make ensure
and then make
. Then I tried to run go run main.go
but I get an error: "./main.go:48:12: undefined: NewPulumiCmd"faint-eye-21524
10/09/2020, 2:03 AMstrong-musician-98782
10/15/2020, 12:38 PM(venv) morz@morz-5480 ~/git/pulumi-dyn master ± make
===========
dyn Package
===========
BUILD:
[ -x /home/adirc/.pulumi/bin/pulumi ] || curl -fsSL <https://get.pulumi.com> | sh
cd provider && go install -ldflags "-X <http://github.com/pulumi/pulumi-dyn/provider/pkg/version.Version=v0.0.1-alpha.1593782371+g931a267.dirty|github.com/pulumi/pulumi-dyn/provider/pkg/version.Version=v0.0.1-alpha.1593782371+g931a267.dirty>" <http://github.com/pulumi/pulumi-dyn/provider/cmd/pulumi-tfgen-dyn|github.com/pulumi/pulumi-dyn/provider/cmd/pulumi-tfgen-dyn>
# <http://github.com/pulumi/pulumi-dyn/provider|github.com/pulumi/pulumi-dyn/provider>
./resources.go:90:21: impossible type assertion:
"<http://github.com/hashicorp/terraform-plugin-sdk/helper/schema|github.com/hashicorp/terraform-plugin-sdk/helper/schema>".Provider does not implement "<http://github.com/hashicorp/terraform/terraform|github.com/hashicorp/terraform/terraform>".ResourceProvider (wrong type for Apply method)
have Apply(*"<http://github.com/hashicorp/terraform-plugin-sdk/terraform|github.com/hashicorp/terraform-plugin-sdk/terraform>".InstanceInfo, *"<http://github.com/hashicorp/terraform-plugin-sdk/terraform|github.com/hashicorp/terraform-plugin-sdk/terraform>".InstanceState, *"<http://github.com/hashicorp/terraform-plugin-sdk/terraform|github.com/hashicorp/terraform-plugin-sdk/terraform>".InstanceDiff) (*"<http://github.com/hashicorp/terraform-plugin-sdk/terraform|github.com/hashicorp/terraform-plugin-sdk/terraform>".InstanceState, error)
want Apply(*"<http://github.com/hashicorp/terraform/terraform|github.com/hashicorp/terraform/terraform>".InstanceInfo, *"<http://github.com/hashicorp/terraform/terraform|github.com/hashicorp/terraform/terraform>".InstanceState, *"<http://github.com/hashicorp/terraform/terraform|github.com/hashicorp/terraform/terraform>".InstanceDiff) (*"<http://github.com/hashicorp/terraform/terraform|github.com/hashicorp/terraform/terraform>".InstanceState, error)
Makefile:75: recipe for target 'tfgen' failed
make: *** [tfgen] Error 2
seems to be unrelated to my changes, is it possible that terraform changed their schema or something else that could cause it to break? Thanks 🙂big-account-56668
10/20/2020, 5:57 PMgolangci-lint
1.31.0
ERRO Running error: gofmt: analysis skipped: errors in package: [/home/circleci/project/cmd/pulumi/main.go:11:2: could not import <http://github.com/pulumi/pulumi-gcp/sdk/v3/go/gcp/compute|github.com/pulumi/pulumi-gcp/sdk/v3/go/gcp/compute> (-: could not load export data: no export data for "<http://github.com/pulumi/pulumi-gcp/sdk/v3/go/gcp/compute|github.com/pulumi/pulumi-gcp/sdk/v3/go/gcp/compute>")]
It is not only gofmt
but happens for gocritic
and errcheck
as well. I don't know what the error means but that package specifically has caused a lot of pain as it is linking ~3000 types taking up considerable resources.
Does anyone know what the error means and possibly how to address it other than disabling the linters? I'm at a loss.icy-london-58403
10/20/2020, 11:23 PM// AZ args for the vpc
type AZ struct {
pulumi.ResourceState
}
// NewAZ makes a new AZ for the VPC to test NAT
func NewAZ(ctx *pulumi.Context, name string, args *AZArgs, opts ...pulumi.ResourceOption) (*AZ, error) {
...
...
...
ctx.RegisterResourceOutputs(AZ, pulumi.Map{
"PublicSubnetID": publicSubnet.ID(),
"PrivateSubnetID": privateSubnet.ID(),
})
return AZ, nil
}
I need the IDs of the subnets being created.gifted-city-99717
10/21/2020, 8:20 PMpanic: applier must have 1 input parameter assignable from interface {} [recovered]
panic: applier must have 1 input parameter assignable from interface {}
big-account-56668
10/28/2020, 10:35 AM<http://github.com/pulumi/pulumi-gcp/sdk/v3/go/gcp/compute|github.com/pulumi/pulumi-gcp/sdk/v3/go/gcp/compute>
to be untenable.
time GOGC=5 go build <http://github.com/pulumi/pulumi-gcp/sdk/v3/go/gcp/compute|github.com/pulumi/pulumi-gcp/sdk/v3/go/gcp/compute>
go build <http://github.com/pulumi/pulumi-gcp/sdk/v3/go/gcp/compute|github.com/pulumi/pulumi-gcp/sdk/v3/go/gcp/compute>: /usr/lib/go/pkg/tool/linux_amd64/compile: signal: killed
GOGC=5 go build <http://github.com/pulumi/pulumi-gcp/sdk/v3/go/gcp/compute|github.com/pulumi/pulumi-gcp/sdk/v3/go/gcp/compute> 1692.27s user 245.14s system 338% cpu 13:33.62 total
still getting killed. From dmesg
Out of memory: Killed process 543715 (compile) total-vm:7909668kB, anon-rss:7163404kB, file-rss:0kB, shmem-rss:304kB, UID:1000 pgtables:14172kB oom_score_adj:0
Are there any suggestions on how to address this other than tweaking GOGC
as previously suggested in https://pulumi-community.slack.com/archives/CCWP5TJ5U/p1601400720014500?thread_ts=1601396803.013000&cid=CCWP5TJ5U?salmon-account-74572
10/28/2020, 3:58 PMOutput
types is to track resource state, dependencies, etc. Can someone enlighten me as to why we might need to preserve such additional information across stacks? I'm thinking of a StackReference
producing Outputs
.salmon-account-74572
10/28/2020, 4:54 PMString
instead of a StringOutput
)? And is there a way (seems like I tried it and it didn't work) to use the Automation API methods/functions inside a stack's code?salmon-account-74572
10/28/2020, 5:44 PMOutput
when using a StackReference
? I know I'm a Go newbie, but...wow. I have a value that represents the number of AZs in an AWS region. I just need to get to that value, and be able to use it as a number. No matter what I try, I just run right into a brick wall of Output
limitations.future-ocean-92178
10/30/2020, 8:42 AMeni1, err := vpc.NewNetworkInterface(ctx, name, &vpc.NetworkInterfaceArgs{
VswitchId: vswitchId.ID(),
SecurityGroups: pulumi.StringArray{
sgid,
},
pulumi.DependsOn([]pulumi.Resource{
vswitchId,
}),
future-ocean-92178
10/30/2020, 8:44 AMquiet-restaurant-29133
11/01/2020, 7:55 AMpulumi preview
, now I have to run go test
command manually inside GitHub actionsclever-byte-21551
11/04/2020, 6:55 PMrich-exabyte-94739
11/13/2020, 4:29 AMrds.Instance
and pulumi up
, everything works as expected. However - when we run pulumi up
again to make other changes Pulumi tries to replace the database entirely, using the snapshot ID previously provided.
We've tried modifying the rds.Instance
, removing the snapshot ID in subsequent pulumi up
commands but the same issue still persists. What are we doing wrong? How do we get Pulumi back to a good state where it's not trying to constantly try and replace our DB with the snapshot?crooked-lunch-83455
11/16/2020, 11:53 PMStringMapOutput
crooked-lunch-83455
11/16/2020, 11:53 PMimportant-appointment-55126
11/16/2020, 11:59 PMStringMapOutput
is really a promise that a string map will resolve sometime later; it's not concrete to range over at that point - You can use MapIndex
on it to get a promise of an output that will come as a lookup of a key.. but if you really need to range over it, you'll have to use Apply
which will cause your function to run once it's resolved - see https://www.pulumi.com/docs/intro/concepts/programming-model/#applyquiet-restaurant-29133
11/26/2020, 5:04 AMpulumi.StringOutout
to a string
?, the applyString
is just a transformer. I have templates that need outputs from a pulumi resource
output that takes in a string
onlystrong-dusk-45926
12/01/2020, 7:53 AMgifted-city-99717
12/03/2020, 2:59 AM$ pulumi version
v2.15.0
$ go test -v -cover ./...
# gocloud.dev/blob/azureblob
../../../../../../pkg/mod/gocloud.dev@v0.20.0/blob/azureblob/azureblob.go:384:42: not enough arguments in call to dstBlobURL.StartCopyFromURL
have (context.Context, url.URL, azblob.Metadata, azblob.ModifiedAccessConditions, azblob.BlobAccessConditions)
want (context.Context, url.URL, azblob.Metadata, azblob.ModifiedAccessConditions, azblob.BlobAccessConditions, azblob.AccessTierType, azblob.BlobTagsMap)
../../../../../../pkg/mod/gocloud.dev@v0.20.0/blob/azureblob/azureblob.go:646:18: undefined: azblob.BlobItem
FAIL <http://maestro.corelight.io/research-infra/crunchmon/cmd/haven|maestro.corelight.io/research-infra/crunchmon/cmd/haven> [build failed]
this came after removing the following from go.mod
replace <http://github.com/Azure/go-autorest|github.com/Azure/go-autorest> => <http://github.com/Azure/go-autorest|github.com/Azure/go-autorest> v12.4.3+incompatible
icy-helmet-84765
12/07/2020, 4:17 PMdynamic providers
but that isn't supported by golang with the docs on the site. Any pointers on how to add step 3 via golang?icy-helmet-84765
12/07/2020, 4:17 PMdynamic providers
but that isn't supported by golang with the docs on the site. Any pointers on how to add step 3 via golang?lemon-agent-27707
12/07/2020, 6:08 PMstack.up
using a program that does 1-2
2. plain go code that does (3)
3. stack.up
using a program that does (1,2,4).icy-helmet-84765
12/08/2020, 1:03 AMlemon-agent-27707
12/08/2020, 9:46 PM