Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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. |