From 7061cd396b7a05a2fc3ab9605af4616a99055171 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrei=20Ioni=C8=9B=C4=83?= Date: Tue, 5 Dec 2023 11:34:16 +0000 Subject: [PATCH 1/2] infra: incorporate manual changes (#262) * infra: incorporate manual changes * wip --- terraform/cognito.tf | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/terraform/cognito.tf b/terraform/cognito.tf index 1d670ba1..d325ff17 100644 --- a/terraform/cognito.tf +++ b/terraform/cognito.tf @@ -1,5 +1,4 @@ # TODO: -# - custom_domain # - sms_configuration resource "aws_cognito_user_pool" "pool" { @@ -14,11 +13,15 @@ resource "aws_cognito_user_pool" "pool" { "phone_number", ] + auto_verified_attributes = [ + "email", + ] + username_configuration { case_sensitive = false } - mfa_configuration = "ON" + mfa_configuration = "OFF" sms_authentication_message = "Your verification code is {####}." verification_message_template { @@ -28,12 +31,12 @@ resource "aws_cognito_user_pool" "pool" { sms_message = "Your verification code is {####}. " } - software_token_mfa_configuration { - enabled = true - } + # software_token_mfa_configuration { + # enabled = true + # } admin_create_user_config { - allow_admin_create_user_only = true + allow_admin_create_user_only = false invite_message_template { email_message = "Your username is {username} and temporary password is {####}. " From 19199e711a312fbc8cb8bbedeca29759d3c23270 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrei=20Ioni=C8=9B=C4=83?= Date: Tue, 5 Dec 2023 11:42:31 +0000 Subject: [PATCH 2/2] infra: remove s3 acl --- terraform/s3.tf | 4 ---- 1 file changed, 4 deletions(-) diff --git a/terraform/s3.tf b/terraform/s3.tf index 51c96c1a..a876f2e9 100644 --- a/terraform/s3.tf +++ b/terraform/s3.tf @@ -4,10 +4,6 @@ module "s3_bucket_files" { bucket = "${local.namespace}-files" - control_object_ownership = true - object_ownership = "BucketOwnerPreferred" - acl = "public-read" - block_public_acls = true block_public_policy = true ignore_public_acls = true