Skip to content

Commit

Permalink
comment logging
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed May 6, 2022
1 parent d96cee2 commit 59a6e97
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion terraform-state/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ No modules.
| [aws_kms_key.tfstate_key](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/kms_key) | resource |
| [aws_s3_bucket.tfstate](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket) | resource |
| [aws_s3_bucket_acl.tfstate](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_acl) | resource |
| [aws_s3_bucket_logging.tfstate](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_logging) | resource |
| [aws_s3_bucket_ownership_controls.tfstate](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_ownership_controls) | resource |
| [aws_s3_bucket_public_access_block.tfstate](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_public_access_block) | resource |
| [aws_s3_bucket_server_side_encryption_configuration.tfstate](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_server_side_encryption_configuration) | resource |
Expand Down
10 changes: 5 additions & 5 deletions terraform-state/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,11 @@ resource "aws_s3_bucket_public_access_block" "tfstate" {
restrict_public_buckets = true
}

resource "aws_s3_bucket_logging" "tfstate" {
bucket = aws_s3_bucket.tfstate.id
target_bucket = var.access_log_bucket
target_prefix = format("%s/%s/", var.access_log_bucket_prefix, local.bucket_name)
}
# resource "aws_s3_bucket_logging" "tfstate" {
# bucket = aws_s3_bucket.tfstate.id
# target_bucket = var.access_log_bucket
# target_prefix = format("%s/%s/", var.access_log_bucket_prefix, local.bucket_name)
# }

resource "aws_s3_bucket_server_side_encryption_configuration" "tfstate" {
bucket = aws_s3_bucket.tfstate.id
Expand Down

0 comments on commit 59a6e97

Please sign in to comment.