amazon-acm

Terraform AWS ACM certificates in us-east-1 for resources in eu-west-1

≯℡__Kan透↙ 提交于 2021-02-19 02:00:33
问题 I have a terraform module that provisions resources primarily in eu-west-1. I need an ACM certificate to attach to a Cloudfront distribution. The certificate must be provisioned in us-east-1. I have thus configured two providers: provider "aws" { version = "~> 1.0" region = "eu-west-1" } provider "aws" { version = "~> 1.0" region = "us-east-1" alias = "us-east-1" } In my module, I provision the certificate like so: resource "aws_acm_certificate" "cert" { provider = "aws.us-east-1" domain_name