early-keyboard-41388
10/19/2021, 9:19 AMStackReference
(trying to understand it). I’m using S3 as backend (everything in one bucket), ideally a folder for each project (micro services setup: infra, app, services, etc).
With this I saw two options:
1. Every pulumi project in same folder -> each stack needs to have project name in it (eg, infra.dev
), or they will collide (dev, in two different projects, in same folder in S3).
2. Every project in different folders -> stack can be named with just the environment (dev
, stg
, prod
)
In case 1, I did new StackReference('infra.dev')
, and it ends with error:
aws:lambda:Function (lambda_name):
error: 1 error occurred:
* error creating Lambda Function (1): ValidationException:
status code: 400, request id: 6dab7a4b-c6cc-4ebc-8a46-cb14060d50f2
Apparently it gets the stack_reference but it fails to deploy. My assumption is because it’s empty data or failing in some level with those refs.
Also tried new StackReference('project_name/infra.dev')
, but got the error:
error: Preview failed: unknown stack "project_name/infra.dev"
If I wanted to use the case 2, everything in different folders, how do you reference to the other stack?
Any help is more than welcome.great-sunset-355
10/19/2021, 12:57 PMorg/project/stack
early-keyboard-41388
10/19/2021, 2:13 PMorg
is not defined. Or do you know how to get it?
Also, with different paths (folders within the same bucket), tried to reference as project/stack
. But got unknown stack
, or something of the sort.great-sunset-355
10/19/2021, 2:16 PMstack_name
regardless of the project with S3
Here is a reference to the same stack but from a completely different directory
https://github.com/mitodl/ol-infrastructure/blob/f42b329df70b4ec7c59295e0e011100a61775472/src/ol_infrastructure/applications/concourse/__main__.py#L40early-keyboard-41388
10/19/2021, 2:39 PMlittle-cartoon-10569
10/19/2021, 8:11 PMbackend
URL?early-keyboard-41388
10/20/2021, 5:44 AM