great-sunset-355
06/26/2021, 9:09 AMawsx
?echoing-zebra-28421
06/26/2021, 10:53 PMError reading file 'infra/package.json' when computing package dependencies. Error: ENOENT: no such file or directory, open '/infra/package.json'
My dir:
- project
...
- infra
- Pulumi.yaml
- tsconfig.json
...
- src
...
- package.json
- tsconfig.json
I need to have the package.json at that place in my directory.
Any help or alternatives to solve the problem will be welcome.
I'm using @pulumi/pulumi: "^3.4.0"
this error occurs when i run pulumi preview --cwd infra
I run that command in the root of my projectbreezy-lunch-69325
06/27/2021, 12:44 AMbright-sandwich-93783
06/27/2021, 11:52 PMbright-sandwich-93783
06/27/2021, 11:52 PMstraight-magician-37467
06/28/2021, 12:57 AMpulumi new gcp-typescript
in that folder, but it errored out:
</path/to/project> is not empty; rerun in an empty directory, pass the path to an empty directory to --dir, or use --force
Am I misunderstanding how Pulumi is intended to be used? Would I not want to keep my Pulumi config in the same folder/repo as my actual code?bright-sandwich-93783
06/28/2021, 2:36 AMpulumi up
to realize this and re-create the instance? This is obviously what TF does but I have just tested this and it doesn't realize the resource got deleted manually.better-shampoo-48884
06/28/2021, 8:42 AMbright-truck-37455
06/28/2021, 10:53 AMexport const dbConfig = config.requireSecretObject<Config>("dbConfig");
And in the "destination" stack
const dbConfig = remoteStack.getOutput("dbConfig");
When I'm using dbConfig var in the 2nd stack it evaluates to the Object I need, however, when I'm trying to get specfic keys, like dbConfig["host"], I get an error saying there is no such property on that Object.
P.S. TypeScript is not my main programming language, please don't go hard on me 🙂echoing-vr-57917
06/28/2021, 12:35 PMechoing-vr-57917
06/28/2021, 12:36 PMechoing-vr-57917
06/28/2021, 12:38 PMmillions-furniture-75402
06/28/2021, 2:40 PMgorgeous-eye-54797
06/28/2021, 5:14 PMstraight-intern-54129
06/28/2021, 8:00 PMpulumi up
with limited Azure access for a client and it fails because it's trying to register all resource providers up front. Terraform gives this error message:
error: Error ensuring Resource Providers are registered.
Terraform automatically attempts to register the Resource Providers it supports to
ensure it's able to provision resources.
If you don't have permission to register Resource Providers you may wish to use the
"skip_provider_registration" flag in the Provider block to disable this functionality.
witty-dentist-91954
06/28/2021, 8:33 PMstraight-intern-54129
06/28/2021, 9:13 PMpulumi import
to import an existing Azure resource group. I'm trying to specify the resource group as the --parent
but am getting error: an inline resource must be specified if no import file is used.
Is there an example of importing an Azure resource that I can compare against?fierce-camera-61577
06/28/2021, 11:25 PMnutritious-australia-90040
06/29/2021, 4:30 AMrhythmic-actor-14991
06/29/2021, 7:13 AMicy-football-94152
06/29/2021, 8:19 AMrhythmic-actor-14991
06/29/2021, 11:04 AMCalling [toJSON] on an [Output<T>] is not supported.
To get the value of an Output as a JSON value or JSON string consider either:
1: o.apply(v => v.toJSON())
2: o.apply(v => JSON.stringify(v))
See <https://pulumi.io/help/outputs> for more details.
This function may throw in a future version of @pulumi/pulumi
``````astonishing-monitor-96741
06/29/2021, 12:50 PMfuture-nail-59564
06/29/2021, 1:33 PMbright-truck-37455
06/29/2021, 1:47 PMlet url = virtualmachine.dnsName.apply(dnsName => "https://" + dnsName);
Problem is - it doesn't really work for more than one Output<T> var. Here's what I'm trying to do:
`'iam.gke.io/gcp-service-account': `${gcpSA.name}@${gcpProject}.iam.gserviceaccount.com``
When this code gets executed, I get an error saying: Calling [toString] on an [Output<T>] is not supported
Is it possible to somehow run apply() on more than one variable, or is there another solution to my problem?agreeable-eye-87399
06/29/2021, 2:03 PMlemon-monkey-228
06/29/2021, 2:38 PMPulumi.foo.yaml
) only exist locally?lemon-monkey-228
06/29/2021, 2:38 PMlemon-monkey-228
06/29/2021, 2:38 PMshy-author-33795
06/29/2021, 4:16 PMstr
of Output so I can use it as part of rds.Cluster
's final_snapshot_identifier
in another resource? Trying to add a randomId to the final snapshot id and I am unable to get an actual value