Building a cloudfront distribution with an ACM cer...
# general
s
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
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 .