Skip to content

Commit

Permalink
add latest behaviour version to the aws client (#13)
Browse files Browse the repository at this point in the history
* add latest behaviour version to the aws client

* update release version to v0.1.1

---------

Co-authored-by: py <pranshi.hasura.io>
  • Loading branch information
pranshi06 authored Dec 3, 2024
1 parent 56f5c22 commit ce61f5f
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 12 deletions.
14 changes: 7 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"

Expand Down
4 changes: 2 additions & 2 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

### Fixed

## [v0.1.0] - 2024-11-29
## [v0.1.1] - 2024-12-03

### Added

Expand All @@ -21,4 +21,4 @@
<!-- end -->

[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
3 changes: 2 additions & 1 deletion crates/configuration/src/version1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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();
Expand Down
1 change: 1 addition & 0 deletions crates/ndc-dynamodb/src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion nix/app.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
let
buildArgs = {
pname = "ndc-dynamodb";
version = "0.1.0";
version = "0.1.1";

src =
let
Expand Down

0 comments on commit ce61f5f

Please sign in to comment.