mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-03-17 22:00:45 -04:00
953 B
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- thekeyof the resource supplied aboveetag- the ETag generated for the object. This is often the MD5 hash of the object, unless you specify your own encryption keys