chilly-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 AMbetter-account-3959
03/27/2020, 10:31 AMbetter-account-3959
03/27/2020, 10:31 AMstale-knife-36790
03/27/2020, 10:31 AMbetter-account-3959
03/27/2020, 10:57 AMerror: could not deserialize deployment: reading response from API: read tcp 192.168.0.119:52138->52.26.53.20:443: read: connection reset by peer
<http://github.com/pulumi/pulumi/pkg/backend/httpstate.(*cloudBackend).getTarget|github.com/pulumi/pulumi/pkg/backend/httpstate.(*cloudBackend).getTarget>
/home/travis/gopath/src/github.com/pulumi/pulumi/pkg/backend/httpstate/state.go:291
<http://github.com/pulumi/pulumi/pkg/backend/httpstate.(*cloudBackend).newUpdate|github.com/pulumi/pulumi/pkg/backend/httpstate.(*cloudBackend).newUpdate>
/home/travis/gopath/src/github.com/pulumi/pulumi/pkg/backend/httpstate/state.go:247
<http://github.com/pulumi/pulumi/pkg/backend/httpstate.(*cloudBackend).runEngineAction|github.com/pulumi/pulumi/pkg/backend/httpstate.(*cloudBackend).runEngineAction>
/home/travis/gopath/src/github.com/pulumi/pulumi/pkg/backend/httpstate/backend.go:951
<http://github.com/pulumi/pulumi/pkg/backend/httpstate.(*cloudBackend).apply|github.com/pulumi/pulumi/pkg/backend/httpstate.(*cloudBackend).apply>
/home/travis/gopath/src/github.com/pulumi/pulumi/pkg/backend/httpstate/backend.go:934
<http://github.com/pulumi/pulumi/pkg/backend.PreviewThenPrompt|github.com/pulumi/pulumi/pkg/backend.PreviewThenPrompt>
/home/travis/gopath/src/github.com/pulumi/pulumi/pkg/backend/apply.go:114
<http://github.com/pulumi/pulumi/pkg/backend.PreviewThenPromptThenExecute|github.com/pulumi/pulumi/pkg/backend.PreviewThenPromptThenExecute>
/home/travis/gopath/src/github.com/pulumi/pulumi/pkg/backend/apply.go:199
<http://github.com/pulumi/pulumi/pkg/backend/httpstate.(*cloudBackend).Refresh|github.com/pulumi/pulumi/pkg/backend/httpstate.(*cloudBackend).Refresh>
/home/travis/gopath/src/github.com/pulumi/pulumi/pkg/backend/httpstate/backend.go:819
<http://github.com/pulumi/pulumi/pkg/backend.RefreshStack|github.com/pulumi/pulumi/pkg/backend.RefreshStack>
/home/travis/gopath/src/github.com/pulumi/pulumi/pkg/backend/stack.go:87
<http://github.com/pulumi/pulumi/pkg/backend/httpstate.(*cloudStack).Refresh|github.com/pulumi/pulumi/pkg/backend/httpstate.(*cloudStack).Refresh>
/home/travis/gopath/src/github.com/pulumi/pulumi/pkg/backend/httpstate/stack.go:152
<http://github.com/pulumi/pulumi/cmd.newRefreshCmd.func1|github.com/pulumi/pulumi/cmd.newRefreshCmd.func1>
/home/travis/gopath/src/github.com/pulumi/pulumi/cmd/refresh.go:127
<http://github.com/pulumi/pulumi/pkg/util/cmdutil.RunResultFunc.func1|github.com/pulumi/pulumi/pkg/util/cmdutil.RunResultFunc.func1>
/home/travis/gopath/src/github.com/pulumi/pulumi/pkg/util/cmdutil/exit.go:112
<http://github.com/spf13/cobra.(*Command).execute|github.com/spf13/cobra.(*Command).execute>
/home/travis/gopath/pkg/mod/github.com/spf13/cobra@v0.0.3/command.go:766
<http://github.com/spf13/cobra.(*Command).ExecuteC|github.com/spf13/cobra.(*Command).ExecuteC>
/home/travis/gopath/pkg/mod/github.com/spf13/cobra@v0.0.3/command.go:852
<http://github.com/spf13/cobra.(*Command).Execute|github.com/spf13/cobra.(*Command).Execute>
/home/travis/gopath/pkg/mod/github.com/spf13/cobra@v0.0.3/command.go:800
main.main
/home/travis/gopath/src/github.com/pulumi/pulumi/main.go:49
runtime.main
/home/travis/.gimme/versions/go1.13.9.linux.amd64/src/runtime/proc.go:203
runtime.goexit
/home/travis/.gimme/versions/go1.13.9.linux.amd64/src/runtime/asm_amd64.s:1357
loud-napkin-70080
03/27/2020, 12:24 PMloud-napkin-70080
03/27/2020, 12:24 PMaloof-artist-9491
03/27/2020, 2:17 PMaloof-artist-9491
03/27/2020, 2:28 PMlimited-librarian-23694
03/27/2020, 5:14 PMpulumi new aws-python
. So now I want to install it via pulumi plugin install resource aws VERSION
, but I cannot find any way to determine what the legal values of VERSION are... anyone able to point me in the right direction?breezy-hamburger-69619
03/27/2020, 5:23 PMfamous-kite-69533
03/27/2020, 6:46 PMpulumi update
command. Finally, I deploy my app with CI/CD. Super awesome! I am doing some final tests of my code and then I will rebuild my actual cluster this way so I can maintain it with Pulumi in the futurebreezy-hamburger-69619
03/27/2020, 7:00 PMfamous-kite-69533
03/27/2020, 7:43 PMswift-painter-31084
03/27/2020, 8:10 PMabundant-art-60246
03/27/2020, 10:02 PMkubectl --as=system:serviceaccount:ns-sourcegraph:fake-user -n ns-sourcegraph apply -k .
where fake-user is a service account with some policies attached.wonderful-zoo-8760
03/27/2020, 10:13 PMwonderful-zoo-8760
03/27/2020, 10:13 PMwhite-balloon-205
03/28/2020, 4:25 AMwonderful-zoo-8760
03/28/2020, 5:21 AM