refined-terabyte-65361
07/27/2021, 12:45 AMlittle-cartoon-10569
07/27/2021, 12:48 AMvar bar = new pulumi.Config("foo").require("bar");
new Config()
.refined-terabyte-65361
07/27/2021, 12:53 AMconfig:
aws:region: us-west-2
so i was trying to create a resource which is region specific so instead of hardcoding i am trying to use the region varred-match-15116
07/27/2021, 12:54 AMfoo
with aws
and bar
with region
gets you what you want.little-cartoon-10569
07/27/2021, 12:59 AMaws:region
config value is used automatically.refined-terabyte-65361
07/27/2021, 1:04 AMconfig:
aws:region: us-west-2
ecr:env: dev
when i try to access it throws error
var env = new pulumi.Config("ecr").require("env");
const ecr = ecr("registry/${env}/alpine");
expecting
const ecr = ecr("registry/dev/alpine");
error: 1 error occurred:
* error creating ECR repository: InvalidParameterException: Invalid parameter at 'repositoryName' failed to satisfy constraint: 'must satisfy regular expression '(?:[a-z0-9]+(?:[._-][a-z0-9]+)*/)*[a-z0-9]+(?:[._-][a-z0-9]+)*''
`registry/${env}/alpine`
what is the difference between " and ` ?red-match-15116
07/27/2021, 1:16 AM