salmon-raincoat-19475
11/08/2021, 3:21 PMaws:region
and aws:profile
for a project, as opposed to in each stack?brave-angle-33257
11/08/2021, 5:17 PM/data/pulumi
directory built into my container:
error: Error: Error reading file '/data/pulumi/infra/aws/projects/sitebuilder/environment/apigateway/package.json' when computing package dependencies. Error: ENOENT: no such file or directory, open '/data/pulumi/infra/aws/projects/sitebuilder/environment/apigateway/package.json'
at readFile (/data/pulumi/node_modules/@pulumi/pulumi/runtime/closure/codePaths.js:167:19)
at computeDependenciesDirectlyFromPackageFile (/data/pulumi/node_modules/@pulumi/pulumi/runtime/closure/codePaths.js:150:22)
at /data/pulumi/node_modules/@pulumi/pulumi/runtime/closure/codePaths.js:115:36
at /data/pulumi/node_modules/read-package-tree/rpt.js:162:20
sparse-intern-71089
11/08/2021, 5:23 PMfew-army-64952
11/08/2021, 6:15 PMhigh-holiday-63390
11/08/2021, 7:23 PMsparse-beach-51011
11/08/2021, 8:55 PMgorgeous-translator-67757
11/08/2021, 9:44 PMcurved-summer-41191
11/08/2021, 9:52 PMsparse-beach-51011
11/08/2021, 10:30 PMsparse-beach-51011
11/08/2021, 10:31 PMabundant-book-94104
11/08/2021, 11:27 PMlittle-cartoon-10569
11/09/2021, 2:13 AMcolossal-furniture-61502
11/09/2021, 2:33 AMsparse-tomato-5980
11/09/2021, 3:38 AMpulumi login --local
?
If I try to do a pulumi stack init myusername/something
I get back a error: stack names may not contain slashes
My understanding is that stack init
respects org names, and under file:// your org name is just your username.steep-portugal-37539
11/09/2021, 4:53 AMnpm install
a pulumi repo via a github url? I keep getting error SyntaxError: Cannot use import statement outside a module
when running pulumi in the repo that installed the pulumi package.
It seems i may need to set the “main” field in package.json to point to the compiled entrypoint .js file. However, that then messes up pulumi when i try and run it locally from the repo. As now pulumi tries to invoke the index.js file instead of the index.ts file.
I’m trying to mimic how an installed pulumi npm module works. There are .js, .js.map, and .d.ts files. No .ts files. I’m not sure how to replicate this so that the install via github url works, as well as running pulumi within the pulumi pkg repo itself (I do that for testing)
I can’t figure this out 🙂 Any advice would be much appreciatedbored-barista-23480
11/09/2021, 11:45 AMException: 'dependsOn' was passed a value that was not a Resource.
, but I don't explicitly set the dependsOn
parameter. I boiled it down to one specific parameter creating the problem. I create an EKS cluster in my first project, export cluster.core
, import it in my second project and use it as the cluster
input to a ManagedNodeGroup
. Currently it's the only resource created in the second project and every other input is given explicitly (= not as an Output
type). Does any one have a clue where the error could originate or even how to solve it?future-refrigerator-88869
11/09/2021, 6:52 PMconst stackArgs: InlineProgramArgs = {
stackName: 'some name',
projectName: "org/project",
program: inlineProgram,
};
However, when executing this i get error: could not create stack: provided project name "org-project" doesn't match Pulumi.yaml
. However, there's no pulumi.yaml
file within the folder I run this so I'm a bit confused. everything works fine if i don't use the org
but that creates the project within the devops user environment. Any ideas ?limited-rainbow-51650
11/09/2021, 7:30 PMconfig:
<your-project-name>:<key>: <value>
Providers often look up their config with another "project-name", e.g.:
config:
aws:region: eu-west-1
<your-project-name>:<key>: <value>
If I create an abstraction in a reusable library, I could for example use a separate project key to store all the config for my component.
config:
aws:region: eu-west-1
<your-project-name>:<key>: <value>
<my-component-name>:<key1>: <value1>
<my-component-name>:<key2>: <value2>
Do other Pulumi developers use this ability for such use cases? Would this be a good pattern to use, or rather an anti-pattern?wide-jackal-86020
11/10/2021, 3:22 AMnpm build
inside pulumi? Here's the use case:
We need to build and deploy a frontend REACT application to S3. And we need to know which stack to deploy while building the application, so we can set up the environment variables properly. For example, if we are deploying to dev
, we should run ENV=dev npm build
. Since we can easily get the stack name in pulumi, it would be convenient if I can run npm build
inside pulumi.steep-portugal-37539
11/10/2021, 4:22 AMbusy-magazine-48939
11/10/2021, 9:57 AMsquare-coat-62279
11/10/2021, 10:18 AMnutritious-shampoo-16116
11/10/2021, 10:56 AMgreat-breakfast-56601
11/10/2021, 11:55 AMnew CustomResourceOptions { Protect }
option should be preventing destruction of resources by my pulumi up script or not?great-breakfast-56601
11/10/2021, 11:56 AMgreat-breakfast-56601
11/10/2021, 12:01 PMable-camera-57198
11/10/2021, 3:16 PMsparse-student-54516
11/10/2021, 3:21 PMbored-barista-23480
11/10/2021, 3:50 PMpulumi_eks
package to set up an EKS cluster in a project. I have to import the cluster in a second project and ran into a problem: pulumi_eks.Cluster
does not provide a get()
method. Under the hood there is a child resource of type pulumi_aws.eks.Cluster
with a static get()
method but it does not work ,Pulumi can't find it. Did I miss something or is there no way of importing the cluster if using the pulumi_eks
package to deploy it?able-camera-57198
11/10/2021, 4:56 PM.yaml
file in the current folder?
(I plan on using --config-file
)