-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from ambarltd/latest
Latest Ambar API changes
- Loading branch information
Showing
15 changed files
with
134 additions
and
159 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,46 @@ | ||
resource "ambar_data_source" "example_data_source" { | ||
data_source_type = "postgres" | ||
description = "My Terraform DataSource" | ||
partitioning_column = "partition" | ||
serial_column = "serial" | ||
username = "username" | ||
password = "password" | ||
data_source_type = "postgres" | ||
description = "My Terraform Postgres DataSource" | ||
# data_source_config key-values depend on the type of DataSource being created. | ||
# See Ambar docs for more details. | ||
data_source_config = { | ||
"hostname" : "host", | ||
"hostPort" : "5432", | ||
"username" : "username", | ||
"password" : "password" | ||
"databaseName" : "postgres", | ||
"tableName" : "events", | ||
"publicationName" : "example_pub", | ||
"partitioningColumn" : "partition", | ||
"serialColumn" : "serial", | ||
# columns should include all columns to be read from the database | ||
# including the partition and serial columns | ||
"columns" : "partition,serial,some,other,column" | ||
"columns" : "partition,serial,some,other,column", | ||
# tls termination override is optional | ||
"tlsTerminationOverrideHost" : "tls.termination.host" | ||
} | ||
} | ||
|
||
resource "ambar_data_source" "example_mysql_data_source" { | ||
data_source_type = "mysql" | ||
description = "My Terraform MySQL DataSource" | ||
# data_source_config key-values depend on the type of DataSource being created. | ||
# See Ambar docs for more details. | ||
data_source_config = { | ||
"hostname" : "host", | ||
"hostPort" : "5432", | ||
"username" : "username", | ||
"password" : "password" | ||
"databaseName" : "postgres", | ||
"tableName" : "events", | ||
"publicationName" : "example_pub", | ||
"partitioningColumn" : "partition", | ||
"incrementingColumn" : "incrementing", | ||
# columns should include all columns to be read from the database | ||
# including the partition and incrementing columns | ||
"columns" : "partition,incrementing,some,other,column", | ||
"binLogReplicationServerId" : 1001, | ||
# tls termination override is optional | ||
"tlsTerminationOverrideHost" : "tls.termination.host" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.