github.com/nevins-b/terraform@v0.3.8-0.20170215184714-bbae22007d5a/website/source/docs/providers/aws/d/partition.html.markdown (about) 1 --- 2 layout: "aws" 3 page_title: "AWS: aws_partition" 4 sidebar_current: "docs-aws-datasource-partition" 5 description: |- 6 Get AWS partition identifier 7 --- 8 9 # aws\_partition 10 11 Use this data source to lookup current AWS partition in which Terraform is working 12 13 ## Example Usage 14 15 ``` 16 data "aws_partition" "current" { } 17 18 data "aws_iam_policy_document" "s3_policy" { 19 statement { 20 sid = "1" 21 22 actions = [ 23 "s3:ListBucket", 24 ] 25 26 resources = [ 27 "arn:${data.aws_partition.current.partition}:s3:::my-bucket", 28 ] 29 } 30 } 31 32 ``` 33 34 ## Argument Reference 35 36 There are no arguments available for this data source. 37 38 ## Attributes Reference 39 40 `partition` is set to the identifier of the current partition.