added documentation
This commit is contained in:
parent
9a8625e6a6
commit
3eceddc34d
|
@ -0,0 +1,36 @@
|
|||
---
|
||||
layout: "aws"
|
||||
page_title: "AWS: aws_s3_bucket_object"
|
||||
side_bar_current: "docs-aws-resource-s3-bucket-object"
|
||||
description: |-
|
||||
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 id of the resource corresponds to the ETag of the bucket object on aws.
|
Loading…
Reference in New Issue