AWS Region - Terraform

Опубликовано: 03 Август 2026
на канале: Ravichandran JV
49
1

AWS Cloudfront Distribution Terraform resource uses a view certificate to assign an acm certificate. Details are beyond the scope of this video which is only meant to demonstrate how using the data resource for getting the current region to deploy the Terraform Configuration is not the right approach because the acm certificate resource can only be deployed to US-East-1 and in this video, I have not provided the provider value to the acm certificate tf resource and so, it goes and tries to deploy the acm certificate to the current region configured in the aws cli which is not US-East-1 but ap-South-1.

A simple example to understand how the data resource aws_region works when no default provider is available nor configured for a resource.