[Terraform]outputから文字列の結合

LINEで送る
Pocket

  • api_gateway.tf
output "id" {
  value = aws_api_gateway_rest_api.hoge.id
}
  • cloudfront.tf
origin {
    domain_name = "${aws_api_gateway_rest_api.hoge.id}.execute-api.ap-northeast-1.amazonaws.com"
}

Api Gatewayのドメインを取る方法。

Was this helpful?

0 / 0

コメントを残す 0

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