Skip to content

Commit

Permalink
Merge pull request facebook#132 from abbccdda/fix_clone_example
Browse files Browse the repository at this point in the history
add aws init for cloud examples
  • Loading branch information
dhruba authored Jul 18, 2021
2 parents 99974ed + b00563a commit 79603c0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cloud/examples/clone_example.cc
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ int main() {
// with every new cloud-db.
std::unique_ptr<CloudEnv> cloud_env;

cloud_env_options.credentials.InitializeSimple(
getenv("AWS_ACCESS_KEY_ID"), getenv("AWS_SECRET_ACCESS_KEY"));
if (!cloud_env_options.credentials.HasValid().ok()) {
fprintf(
stderr,
Expand Down
2 changes: 2 additions & 0 deletions cloud/examples/cloud_dump.cc
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ int main() {
// with every new cloud-db.
std::unique_ptr<CloudEnv> cloud_env;

cloud_env_options.credentials.InitializeSimple(
getenv("AWS_ACCESS_KEY_ID"), getenv("AWS_SECRET_ACCESS_KEY"));
if (!cloud_env_options.credentials.HasValid().ok()) {
fprintf(
stderr,
Expand Down
2 changes: 2 additions & 0 deletions cloud/examples/cloud_durable_example.cc
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ int main() {
// with every new cloud-db.
std::unique_ptr<CloudEnv> cloud_env;

cloud_env_options.credentials.InitializeSimple(
getenv("AWS_ACCESS_KEY_ID"), getenv("AWS_SECRET_ACCESS_KEY"));
if (!cloud_env_options.credentials.HasValid().ok()) {
fprintf(
stderr,
Expand Down

0 comments on commit 79603c0

Please sign in to comment.