Skip to content

Commit

Permalink
Restore Ambar
Browse files Browse the repository at this point in the history
  • Loading branch information
galeaspablo committed Oct 3, 2024
1 parent 75e173d commit c0a9e80
Showing 1 changed file with 54 additions and 54 deletions.
108 changes: 54 additions & 54 deletions infrastructure/production.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit c0a9e80

Please sign in to comment.