sparse-intern-71089
01/04/2024, 4:15 PMlittle-library-54601
01/04/2024, 4:20 PMdry-keyboard-94795
01/04/2024, 4:24 PMgorgeous-pharmacist-71907
01/04/2024, 4:25 PMdry-keyboard-94795
01/04/2024, 4:26 PMgorgeous-pharmacist-71907
01/04/2024, 4:32 PMprodstagingshareddry-keyboard-94795
01/04/2024, 4:33 PMgorgeous-pharmacist-71907
01/04/2024, 4:36 PMdry-keyboard-94795
01/04/2024, 4:44 PMPulumi.staging.yamlenable-some-service: truesalmon-account-74572
01/04/2024, 4:48 PMgorgeous-pharmacist-71907
01/04/2024, 4:51 PMdry-keyboard-94795
01/04/2024, 4:52 PMPulumi.yamlindex.jsPulumi.staging.yamlsalmon-account-74572
01/04/2024, 4:52 PMsalmon-account-74572
01/04/2024, 4:53 PMdry-keyboard-94795
01/04/2024, 4:53 PMgorgeous-pharmacist-71907
01/04/2024, 4:54 PMstagingprodsharedstagingprodsharedshareddry-keyboard-94795
01/04/2024, 4:56 PMsharedgorgeous-pharmacist-71907
01/04/2024, 4:56 PMprodstaginggorgeous-pharmacist-71907
01/04/2024, 4:58 PMsalmon-account-74572
01/04/2024, 5:01 PMhmm, i understand, ideally id like one project with 3 stacks@gorgeous-pharmacist-71907 You could make it work that way, but IMO it would be unnecessarily complex. You want to think of a stack as an instance of the infrastructure defined in your program. This is what enables you to have identical (or nearly identical) infrastructure in your staging environment (one stack) and your production environment (a second stack)---because they run the same code, but with independent state and independent configuration values. As Anthony mentioned, it's best if you have a separate
sharedsalmon-account-74572
01/04/2024, 5:02 PMgorgeous-pharmacist-71907
01/04/2024, 5:06 PMprodstagingsalmon-account-74572
01/04/2024, 5:09 PMprodstagingdry-keyboard-94795
01/04/2024, 5:10 PMgorgeous-pharmacist-71907
01/04/2024, 5:11 PMgorgeous-pharmacist-71907
01/04/2024, 5:11 PMsalmon-account-74572
01/04/2024, 5:13 PMgorgeous-pharmacist-71907
01/04/2024, 7:41 PMsharedIAMUserARNpulumi stack outputindex.tsstaging|prodconst sharedStack = new Pulumi.StackReference("shared")
sharedStack.getOutput("IAMUserARN").apply((arn) => {
    console.log(`${arn}`)
})pulumi upgorgeous-pharmacist-71907
01/04/2024, 7:41 PM<http://Pulumi.log.info|Pulumi.log.info>dry-keyboard-94795
01/04/2024, 7:44 PMdry-keyboard-94795
01/04/2024, 7:44 PMgorgeous-pharmacist-71907
01/04/2024, 7:46 PMfile://dry-keyboard-94795
01/04/2024, 7:46 PMgorgeous-pharmacist-71907
01/04/2024, 7:47 PMdry-keyboard-94795
01/04/2024, 7:53 PMbackend.urlPulumi.yamldry-keyboard-94795
01/04/2024, 7:53 PMgorgeous-pharmacist-71907
01/04/2024, 8:13 PMbackend.urlpulumi login file://./backend.urlshared/sharedPulumi.yamlname: shared
runtime: nodejs
description: Shared infrastructure that can be used in other stacks
organization: testorg
backend:
  url: file://./gorgeous-pharmacist-71907
01/04/2024, 8:14 PMdry-keyboard-94795
01/04/2024, 8:15 PMgorgeous-pharmacist-71907
01/04/2024, 8:16 PMdry-keyboard-94795
01/04/2024, 8:17 PMshared/sharedgorgeous-pharmacist-71907
01/04/2024, 8:28 PMinfrainfra/shared/Pulumi.yamlfile://../infra/Pulumi.yamlfile://./shared/sharedorganizationorganization/shared/sharedsalmon-account-74572
01/04/2024, 8:38 PMdry-keyboard-94795
01/04/2024, 8:40 PMdry-keyboard-94795
01/04/2024, 8:42 PMsalmon-account-74572
01/04/2024, 8:43 PMGoing with pulumi cloud is the simplest way of setting up for production100 rainbow
gorgeous-pharmacist-71907
01/04/2024, 8:48 PMgorgeous-pharmacist-71907
01/04/2024, 8:48 PMgorgeous-pharmacist-71907
01/04/2024, 8:50 PM{provider}Pulumi.ProviderResourcesharedStack.getOutput("euWest1Provider")dry-keyboard-94795
01/04/2024, 8:51 PMgorgeous-pharmacist-71907
01/04/2024, 8:52 PMgorgeous-pharmacist-71907
01/04/2024, 8:52 PMgorgeous-pharmacist-71907
01/04/2024, 9:07 PMPulumi.ProviderResourcenew AWS.Providerdry-keyboard-94795
01/04/2024, 9:09 PMdry-keyboard-94795
01/04/2024, 9:09 PMgorgeous-pharmacist-71907
01/04/2024, 9:10 PMdry-keyboard-94795
01/04/2024, 9:11 PMdry-keyboard-94795
01/04/2024, 9:12 PMgorgeous-pharmacist-71907
01/04/2024, 9:13 PMdry-keyboard-94795
01/04/2024, 9:15 PMicy-controller-6092
01/05/2024, 6:05 AMPulumi.yamlicy-controller-6092
01/05/2024, 6:06 AM[service].[env]