rhythmic-branch-12845
11/27/2022, 12:51 PMNone
instead? I’m seeing that at the command line, pulumi has no issues with `pulumi config get aws:region`… so I try to do the same with config.get('aws:region')
, but for some reason I get None
(verified using print()
)pulumi.Config()
for aws:region
future-france-34957
11/28/2022, 2:07 PMpulumi_aws
also:
# Set Region
aws_region = str(pulumi_aws.get_region().name)
rhythmic-branch-12845
11/28/2022, 3:05 PMpulumi_aws.get_region()
as an input to another resource. But now I see that there's also .get_region_output
as well, which may work for what I need the region string for. I'm afk right now, but will definitely try this when i get backfuture-france-34957
11/28/2022, 4:56 PMrhythmic-branch-12845
11/28/2022, 7:52 PMpulumi_aws.get_region().name
. The crucial bit that was missing for me was the .name
🤦♂️
It looks from https://www.pulumi.com/registry/packages/aws/api-docs/getregion/ that .name
is already a `str`; you shouldnt need to str(...)
it