FEATURES OPEN SOURCE ABOUT DOCS LOGIN REGISTER

aws_region

aws_region provides details about a specific AWS region.

As well as validating a given region name (and optionally obtaining its endpoint) this resource can be used to discover the name of the region configured within the provider. The latter can be useful in a child module which is inheriting an AWS provider configuration from its parent module.

Example Usage

The following example shows how the resource might be used to obtain the name of the AWS region configured on the provider.

data "aws_region" "current" {
  current = true
}

Argument Reference

The arguments of this data source act as filters for querying the available regions. The given filters must match exactly one region whose data will be exported as attributes.

At least one of the above attributes should be provided to ensure that only one region is matched.

Attributes Reference

The following attributes are exported:


See the source of this document at Terraform.io