https://pulumi.com logo
Title
b

bulky-painting-12886

11/24/2021, 12:44 PM
hello good people, I've stumbled on that cloudfront-certificate-must-be-in-us issue. Basically, my infrastructure is in europe
eu-central-1
, and I need to attach a certificate to cloudfront, which requires the certificate to be in
us-east-1
. I've solved this issue creating a dedicate stack for it and exporting the certificate's arn. But I wonder if it is the recommended way . Wonder if I can programmatically (and without many hacks) create the certificate in us while my stack is in europe.
b

brave-planet-10645

11/24/2021, 1:15 PM
Yes you can. You can use an "explicit provider" and then pass that into your certificate resource. Docs ahre here: https://www.pulumi.com/docs/intro/concepts/resources/#explicit-provider-configuration There's an example in the above link that does exactly what you want with the certificate
b

bulky-painting-12886

11/24/2021, 1:38 PM
oooooh, thank you very much 😄