Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32223552
D3080.1765209229.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D3080.1765209229.diff
View Options
diff --git a/services/backup/docker-server/contents/server/CMakeLists.txt b/services/backup/docker-server/contents/server/CMakeLists.txt
--- a/services/backup/docker-server/contents/server/CMakeLists.txt
+++ b/services/backup/docker-server/contents/server/CMakeLists.txt
@@ -37,7 +37,7 @@
set(BUILD_TESTING OFF CACHE BOOL "Turn off tests" FORCE)
-find_package(AWSSDK REQUIRED COMPONENTS s3 core)
+find_package(AWSSDK REQUIRED COMPONENTS core dynamodb)
find_package(Boost 1.40 COMPONENTS program_options REQUIRED)
diff --git a/services/backup/docker-server/contents/server/src/AwsTools.h b/services/backup/docker-server/contents/server/src/AwsTools.h
new file mode 100644
--- /dev/null
+++ b/services/backup/docker-server/contents/server/src/AwsTools.h
@@ -0,0 +1,14 @@
+#pragma once
+
+#include <aws/core/Aws.h>
+#include <aws/dynamodb/DynamoDBClient.h>
+
+#include <memory>
+
+namespace comm {
+namespace network {
+
+std::unique_ptr<Aws::DynamoDB::DynamoDBClient> getDynamoDBClient();
+
+} // namespace network
+} // namespace comm
diff --git a/services/backup/docker-server/contents/server/src/AwsTools.cpp b/services/backup/docker-server/contents/server/src/AwsTools.cpp
new file mode 100644
--- /dev/null
+++ b/services/backup/docker-server/contents/server/src/AwsTools.cpp
@@ -0,0 +1,14 @@
+#include "AwsTools.h"
+#include "Constants.h"
+
+namespace comm {
+namespace network {
+
+std::unique_ptr<Aws::DynamoDB::DynamoDBClient> getDynamoDBClient() {
+ Aws::Client::ClientConfiguration config;
+ config.region = AWS_REGION;
+ return std::make_unique<Aws::DynamoDB::DynamoDBClient>(config);
+}
+
+} // namespace network
+} // namespace comm
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Dec 8, 3:53 PM (3 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5843312
Default Alt Text
D3080.1765209229.diff (1 KB)
Attached To
Mode
D3080: [services] Backup - add AWS Tools
Attached
Detach File
Event Timeline
Log In to Comment