https://pulumi.com logo
#general
Title
# general
s

square-ability-48831

04/18/2019, 7:28 PM
Building a cloudfront distribution with an ACM cert - wondering if it's possible to look up an ACM certificate ARN which is locked to
us-east-1
, but have the distribution live in
us-west-2
. Is there a way to change the region for a bit then switch back for everything else in the code? Not fond of needed to hard-config the cert arn, but that looks like the simplest way? (It's a wildcard cert, so want to be able to use it in any region by lookup)
g

gentle-diamond-70147

04/18/2019, 7:37 PM
Effectively specifying a different region for a single (or set) of resources separately from the others in your app.
Actually the full block is https://github.com/pulumi/examples/blob/master/aws-ts-static-website/index.ts#L88-L95. Creating the us-east-1 provider and then using it with the
{ provider: eastRegion }
on line 95 .