Terraform module to create S3 bucket on AWS
module "s3_bucket" {
source = "git@github.com:devopswhizz/terraform-aws-s3.git"
s3_name = "${var.s3_name}"
aws_account_id = "${var.aws_account_id}"
aws_username = "${var.aws_username}"
versioning = "${var.versioning}"
tags = {
ManagedBy = "Terraform"
Environment = "stage"
Project = "DevOpsWhizz"
}
}
module "s3_bucket" {
source = "git@github.com:devopswhizz/terraform-aws-s3.git"
s3_name = "${var.s3_name}"
aws_account_id = "${var.aws_account_id}"
aws_username = "${var.aws_username}"
versioning = "${var.versioning}"
allow_public = "true"
tags = {
ManagedBy = "Terraform"
Environment = "stage"
Project = "DevOpsWhizz"
}
}
Name | Description | Type | Default | Required |
---|---|---|---|---|
allow_public | Allow public read access to bucket | string | false |
no |
aws_account_id | AWS Account Id | string | - | yes |
aws_username | AWS Username | string | - | yes |
create_bucket | Conditionally create S3 bucket | string | true |
no |
loggingBucket | The bucket you want to log S3 access to. | string | `` | no |
s3_name | Name for s3 bucket | string | - | yes |
tags | A mapping of tags to assign to bucket | map | <map> |
no |
versioning | Enable Versioning of S3 | string | false |
no |