File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,8 @@ No modules.
3636| [ aws_s3_bucket_ownership_controls.www_bucket] ( https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_ownership_controls ) | resource |
3737| [ aws_s3_bucket_policy.www_bucket] ( https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_policy ) | resource |
3838| [ aws_s3_bucket_public_access_block.www_bucket] ( https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_public_access_block ) | resource |
39+ | [ aws_s3_bucket_server_side_encryption_configuration.www_bucket] ( https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_server_side_encryption_configuration ) | resource |
40+ | [ aws_s3_bucket_versioning.www_bucket] ( https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_versioning ) | resource |
3941| [ aws_s3_bucket_website_configuration.www_bucket] ( https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_website_configuration ) | resource |
4042| [ aws_s3_object.images] ( https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_object ) | resource |
4143| [ aws_s3_object.index] ( https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_object ) | resource |
Original file line number Diff line number Diff line change @@ -77,6 +77,22 @@ data "aws_iam_policy_document" "s3_public_access_policy" {
7777 }
7878}
7979
80+ resource "aws_s3_bucket_server_side_encryption_configuration" "www_bucket" {
81+ bucket = aws_s3_bucket. www_bucket . id
82+ rule {
83+ apply_server_side_encryption_by_default {
84+ sse_algorithm = " AES256"
85+ }
86+ }
87+ }
88+
89+ resource "aws_s3_bucket_versioning" "www_bucket" {
90+ bucket = aws_s3_bucket. www_bucket . id
91+ versioning_configuration {
92+ status = " Enabled"
93+ }
94+ }
95+
8096resource "random_integer" "product" {
8197 min = 0
8298 max = length (local. hashi_products ) - 1
You can’t perform that action at this time.
0 commit comments