sparse-intern-71089
02/02/2023, 5:15 PMminiature-musician-31262
02/02/2023, 5:31 PMuri
property? Where is ${region}
coming from?miniature-musician-31262
02/02/2023, 5:31 PMclever-market-90633
02/02/2023, 5:31 PMconst region = config.get("aws:region");
clever-market-90633
02/02/2023, 5:32 PMpulumi.interpolate
miniature-musician-31262
02/02/2023, 5:33 PMminiature-musician-31262
02/02/2023, 5:35 PMregion
, you’ll get something like undefined
miniature-musician-31262
02/02/2023, 5:36 PMminiature-musician-31262
02/02/2023, 5:36 PMminiature-musician-31262
02/02/2023, 5:37 PMclever-market-90633
02/02/2023, 5:38 PMpulumi up
fail on other resources that use region
too?miniature-musician-31262
02/02/2023, 5:45 PM@pulumi/aws
) will generally read that value correctly, whether from your stack config file or from your shell environment, so your deployment will generally be fine. But if you want to use that value within your program code as well, you need to read it by passing the “namespace” (in this case aws
) to a new Config instance and reading the region
setting with that instance.clever-market-90633
02/02/2023, 5:46 PMconfig.get
to config.requeir
and pulumi up
failed... thank you very much for the helpminiature-musician-31262
02/02/2023, 5:47 PMminiature-musician-31262
02/02/2023, 5:48 PMundefined
when you try to use it in a string (for that ARN), but you should be able to use the config thing I mentioned to address that.miniature-musician-31262
02/02/2023, 5:49 PMclever-market-90633
02/02/2023, 5:51 PMminiature-musician-31262
02/02/2023, 5:59 PM