aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/s3_state/main.tf
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-08-04 14:34:42 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-08-04 14:34:42 +0200
commit3f3d1d6f313333cd3b626b4b8b3f38c4827b541d (patch)
treeb394fc59362839ea9853bbce6ab51b26c8565aaf /s3_state/main.tf
parentimport a couple of Yandex Cloud moduels (diff)
downloadinfra-terraform-3f3d1d6f313333cd3b626b4b8b3f38c4827b541d.tar.gz
infra-terraform-3f3d1d6f313333cd3b626b4b8b3f38c4827b541d.zip
s3_state -> aws/statev0.0.3
Diffstat (limited to 's3_state/main.tf')
-rw-r--r--s3_state/main.tf44
1 files changed, 0 insertions, 44 deletions
diff --git a/s3_state/main.tf b/s3_state/main.tf
deleted file mode 100644
index 1190892..0000000
--- a/s3_state/main.tf
+++ /dev/null
@@ -1,44 +0,0 @@
-resource "aws_s3_bucket" "state" {
- bucket = var.bucket_name
-
- lifecycle {
- prevent_destroy = true
- }
-}
-
-resource "aws_s3_bucket_versioning" "default" {
- bucket = aws_s3_bucket.state.id
-
- versioning_configuration {
- status = "Enabled"
- }
-}
-
-resource "aws_s3_bucket_server_side_encryption_configuration" "default" {
- bucket = aws_s3_bucket.state.id
-
- rule {
- apply_server_side_encryption_by_default {
- sse_algorithm = "AES256"
- }
- }
-}
-
-resource "aws_s3_bucket_public_access_block" "default" {
- bucket = aws_s3_bucket.state.id
- block_public_acls = true
- block_public_policy = true
- ignore_public_acls = true
- restrict_public_buckets = true
-}
-
-resource "aws_dynamodb_table" "locks" {
- name = var.dynamodb_table_name
- billing_mode = "PAY_PER_REQUEST"
- hash_key = "LockID"
-
- attribute {
- name = "LockID"
- type = "S"
- }
-}