github.com/atsaki/terraform@v0.4.3-0.20150919165407-25bba5967654/website/source/docs/providers/aws/r/s3_bucket_object.html.markdown (about)

     1  ---
     2  layout: "aws"
     3  page_title: "AWS: aws_s3_bucket_object"
     4  side_bar_current: "docs-aws-resource-s3-bucket-object"
     5  description: |-
     6    Provides a S3 bucket object resource.
     7  ---
     8  
     9  # aws\_s3\_bucket\_object
    10  
    11  Provides a S3 bucket object resource.
    12  
    13  ## Example Usage
    14  
    15  ### Uploading a file to a bucket
    16  
    17  ```
    18  resource "aws_s3_bucket_object" "object" {
    19  	bucket = "your_bucket_name"
    20  	key = "new_object_key"
    21  	source = "path/to/file"
    22  }
    23  ```
    24  
    25  ## Argument Reference
    26  
    27  The following arguments are supported:
    28  
    29  * `bucket` - (Required) The name of the bucket to put the file in.
    30  * `key` - (Required) The name of the object once it is in the bucket.
    31  * `source` - (Required) The path to the source file being uploaded to the bucket.
    32  
    33  ## Attributes Reference
    34  
    35  The following attributes are exported
    36  
    37  * `id` - the `key` of the resource supplied above
    38  * `etag` - the ETag generated for the object. This is often the MD5 hash of the
    39  object, unless you specify your own encryption keys