diff --git a/infrastructure/production.tf b/infrastructure/production.tf index 0c970e75..6b25d752 100644 --- a/infrastructure/production.tf +++ b/infrastructure/production.tf @@ -65,60 +65,60 @@ module "production_frontend" { } } -#module "production_ambar" { -# source = "./ambar/production" -# data_source_identity = { -# "hostname" = module.production_identity.connection_outputs["event_store_proxy_endpoint_domain"] -# "endpoint" = module.production_identity.connection_outputs["event_store_proxy_endpoint"] -# "port" = module.production_identity.connection_outputs["event_store_port"] -# "database" = module.production_identity.connection_outputs["event_store_database_name"] -# "username" = module.production_identity.connection_outputs["event_store_replication_username"] -# "password" = module.production_identity.connection_outputs["event_store_replication_password"] -# "publicationName" = module.production_identity.connection_outputs["event_store_replication_publication_name"] -# "tableName" = module.production_identity.connection_outputs["event_store_table_name"] -# "columns" = "id,event_id,aggregate_id,aggregate_version,causation_id,correlation_id,recorded_on,event_name,json_payload,json_metadata" -# "partitioningColumn" = "correlation_id" -# "serialColumn" = "id" -# } -# data_source_security = { -# "hostname" = module.production_security.connection_outputs["event_store_proxy_endpoint_domain"] -# "endpoint" = module.production_security.connection_outputs["event_store_proxy_endpoint"] -# "port" = module.production_security.connection_outputs["event_store_port"] -# "database" = module.production_security.connection_outputs["event_store_database_name"] -# "username" = module.production_security.connection_outputs["event_store_replication_username"] -# "password" = module.production_security.connection_outputs["event_store_replication_password"] -# "publicationName" = module.production_security.connection_outputs["event_store_replication_publication_name"] -# "tableName" = module.production_security.connection_outputs["event_store_table_name"] -# "columns" = "id,event_id,aggregate_id,aggregate_version,causation_id,correlation_id,recorded_on,event_name,json_payload,json_metadata" -# "partitioningColumn" = "correlation_id" -# "serialColumn" = "id" -# } -# data_source_credit_card_product = { -# "hostname" = module.production_credit_card_product.connection_outputs["event_store_proxy_endpoint_domain"] -# "endpoint" = module.production_credit_card_product.connection_outputs["event_store_proxy_endpoint"] -# "port" = module.production_credit_card_product.connection_outputs["event_store_port"] -# "database" = module.production_credit_card_product.connection_outputs["event_store_database_name"] -# "username" = module.production_credit_card_product.connection_outputs["event_store_replication_username"] -# "password" = module.production_credit_card_product.connection_outputs["event_store_replication_password"] -# "publicationName" = module.production_credit_card_product.connection_outputs["event_store_replication_publication_name"] -# "tableName" = module.production_credit_card_product.connection_outputs["event_store_table_name"] -# "columns" = "id,event_id,aggregate_id,aggregate_version,causation_id,correlation_id,recorded_on,event_name,json_payload,json_metadata" -# "partitioningColumn" = "correlation_id" -# "serialColumn" = "id" -# } -# data_destination_identity = { -# endpoint_prefix: module.production_identity.public_domain -# } -# data_destination_security = { -# endpoint_prefix: module.production_security.public_domain -# } -# data_destination_credit_card_product = { -# endpoint_prefix: module.production_credit_card_product.public_domain -# } -# providers = { -# ambar = ambar.production -# } -#} +module "production_ambar" { + source = "./ambar/production" + data_source_identity = { + "hostname" = module.production_identity.connection_outputs["event_store_proxy_endpoint_domain"] + "endpoint" = module.production_identity.connection_outputs["event_store_proxy_endpoint"] + "port" = module.production_identity.connection_outputs["event_store_port"] + "database" = module.production_identity.connection_outputs["event_store_database_name"] + "username" = module.production_identity.connection_outputs["event_store_replication_username"] + "password" = module.production_identity.connection_outputs["event_store_replication_password"] + "publicationName" = module.production_identity.connection_outputs["event_store_replication_publication_name"] + "tableName" = module.production_identity.connection_outputs["event_store_table_name"] + "columns" = "id,event_id,aggregate_id,aggregate_version,causation_id,correlation_id,recorded_on,event_name,json_payload,json_metadata" + "partitioningColumn" = "correlation_id" + "serialColumn" = "id" + } + data_source_security = { + "hostname" = module.production_security.connection_outputs["event_store_proxy_endpoint_domain"] + "endpoint" = module.production_security.connection_outputs["event_store_proxy_endpoint"] + "port" = module.production_security.connection_outputs["event_store_port"] + "database" = module.production_security.connection_outputs["event_store_database_name"] + "username" = module.production_security.connection_outputs["event_store_replication_username"] + "password" = module.production_security.connection_outputs["event_store_replication_password"] + "publicationName" = module.production_security.connection_outputs["event_store_replication_publication_name"] + "tableName" = module.production_security.connection_outputs["event_store_table_name"] + "columns" = "id,event_id,aggregate_id,aggregate_version,causation_id,correlation_id,recorded_on,event_name,json_payload,json_metadata" + "partitioningColumn" = "correlation_id" + "serialColumn" = "id" + } + data_source_credit_card_product = { + "hostname" = module.production_credit_card_product.connection_outputs["event_store_proxy_endpoint_domain"] + "endpoint" = module.production_credit_card_product.connection_outputs["event_store_proxy_endpoint"] + "port" = module.production_credit_card_product.connection_outputs["event_store_port"] + "database" = module.production_credit_card_product.connection_outputs["event_store_database_name"] + "username" = module.production_credit_card_product.connection_outputs["event_store_replication_username"] + "password" = module.production_credit_card_product.connection_outputs["event_store_replication_password"] + "publicationName" = module.production_credit_card_product.connection_outputs["event_store_replication_publication_name"] + "tableName" = module.production_credit_card_product.connection_outputs["event_store_table_name"] + "columns" = "id,event_id,aggregate_id,aggregate_version,causation_id,correlation_id,recorded_on,event_name,json_payload,json_metadata" + "partitioningColumn" = "correlation_id" + "serialColumn" = "id" + } + data_destination_identity = { + endpoint_prefix: module.production_identity.public_domain + } + data_destination_security = { + endpoint_prefix: module.production_security.public_domain + } + data_destination_credit_card_product = { + endpoint_prefix: module.production_credit_card_product.public_domain + } + providers = { + ambar = ambar.production + } +} output "production_backend_connection_outputs" { value = {