From ce61f5f562a2c34180becc74d4d5f28ba0840a1f Mon Sep 17 00:00:00 2001 From: pranshi06 <85474619+pranshi06@users.noreply.github.com> Date: Tue, 3 Dec 2024 18:44:13 +0530 Subject: [PATCH] add latest behaviour version to the aws client (#13) * add latest behaviour version to the aws client * update release version to v0.1.1 --------- Co-authored-by: py --- Cargo.lock | 14 +++++++------- Cargo.toml | 2 +- changelog.md | 4 ++-- crates/configuration/src/version1.rs | 3 ++- crates/ndc-dynamodb/src/state.rs | 1 + nix/app.nix | 2 +- 6 files changed, 14 insertions(+), 12 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 9415e12..87d3df2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1775,7 +1775,7 @@ dependencies = [ [[package]] name = "ndc-dynamodb" -version = "0.1.0" +version = "0.1.1" dependencies = [ "anyhow", "async-trait", @@ -1800,7 +1800,7 @@ dependencies = [ [[package]] name = "ndc-dynamodb-cli" -version = "0.1.0" +version = "0.1.1" dependencies = [ "anyhow", "build-data", @@ -1817,7 +1817,7 @@ dependencies = [ [[package]] name = "ndc-dynamodb-configuration" -version = "0.1.0" +version = "0.1.1" dependencies = [ "anyhow", "aws-config", @@ -2399,7 +2399,7 @@ checksum = "106dd99e98437432fed6519dedecfade6a06a73bb7b2a1e019fdd2bee5778d94" [[package]] name = "query-engine-execution" -version = "0.1.0" +version = "0.1.1" dependencies = [ "aws-config", "aws-sdk-dynamodb", @@ -2417,7 +2417,7 @@ dependencies = [ [[package]] name = "query-engine-metadata" -version = "0.1.0" +version = "0.1.1" dependencies = [ "ndc-models", "schemars", @@ -2427,7 +2427,7 @@ dependencies = [ [[package]] name = "query-engine-sql" -version = "0.1.0" +version = "0.1.1" dependencies = [ "ndc-models", "schemars", @@ -2438,7 +2438,7 @@ dependencies = [ [[package]] name = "query-engine-translation" -version = "0.1.0" +version = "0.1.1" dependencies = [ "anyhow", "indexmap 2.6.0", diff --git a/Cargo.toml b/Cargo.toml index 6b30552..3baa70e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [workspace] resolver= "2" -package.version = "0.1.0" +package.version = "0.1.1" package.edition = "2021" package.license = "Apache-2.0" diff --git a/changelog.md b/changelog.md index 5e1a9b7..0558bfd 100644 --- a/changelog.md +++ b/changelog.md @@ -8,7 +8,7 @@ ### Fixed -## [v0.1.0] - 2024-11-29 +## [v0.1.1] - 2024-12-03 ### Added @@ -21,4 +21,4 @@ [Unreleased]: https://github.com/hasura/ndc-dynamodb/compare/v0.2.0...HEAD -[v0.1.1]: https://github.com/hasura/ndc-dynamodb/releases/tag/v0.1.0 +[v0.1.1]: https://github.com/hasura/ndc-dynamodb/releases/tag/v0.1.1 diff --git a/crates/configuration/src/version1.rs b/crates/configuration/src/version1.rs index 24feb00..584a4dc 100644 --- a/crates/configuration/src/version1.rs +++ b/crates/configuration/src/version1.rs @@ -106,6 +106,7 @@ pub async fn introspect( let config = Config::builder() .region(aws_config::Region::new(region.to_string())) .credentials_provider(credentials) + .behavior_version_latest() .build(); // To use localhost url @@ -122,7 +123,7 @@ pub async fn introspect( let tables_result = client.list_tables().send().await; let tables = tables_result .map_err(|_op| { - ParseConfigurationError::IoErrorButStringified("Failed to list tables:".to_string()) + ParseConfigurationError::IoErrorButStringified("Failed to list tables".to_string()) }) .unwrap(); //TODO: handle error let table_names = tables.table_names.unwrap_or_default(); diff --git a/crates/ndc-dynamodb/src/state.rs b/crates/ndc-dynamodb/src/state.rs index 9992f43..3ca5b21 100644 --- a/crates/ndc-dynamodb/src/state.rs +++ b/crates/ndc-dynamodb/src/state.rs @@ -43,6 +43,7 @@ pub async fn create_state( let config = Config::builder() .region(aws_config::Region::new(region)) .credentials_provider(credentials) + .behavior_version_latest() .build(); let client = aws_sdk_dynamodb::Client::from_conf(config); diff --git a/nix/app.nix b/nix/app.nix index b04654a..31db9ca 100644 --- a/nix/app.nix +++ b/nix/app.nix @@ -11,7 +11,7 @@ let buildArgs = { pname = "ndc-dynamodb"; - version = "0.1.0"; + version = "0.1.1"; src = let