Skip to content

AWS S3 SDK Build fix#19

Open
mujtaba1747 wants to merge 2 commits intospcl:mainfrom
mujtaba1747:build-fix-aws-s3-sdk
Open

AWS S3 SDK Build fix#19
mujtaba1747 wants to merge 2 commits intospcl:mainfrom
mujtaba1747:build-fix-aws-s3-sdk

Conversation

@mujtaba1747
Copy link

Part of #17

The lambda layer build fails due to an additional parameter in the S3Client constructor.
Newer version of the AWS S3 SDK does not require that extra parameter ie credentialsProvider

src/comm/S3.cpp Outdated
@@ -25,7 +25,7 @@ FMI::Comm::S3::S3(std::map<std::string, std::string> params, std::map<std::strin
upload_price = std::stod(model_params["upload_price"]);

auto credentialsProvider = Aws::MakeShared<Aws::Auth::EnvironmentAWSCredentialsProvider>(TAG);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we still need this variable?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No @mcopik. It should not be required because the latest S3 client has its own internal credentialsProvider

@mcopik
Copy link
Contributor

mcopik commented Mar 20, 2024

@mujtaba1747 Thank you for the PR! I will test it with building layers for 3.9. I had just one comment for the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants