miniature-art-58368
03/24/2020, 8:08 PMminiature-art-58368
03/24/2020, 8:36 PMminiature-art-58368
03/24/2020, 8:38 PMlimited-librarian-23694
03/24/2020, 11:40 PMget_
methods don't seem to be returning what you'd expect? Specifically I'm calling ec2.get_security_groups and passing a filter that matches fine on the aws CLI, but in Pulumi I can never get it to return any security groups besides the default one.limited-librarian-23694
03/25/2020, 12:06 AMget_
methods like get_ami
and get_security_groups
are querying into the wrong AWS region; i.e. not the same region where pulumi is provisioning resources.... hmmmrefined-airplane-93668
03/25/2020, 1:05 AMrefined-airplane-93668
03/25/2020, 1:07 AMgreen-morning-1318
03/25/2020, 1:19 AMfast-dinner-32080
03/25/2020, 4:29 AMbetter-rainbow-14549
03/25/2020, 3:36 PMpublic readonly serverUri: pulumi.Output<string>;
which is filled out by pulumi after apply but with strict: true
in tsconfig.json it complains that it's "not definitely assigned in constructor" - is there any easy way around that pleasebitter-dentist-28132
03/25/2020, 4:15 PMdependsOn
, will that load balancer only be deleted after all resources that use it are deleted? what about transitive dependencies?big-potato-91793
03/25/2020, 5:43 PMfamous-kite-69533
03/25/2020, 6:44 PMimportant-boots-43281
03/25/2020, 7:01 PMError creating Lambda function: ResourceConflictException: Function already exist:
when we try to create the actual lambda function. The function is actually being created, but it seems like pulumi is trying to create it twice for some reason. The created function isn't destroyed by a pulumi destroy, so it doesn't ever seem to get registered with the state. Any ideas on what I'm doing wrong?billions-lock-73409
03/25/2020, 7:10 PMCOMMENT_ON_PR
flag, but have since disabled it in an attempt to switch to the github app as the GH actions integration is far too verbose.busy-scientist-76678
03/25/2020, 11:09 PMchilly-laptop-44574
03/26/2020, 3:43 AM└── infrastructure
└── network
├── dev
├── prod
└── stage
├── 01-host-project
│ ├── Pulumi.stage.yaml
│ └── Pulumi.yaml
└── 02-host-vpc
├── Pulumi.stage.yaml
└── Pulumi.yaml
So by default I am getting: <organisation>/02-host-vpc/stage
as a stack name. What is the suggested approach to have project name aligned to my directory structure? Ideally something like: <organisation>/infrastructure/network/02-host-vpc/stage
? Also I use this directory structure as a template for different projects/customers does it mean that for each separate deployment I need to have different <organisation>
?
Thanks!!😉sparse-state-34229
03/26/2020, 3:46 AMchilly-laptop-44574
03/26/2020, 9:55 AMexport PULUMI_CONFIG_PASSPHRASE=testtest
pulumi new gcp-typescript \
--name 02-host-vpc \
--description "GCP host VPC" \
--stack stage \
--secrets-provider passphrase \
--yes \
--non-interactive \
--force
pulumi config set gcp:project "test"
This creates new project Pulumi.yaml
and Pulumi.stage.yaml
as required but it overwrites my index.ts
file. Is there any way to stop that?
Thanks 😉bitter-zebra-93800
03/26/2020, 1:35 PM$ cat rsa.pub | pulumi config set publicKey --
$ cat rsa | pulumi config set privateKey --secret --
brave-angle-33257
03/26/2020, 3:49 PMbrave-angle-33257
03/26/2020, 3:50 PMnetworkInterfaces: [{
associatePublicIpAddress: false,
deleteOnTermination: true,
interface LaunchTemplateNetworkInterface {
associatePublicIpAddress?: pulumi.Input<string>;
deleteOnTermination?: pulumi.Input<boolean>;
sparse-state-34229
03/26/2020, 5:48 PMec2.get_subnet_ids()
in Python SDK? I pass vpc_id=vpc.id
as I do with other resources but get an exception:
Exception: invoke of aws:ec2/getSubnetIds:getSubnetIds failed: "vpc_id": required field is not set ()
famous-kite-69533
03/26/2020, 7:14 PMconst s3AccessKeyIdSecret = args.s3AccessKeyId || config.getSecret('s3AccessKeyId')
const s3SecretAccessKeySecret = args.s3SecretAccessKey || config.getSecret('s3SecretAccessKey')
const s3AccessKeyId = pulumi.all([s3AccessKeyIdSecret]).apply(([id]) => id)
const s3SecretAccessKey = pulumi.all([s3SecretAccessKeySecret]).apply(([secret]) => secret)
How can I simplify this? I just want to get the secrets from Pulumi secrets if I don't specify them in the class. I am new to Typescript. Also, I am using these secrets in two objects, but for some reason the variables are not "empty" only when accessed the first time for the first object. When accessed for the second object the variables yield no values - I can see this in the config map that is created without those keys only for the second object; the objects are defined in the same scope and the keys that use these secrets are the same. Why aren't the variables working properly when used the second time? Thanks!famous-kite-69533
03/26/2020, 7:37 PMcool-egg-852
03/26/2020, 7:44 PMgcp.projects.Services
to gcp.projects.Service
? Pulumi shows it will delete the resource, but will that disable all of the APIs?loud-napkin-70080
03/26/2020, 8:53 PMchilly-laptop-44574
03/27/2020, 3:42 AMpulumi stack init my-stack
and the stack already exists pulumi throws an error error: no stack named 'my-stack' found
I think pulumi cli should rather say something like stack named 'my-stack' already exist. OK
better-account-3959
03/27/2020, 10:30 AMbetter-account-3959
03/27/2020, 10:30 AM