Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vishallas/terraform-module-s3
Terraform module for AWS S3 bucket creation.
https://github.com/vishallas/terraform-module-s3
aws-s3 terraform terraform-modules
Last synced: 19 days ago
JSON representation
Terraform module for AWS S3 bucket creation.
- Host: GitHub
- URL: https://github.com/vishallas/terraform-module-s3
- Owner: Vishallas
- Created: 2024-01-26T17:40:58.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-01-27T04:57:28.000Z (12 months ago)
- Last Synced: 2024-12-21T01:40:32.349Z (19 days ago)
- Topics: aws-s3, terraform, terraform-modules
- Language: HCL
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# S3 module
Creating S3 buckets with differnent configurations.
## Usage
### Private bucket with versioning enabled
```
module "s3_bucket" {
source = "github.com/vishallas/terraform-module-s3"
bucket = "my-s3-bucket"
acl = "private"
versioning = true
}
```## Inputs
| Name | Description | Type | Default | Required |
|-------------------|-----------------------|-----------|-------------|--------------|
| bucket | A globally unique name for bucket| `string` | null | yes |
| acl | The canned ACL to apply. Valid values are `private`, `public-read`, `public-read-write`and ` aws-exec-read`. Defaults value will be private. | `string` | `private` | no |
| versioning | To enable the bucket versioning. Valid value are `true` and default `false`. | `bool` | `false` | no |## ouputs
| Name | Description |
|-----------|-------------------|
| bucket_arn | The arn of the bucket. |
| bucket_domain_name | The domain name of the bucket. |
| bucket_id | The name of the bucket. |