Skip to content

Commit

Permalink
Add an explanatory comment about a manual dependency
Browse files Browse the repository at this point in the history
Co-authored-by: Nick <50747025+mcdonnnj@users.noreply.github.com>
  • Loading branch information
dav3r and mcdonnnj committed Jan 19, 2024
1 parent ca2cb76 commit deea5d0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cognito.tf
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ resource "aws_cognito_managed_user_pool_client" "dmarc" {
name_prefix = "AmazonOpenSearchService-${var.cognito_user_pool_name}"
user_pool_id = aws_cognito_user_pool.dmarc.id

# Since our Cognito user pool client is automatically created by Elasticsearch
# (OpenSearch), we add a manual dependency here to ensure that the
# Elasticsearch (OpenSearch) domain (and the user pool client) is created
# before we create this aws_cognito_managed_user_pool_client resource.
depends_on = [
aws_elasticsearch_domain.es,
]
Expand Down

0 comments on commit deea5d0

Please sign in to comment.