Skip to content

Commit

Permalink
feat(modules/simple_storage): add simple Storage module (#12)
Browse files Browse the repository at this point in the history
* feat(modules/simple_storage): add simple Storage module

* terraform-docs: automated action

---------

Co-authored-by: Felipe Valdivia Vivar <fvaldivia@zencored.dev>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Nov 9, 2023
1 parent d33596a commit 79f1cc2
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 0 deletions.
35 changes: 35 additions & 0 deletions modules/simple_storage/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<!-- BEGIN_TF_DOCS -->
## Requirements

| Name | Version |
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >=0.13.0 |
| <a name="requirement_google"></a> [google](#requirement\_google) | ~> 4.28 |
| <a name="requirement_google-beta"></a> [google-beta](#requirement\_google-beta) | ~> 4.28 |

## Providers

| Name | Version |
|------|---------|
| <a name="provider_google"></a> [google](#provider\_google) | ~> 4.28 |

## Modules

No modules.

## Resources

| Name | Type |
|------|------|
| [google_storage_bucket.auto-expire](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/storage_bucket) | resource |

## Inputs

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| <a name="input_bucket_name"></a> [bucket\_name](#input\_bucket\_name) | The name of the bucket to create | `string` | n/a | yes |

## Outputs

No outputs.
<!-- END_TF_DOCS -->
7 changes: 7 additions & 0 deletions modules/simple_storage/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
resource "google_storage_bucket" "auto-expire" {
name = var.bucket_name
location = "US"
force_destroy = true

public_access_prevention = "enforced"
}
4 changes: 4 additions & 0 deletions modules/simple_storage/variables.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
variable "bucket_name" {
type = string
description = "The name of the bucket to create"
}
14 changes: 14 additions & 0 deletions modules/simple_storage/versions.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
terraform {
required_version = ">=0.13.0"
required_providers {
google = {
source = "hashicorp/google"
version = "~> 4.28"
}
google-beta = {
source = "hashicorp/google-beta"
version = "~> 4.28"
}

}
}

0 comments on commit 79f1cc2

Please sign in to comment.