Files
opentf/website/source/docs/providers/aws/d/partition.html.markdown
Clint a3ae38d1bb docs: Update AWS Data Source docs to have HCL formatted examples (#13467)
* docs: update AWS examples. Disntinguish between alb and alb listener datasource

* more hcl highlighting

* more hcl

* fix missing end quote in docs

* docs: finish updates to AWS data source highlights

Also updates layout to distinguish some resources
2017-04-07 10:54:28 -05:00

40 lines
704 B
Markdown

---
layout: "aws"
page_title: "AWS: aws_partition"
sidebar_current: "docs-aws-datasource-partition"
description: |-
Get AWS partition identifier
---
# aws\_partition
Use this data source to lookup current AWS partition in which Terraform is working
## Example Usage
```hcl
data "aws_partition" "current" {}
data "aws_iam_policy_document" "s3_policy" {
statement {
sid = "1"
actions = [
"s3:ListBucket",
]
resources = [
"arn:${data.aws_partition.current.partition}:s3:::my-bucket",
]
}
}
```
## Argument Reference
There are no arguments available for this data source.
## Attributes Reference
`partition` is set to the identifier of the current partition.