TerraformでACMをバージニアで取得する

LINEで送る
Pocket

CloudFront使いたい場合

  • backend.tf
# 追加
provider "aws" {
  alias = "virginia"
  region = "us-east-1"
  profile = "hoge-terraform"
  version = "= x.xx.x"
}

  • acm.tf
resource "aws_acm_certificate" "hoge" {
  provider          = "aws.virginia"
  domain_name               = "hoge.com"
  subject_alternative_names = ["*.hoge.com"]
  validation_method         = "DNS"

  tags = {
    Environment = "hoge"
  }

  lifecycle {
    create_before_destroy = true
  }
}

 

Was this helpful?

0 / 0

コメントを残す 0

Your email address will not be published. Required fields are marked *