Skip to content

Commit

Permalink
DEMO-0 Initial commit of the S3 bucket module
Browse files Browse the repository at this point in the history
  • Loading branch information
vibhuyadav committed Aug 8, 2022
1 parent 0228a0c commit 1aad969
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 1 deletion.
28 changes: 27 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,27 @@
# terraform-aws-s3
AWS S3 Terraform Module
===========

A terraform module to create a S3 bucket in AWS.

Module Input Variables
----------------------

- `bucket_name` - (Required) Name of the bucket


Usage
-----

```hcl
module "my_s3_bucket" {
source = "./modules/terraform-aws-s3"
name = "my-bucket-name"
}
```


Outputs
=======

- `bucket_name` - The name of the bucket.
3 changes: 3 additions & 0 deletions outputs.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
output "bucket_name" {
value = aws_s3_bucket.aws_s3_bucket.bucket
}
3 changes: 3 additions & 0 deletions s3.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
resource "aws_s3_bucket" "aws_s3_bucket" {
bucket = var.bucket_name
}
3 changes: 3 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
variable "bucket_name" {
description = "The name of the S3 bucket"
}

0 comments on commit 1aad969

Please sign in to comment.