sparse-intern-71089
12/07/2023, 10:08 AMdry-keyboard-94795
12/07/2023, 10:14 AMgreat-sunset-355
12/07/2023, 2:05 PMget_<resource>
functions with the parameters known from the library.
This way you can have constant eg. AWS_ROLE_NAME=myRole
and then you can
const role = aws.iam.getRole(AWS_ROLE_NAME)
role.arn
The benefit of this approach is sharing more complex objects is easier.
Also prevents outdated stack referencesdry-keyboard-94795
12/07/2023, 2:08 PM.get
method to load the rest of the data for the stack to usegreat-sunset-355
12/07/2023, 2:12 PM<Resource>.get
method it is very different from get_<resource>
and can lead to side effectsdry-keyboard-94795
12/07/2023, 2:13 PM