Skip to content

Commit

Permalink
feat: mfa and cognito configured
Browse files Browse the repository at this point in the history
  • Loading branch information
andros3 committed Dec 28, 2023
1 parent a6a1553 commit 118d7d4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions cognito_iam.tf
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ resource "aws_cognito_identity_pool_roles_attachment" "roles_attachment" {
for_each = var.role_mapping
content {
ambiguous_role_resolution = try(role_mapping.value["ambiguous_role_resolution"], null)
identity_provider = try(role_mapping.value["identity_provider"],null)
type = try(role_mapping.value["type"], null)
identity_provider = try(role_mapping.value["identity_provider"], null)
type = try(role_mapping.value["type"], null)
}
}
}
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ resource "aws_opensearch_domain" "opensearch" {
for_each = var.inside_vpc ? [1] : []
content {
subnet_ids = var.subnet_ids
security_group_ids = concat(var.sg_ids == "" ? [] : [var.sg_ids], var.create_default_sg == true ? [aws_security_group.es[0].id] : [])
security_group_ids = concat(var.sg_ids == "" ? [] : [var.sg_ids], var.create_default_sg == true ? [aws_security_group.es[0].id] : [])
}
}

Expand Down
16 changes: 8 additions & 8 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -268,20 +268,20 @@ variable "custom_es_cognito_role_name" {
}


variable "allow_unauthenticated_identities"{
variable "allow_unauthenticated_identities" {
type = bool
description = "Allow unauthenticated identities on Cognito Identity Pool"
default = true
default = true
}

variable "role_mapping"{
type = any
variable "role_mapping" {
type = any
description = "Custom role mapping for identity pool role attachment"
default = []
default = []
}

variable "mfa_configuration"{
type = string
variable "mfa_configuration" {
type = string
description = "Multi-Factor Authentication (MFA) configuration for the User Pool"
default = "OFF"
default = "OFF"
}

0 comments on commit 118d7d4

Please sign in to comment.