Skip to content

Commit

Permalink
Update resource descriptions with github repository name
Browse files Browse the repository at this point in the history
  • Loading branch information
galeaspablo committed Mar 13, 2024
1 parent 534a50b commit c621cd1
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 13 deletions.
5 changes: 2 additions & 3 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,10 @@ streaming applications. First, you deployed two data streaming applications by u
Second, you added features to your applications, by using Ambar to connect existing `data sources` to two new
`data destinations`.

In **just minutes, you deployed applications that processed streams of events in real time, with zero errors**. All
**In just minutes, you deployed applications that processed streams of events in real time, with zero errors**. All
of this without a single line of code that wasn't business logic. This just scratches the surface of what Ambar
is capable of. If you're interested in learning more about how Ambar can help your business benefit from real time,
error free data streaming,
let the Ambar team know.
error free data streaming, let the Ambar team know.



Expand Down
10 changes: 5 additions & 5 deletions terraform/ambar_credit_card.tf
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
/*
resource "ambar_filter" "credit_card_transactions" {
data_source_id = ambar_data_source.credit_card_events.resource_id
description = "Credit Card Transactions"
description = "Credit Card Transactions ${var.github_repository}"
filter_contents = "lookup(\"event_type\") == \"transaction\""
}
resource "ambar_data_destination" "credit_card_fraud_review" {
filter_ids = [
ambar_filter.credit_card_transactions.resource_id,
]
description = "Credit Card - Review For Fraud"
description = "Credit Card - Review For Fraud ${var.github_repository}"
destination_endpoint = "https://${local.destination_domain}/credit_card/destination/fraud_review"
username = local.destination_username
password = local.destination_password
Expand All @@ -19,7 +19,7 @@ resource "ambar_data_destination" "credit_card_fraud_review" {

resource "ambar_data_source" "credit_card_events" {
data_source_type = "postgres"
description = "Credit Card Events"
description = "Credit Card Events ${var.github_repository}"

data_source_config = {
"hostname" : local.postgres_source_host,
Expand All @@ -37,15 +37,15 @@ resource "ambar_data_source" "credit_card_events" {

resource "ambar_filter" "all_credit_card_events" {
data_source_id = ambar_data_source.credit_card_events.resource_id
description = "All Credit Card Events"
description = "All Credit Card Events ${var.github_repository}"
filter_contents = "true"
}

resource "ambar_data_destination" "credit_card_all_events" {
filter_ids = [
ambar_filter.all_credit_card_events.resource_id,
]
description = "Credit Card - All Events"
description = "Credit Card - All Events ${var.github_repository}"
destination_endpoint = "https://${local.destination_domain}/credit_card/destination/all_events"
username = local.destination_username
password = local.destination_password
Expand Down
10 changes: 5 additions & 5 deletions terraform/ambar_shipping.tf
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
/*
resource "ambar_filter" "shipping_returns" {
data_source_id = ambar_data_source.shipping_events.resource_id
description = "Shipping Returns"
description = "Shipping Returns ${var.github_repository}"
filter_contents = "lookup(\"event_type\") == \"shipment_returned\""
}
resource "ambar_data_destination" "shipping_return_review" {
filter_ids = [
ambar_filter.shipping_returns.resource_id,
]
description = "Shipping - Review Return"
description = "Shipping - Review Return ${var.github_repository}"
destination_endpoint = "https://${local.destination_domain}/shipping/destination/returns_review"
username = local.destination_username
password = local.destination_password
Expand All @@ -19,7 +19,7 @@ resource "ambar_data_destination" "shipping_return_review" {

resource "ambar_data_source" "shipping_events" {
data_source_type = "postgres"
description = "Shipping Events"
description = "Shipping Events ${var.github_repository}"

data_source_config = {
"hostname" : local.postgres_source_host,
Expand All @@ -37,15 +37,15 @@ resource "ambar_data_source" "shipping_events" {

resource "ambar_filter" "all_shipping_events" {
data_source_id = ambar_data_source.shipping_events.resource_id
description = "All Shipping Events"
description = "All Shipping Events ${var.github_repository}"
filter_contents = "true"
}

resource "ambar_data_destination" "shipping_all_events" {
filter_ids = [
ambar_filter.all_shipping_events.resource_id,
]
description = "Shipping - All Events"
description = "Shipping - All Events ${var.github_repository}"
destination_endpoint = "https://${local.destination_domain}/shipping/destination/all_events"
username = local.destination_username
password = local.destination_password
Expand Down
4 changes: 4 additions & 0 deletions terraform/config.tf
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ variable secret_in_base_64 {
type = string
}

variable github_repository {
type = string
}

locals {
secret = jsondecode(base64decode(var.secret_in_base_64))
}
Expand Down

0 comments on commit c621cd1

Please sign in to comment.