Files
opentf/website/source/docs/providers/aws/r/s3_bucket_object.html.markdown
Clint Shryock f6bad310ee update docs
2015-07-30 15:17:16 -05:00

953 B

layout, page_title, side_bar_current, description
layout page_title side_bar_current description
aws AWS: aws_s3_bucket_object docs-aws-resource-s3-bucket-object Provides a S3 bucket object resource.

aws_s3_bucket_object

Provides a S3 bucket object resource.

Example Usage

Uploading a file to a bucket

resource "aws_s3_bucket_object" "object" {
	bucket = "your_bucket_name"
	key = "new_object_key"
	source = "path/to/file"
}

Argument Reference

The following arguments are supported:

  • bucket - (Required) The name of the bucket to put the file in.
  • key - (Required) The name of the object once it is in the bucket.
  • source - (Required) The path to the source file being uploaded to the bucket.

Attributes Reference

The following attributes are exported

  • id - the key of the resource supplied above
  • etag - the ETag generated for the object. This is often the MD5 hash of the object, unless you specify your own encryption keys