github.com/nathanielks/terraform@v0.6.1-0.20170509030759-13e1a62319dc/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  ```hcl
    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  ## Argument Reference
    34  
    35  There are no arguments available for this data source.
    36  
    37  ## Attributes Reference
    38  
    39  `partition` is set to the identifier of the current partition.