salmon-zoo-99782
07/27/2021, 6:36 PMpulumi up --config stringArray
? I am trying to run pulumi up --config 'ami=ami-123, instance_type=t2.micro'
but a subsequent pulumi config
reveals ami=ami-123, instance_type=t2.micro
. What is the delimeter for doing multiple key/value pairs when passing in a config stringArray?great-alligator-26951
07/28/2021, 12:43 AM# define a function to write an arn to a file
def write_to_file(arn):
f = open("arn.txt", "a")
f.write(arn)
f.close()
json = lb.arn.apply(lambda a: write_to_file(arn=a))
many-yak-61188
07/28/2021, 12:38 PMbrainy-helmet-80249
07/29/2021, 1:29 AMbland-smartphone-19451
07/29/2021, 7:57 AMacoustic-answer-89272
07/30/2021, 9:35 PMwebapp.SiteConfig.Apply(cfg => cfg.AppSettings.Add(?????));
Thanks ! πbillions-ghost-96421
08/01/2021, 7:01 PMnew _awsx.lb.ApplicationLoadBalancer_
, how do I reference an awsx_.ec2._Vpc
instance created in another stack?
stack <org>/infra/dev
const vpc = new awsx.ec2.Vpc("dev", {
cidrBlock: vpcCidr,
numberOfAvailabilityZones: 3,
subnets: [...],
});
export const vpcId = vpc.id
stack <org>/app/dev
const infraDevStack = new pulumi.StackReference("<org>/infra/dev");
// Create an ALB associated with the dev VPC
const alb = new awsx.lb.ApplicationLoadBalancer("admin", {
vpc: aws.ec2.getVpc({
id: infraDevStack.getOutput("vpcId") as string,
}),
});
Here, aws.ec2.getVpc
returns Promise<GetVpcResult
but I need a awsx.ec2.Vpc
.astonishing-oyster-32419
08/01/2021, 8:53 PMname
what am I missing??
Thank you
package main
import (
"<http://github.com/pulumi/pulumi-digitalocean/sdk/v4/go/digitalocean|github.com/pulumi/pulumi-digitalocean/sdk/v4/go/digitalocean>"
"<http://github.com/pulumi/pulumi/sdk/v3/go/pulumi|github.com/pulumi/pulumi/sdk/v3/go/pulumi>"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Create an EKS cluster with the default configuration.
cluster, err := digitalocean.NewKubernetesCluster(ctx, "Demos", nil)
if err != nil {
return err
}
// Export the cluster's kubeconfig.
ctx.Export("kubeconfig", cluster.KubeConfigs.Index(<http://pulumi.Int|pulumi.Int>(0)))
return nil
})
}
astonishing-oyster-32419
08/01/2021, 10:25 PMc@macmini ~/D/p/do [255]> pulumi up
Previewing update (dev)
View Live: <https://app.pulumi.com/camfoo/proj/dev/previews/3457fd4c-619e-4354-8a0b-7cacba92baff>
Type Name Plan Info
+ pulumi:pulumi:Stack proj-dev create 1 error; 3 messages
Diagnostics:
pulumi:pulumi:Stack (proj-dev):
error: program failed: 1 error occurred:
* missing one or more required arguments
exit status 1
error: an unhandled error occurred: program exited with non-zero exit code: 1
astonishing-oyster-32419
08/01/2021, 10:45 PMc@macmini ~/D/p/do> cat main.go
package main
import (
"<http://github.com/pulumi/pulumi-digitalocean/sdk/v4/go/digitalocean|github.com/pulumi/pulumi-digitalocean/sdk/v4/go/digitalocean>"
"<http://github.com/pulumi/pulumi/sdk/v3/go/pulumi|github.com/pulumi/pulumi/sdk/v3/go/pulumi>"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Create an EKS cluster with the default configuration.
a := digitalocean.KubernetesClusterArgs{
AutoUpgrade: nil,
MaintenancePolicy: nil,
Name: nil,
NodePool: digitalocean.KubernetesClusterNodePoolOutput{
OutputState: &pulumi.OutputState{},
},
Region: pulumi.String("NewYork"),
SurgeUpgrade: nil,
Tags: nil,
Version: pulumi.String("1.21"),
VpcUuid: nil,
}
cluster, err := digitalocean.NewKubernetesCluster(ctx, "proj", &a)
if err != nil {
return err
}
// Export the cluster's kubeconfig.
ctx.Export("kubeconfig", cluster.KubeConfigs.Index(<http://pulumi.Int|pulumi.Int>(0)))
return nil
})
}
c@macmini ~/D/p/do> pulumi up
Previewing update (dev)
View Live: <https://app.pulumi.com/camfoo/proj/dev/previews/3e4466fd-6030-4f87-b241-f28b8a471464>
Type Name Plan Info
pulumi:pulumi:Stack proj-dev 1 error; 22 messages
Diagnostics:
pulumi:pulumi:Stack (proj-dev):
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x30 pc=0x1074a2d]
goroutine 7 [running]:
sync.(*Cond).Wait(0x0)
/usr/local/go/src/sync/cond.go:53 +0x2d
<http://github.com/pulumi/pulumi/sdk/v3/go/pulumi.(*OutputState).await|github.com/pulumi/pulumi/sdk/v3/go/pulumi.(*OutputState).await>(0xc0000f8310, 0x1bf5298, 0xc000122008, 0x1bf9b38, 0xc0000f8310, 0x1, 0x0, 0x0, 0x0, 0x0, ...)
/Users/c/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.9.1/go/pulumi/types.go:217 +0x47
<http://github.com/pulumi/pulumi/sdk/v3/go/pulumi.marshalInputAndDetermineSecret(0x1acb600|github.com/pulumi/pulumi/sdk/v3/go/pulumi.marshalInputAndDetermineSecret(0x1acb600>, 0xc0000f8310, 0x1c08240, 0x1a9ac00, 0x1, 0x1, 0x0, 0x189d83b, 0x8, 0x0, ...)
/Users/c/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.9.1/go/pulumi/rpc.go:221 +0xae8
<http://github.com/pulumi/pulumi/sdk/v3/go/pulumi.marshalInput(0x1acb600|github.com/pulumi/pulumi/sdk/v3/go/pulumi.marshalInput(0x1acb600>, 0xc0000f8310, 0x1c08240, 0x1a9ac00, 0x189d801, 0x8, 0x0, 0x0, 0x1c08240, 0x1a9ac00, ...)
/Users/c/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.9.1/go/pulumi/rpc.go:171 +0x73
<http://github.com/pulumi/pulumi/sdk/v3/go/pulumi.marshalInputs.func1(0x189d84d|github.com/pulumi/pulumi/sdk/v3/go/pulumi.marshalInputs.func1(0x189d84d>, 0x8, 0x1acb600, 0xc0000f8310, 0x1c08240, 0x1a9ac00, 0x194, 0x0)
/Users/c/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.9.1/go/pulumi/rpc.go:78 +0x9f
<http://github.com/pulumi/pulumi/sdk/v3/go/pulumi.marshalInputs(0x1be4a80|github.com/pulumi/pulumi/sdk/v3/go/pulumi.marshalInputs(0x1be4a80>, 0xc0000ac480, 0x36, 0x0, 0x0, 0xc0000ae300, 0x0, 0xc0004100c0, 0x33)
/Users/c/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.9.1/go/pulumi/rpc.go:141 +0x605
<http://github.com/pulumi/pulumi/sdk/v3/go/pulumi.(*Context).prepareResourceInputs(0xc000514000|github.com/pulumi/pulumi/sdk/v3/go/pulumi.(*Context).prepareResourceInputs(0xc000514000>, 0x1be4a80, 0xc0000ac480, 0x1b0a305, 0x36, 0xc0000ae300, 0xc0000f8380, 0x0, 0x0, 0x0, ...)
/Users/c/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.9.1/go/pulumi/context.go:1164 +0x1cf
<http://github.com/pulumi/pulumi/sdk/v3/go/pulumi.(*Context).registerResource.func1(0xc0000f8380|github.com/pulumi/pulumi/sdk/v3/go/pulumi.(*Context).registerResource.func1(0xc0000f8380>, 0xc000514000, 0x1be4a80, 0xc0000ac480, 0x1b0a305, 0x36, 0xc0000ae300, 0x0, 0x1ae3d51, 0x4, ...)
/Users/c/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.9.1/go/pulumi/context.go:770 +0x1d7
created by <http://github.com/pulumi/pulumi/sdk/v3/go/pulumi.(*Context).registerResource|github.com/pulumi/pulumi/sdk/v3/go/pulumi.(*Context).registerResource>
/Users/c/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.9.1/go/pulumi/context.go:757 +0x5ce
exit status 2
error: an unhandled error occurred: program exited with non-zero exit code: 1
c@macmini ~/D/p/do [255]>
cuddly-wire-39431
08/05/2021, 11:38 AMlemon-dog-29241
08/05/2021, 8:08 PMbreezy-caravan-29021
08/06/2021, 2:35 PMbreezy-caravan-29021
08/06/2021, 2:36 PM'dev_privateRouteTableAssociation_us-west-2a': {
type: 'aws:ec2/routeTableAssociation:RouteTableAssociation',
id: 'subnet-0111110/rtb-0111110',
},
'dev_privateRouteTableAssociation_us-west-2b': {
type: 'aws:ec2/routeTableAssociation:RouteTableAssociation',
id: 'subnet-0222229/rtb-022222c',
},
'dev_privateRouteTableAssociation_us-west-2c': {
type: 'aws:ec2/routeTableAssociation:RouteTableAssociation',
id: 'subnet-033333d/rtb-0333333a',
},
breezy-caravan-29021
08/06/2021, 2:36 PMDiagnostics:
pulumi:pulumi:Stack (ts-infra-eks-dev-us-west-2):
error: update failed
aws:ec2:RouteTableAssociation (dev_privateRouteTableAssociation_us-west-2b):
error: inputs to import do not match the existing resource
aws:ec2:RouteTableAssociation (dev_privateRouteTableAssociation_us-west-2c):
error: inputs to import do not match the existing resource
aws:ec2:RouteTableAssociation (dev_privateRouteTableAssociation_us-west-2a):
error: inputs to import do not match the existing resource
breezy-caravan-29021
08/06/2021, 2:36 PMbreezy-caravan-29021
08/06/2021, 2:36 PMbland-minister-14373
08/09/2021, 12:09 PMbusy-art-60458
08/10/2021, 2:49 PMI have different Environments at a cloud provider (hetzner cloud in this case). One Environment for testing and one for production. I know about pulumi stacks, but i don't really know how to split the environments within a mono repo. Do i create multiple pulumi.yaml files? I saw that pulumi requires a package.json per project(?). Do i create multiple folders with package.json's inside the mono repo and how does it work with different pulumi stacks then. Or do i need to decouple everything. I think the pulumi docs are talking too much about concepts without explaining πThanks in advance π
billowy-pilot-50934
08/10/2021, 4:14 PMbillowy-pilot-50934
08/10/2021, 4:14 PMbillowy-pilot-50934
08/10/2021, 4:15 PMbillowy-pilot-50934
08/10/2021, 4:18 PMbillowy-pilot-50934
08/10/2021, 4:18 PMbillowy-pilot-50934
08/10/2021, 4:20 PMbillowy-army-68599
billowy-pilot-50934
08/10/2021, 4:22 PMbillowy-pilot-50934
08/10/2021, 4:23 PM6afff,urn:pulumi:dev::HelloWorldfrompulumi::aws:s3/bucket:Bucket::my-bucket).outputs]: versioning={<nil>}
I0810 11:16:26.085649 37436 rpc.go:249] Unmarshaling property for RPC[Provider[aws, 0xc001298f00].Update(my-bucket-a5
6afff,urn:pulumi:dev::HelloWorldfrompulumi::aws:s3/bucket:Bucket::my-bucket).outputs]: website={<nil>}
I0810 11:16:26.085649 37436 provider_plugin.go:992] Provider[aws,
0xc001298f00].Update(my-bucket-a56afff,urn:pulumi:dev::HelloWorldfrompulumi::aws:s3/bucket:Bucket::my-bucket) success;
#outs=13
I0810 11:16:26.085649 37436 eventsink.go:86] eventSink::Error(<{%reset%}>1 error occurred:
* updating urn:pulumi:dev::HelloWorldfrompulumi::aws:s3/bucket:Bucket::my-bucket: 1 error occurred:
* error reading S3 Bucket (my-bucket-a56afff): Forbidden: Forbidden
status code: 403, request id: AQBJZRT3DXAYSPB7, host id:
O/1HTv+9WhsXyZ0uGtjc1suLF+4c8H4uJoRAQlGchdJ+hQ0ULm2TCjoKjqvXRSqDgKVIMxCexeg=
billowy-pilot-50934
08/10/2021, 4:23 PMbillowy-pilot-50934
08/10/2021, 4:23 PM