icy-controller-6092
12/19/2023, 7:54 AMsalmon-account-74572
12/19/2023, 4:59 PMpulumi stack import
to ensure that the import file is valid.
Aside from that, though, it’s a matter of moving resources between stacks (you can use pulumi stack export
and pulumi stack import
here to help) and refactoring code to match.quick-laptop-52657
12/19/2023, 5:00 PMmain.go
? The project structure I am hoping for is to some how have my pulumi scripts as a module and maybe the yaml files for configuration?
Possibly have:
infrastructure/
code/[main.go, vpc.go, ec2.go]
pulumi.yaml
pulumi-dev.yaml
I could make a new message to avoid slamming @icy-controller-6092 request, but I can kind of see a relationship heresalmon-account-74572
12/19/2023, 5:01 PMvpc.go
and ec2.go
files that accept context and pass back any properties you need to reference elsewhere, then call those functions from main.go
. I need to hop into a meeting, but I’ll try to see if there’s an example somewhere I can point you to.salmon-account-74572
12/19/2023, 6:13 PMquick-laptop-52657
12/19/2023, 6:18 PMsalmon-account-74572
12/19/2023, 8:20 PM