bored-vegetable-38523
05/09/2025, 10:50 AMaloof-vegetable-31102
05/09/2025, 12:10 PMaloof-vegetable-31102
05/09/2025, 12:32 PMbored-vegetable-38523
05/09/2025, 1:31 PMaloof-vegetable-31102
05/09/2025, 1:35 PMa = create_a_thing()
b = create_b_thing(a.id)
would seem to work. But if you were to want to create a list of things, this would be a bit more cumbersome. For example if you were retrieving the list from a source (say an AWS secret), then because that value would be of the Output type, and not a string, you cant simply do a for loop and iterate across the list
l = get_secret('key').value
for item in l:
do_more(item)
wouldnt work
Once again i'd encourage doing more than just a simple poc. My first day of pulumi was great as I was creating singular objects and passing outputs directly to inputs. It becomes more troublesome when you start looking at doing more advanced things.
I think the transit gw is a good example for seeing some of the caveats as you have to do things like get the list of route tables in order to associate a new route into them pointing to the tgw attachment across two different accounts.bored-vegetable-38523
05/09/2025, 1:56 PMaloof-vegetable-31102
05/09/2025, 2:02 PMadamant-lawyer-19698
05/09/2025, 5:01 PMhallowed-baker-22997
05/09/2025, 5:20 PMadamant-lawyer-19698
05/09/2025, 5:23 PMhallowed-baker-22997
05/09/2025, 5:24 PMhallowed-baker-22997
05/09/2025, 5:27 PMresource "resource_type" "resource-identifier" { # <-- the name in the pulumi constructor is equivalent to the static resource identifier in TF. by default it is used to auto-name the resource
name = "${...} # <-- but you can override that by specifying an alternative name yourself
}
hallowed-baker-22997
05/09/2025, 5:33 PMbreezy-judge-31680
05/10/2025, 3:15 PMbored-vegetable-38523
05/10/2025, 3:24 PMbored-vegetable-38523
05/11/2025, 8:33 AMfamous-ambulance-44173
05/11/2025, 5:59 PMawait vpc.id
bored-vegetable-38523
05/11/2025, 6:13 PMadamant-lawyer-19698
05/11/2025, 6:32 PMfamous-ambulance-44173
05/11/2025, 7:59 PMbored-vegetable-38523
05/12/2025, 7:35 AM