title: How to obtain AWS certificate from different region in terraform?
body: <p>I'm trying to deploy AWS CloudFront distribution in <code>eu-central-1</code> that will have a custom certificate set. Here's the relevant code excerpt:</p>
  
  <pre><code>data "aws_acm_certificate" "my_cert" {
    domain   = "*.example.com"
    statuses = ["ISSUED"]
  }
  
  resource "aws_cloudfront_distribution" "static_content" {
    origin {
      domain_name = aws_s3_bucket.test.bucket_domain_name
      origin_id   = local.s3_origin_id
    }
  
    viewer_certificate {
      acm_certificate_arn = data.aws_acm_certificate.my_cert.arn
    }
  
    ...
  }
  </code></pre>
  
  <p>The terraform <a href="https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#viewer-certificate-arguments" rel="nofollow noreferrer">doc says</a>:</p>
  
  <blockquote>
    <p><code>acm_certificate_arn</code> - The ARN of the AWS Certificate Manager certificate that you wish to use with this distribution. Specify this, cloudfront_default_certificate, or iam_certificate_id. <strong>The ACM certificate must be in US-EAST-1</strong>.</p>
  </blockquote>
  
  <p>In the AWS Console I can see the certificate ARN contains <code>us-east-1</code> in it. But when I debug the <code>data.aws_acm_certificate.my_cert</code> the ARN contains <code>eu-central-1</code>.</p>
  
  <p>Is there a way how to get the ARN of the <code>us-east-1</code> cert while deploying CloudFront anywhere else?</p>