pushkin-consortium / pushkin

A customizable, scalable ecosystem for massive online psychological experiments
https://pushkin-consortium.github.io/pushkin/
MIT License
24 stars 10 forks source link

Moving from AWS CLI to SDK #252

Open jkhartshorne opened 7 months ago

jkhartshorne commented 7 months ago

Based on the recommendation of GitHub CoPilot, I am migrating the aws command to use the SDK:

Here are some advantages of using the aws-sdk over the aws-cli:

Integration with your application: The aws-sdk allows you to integrate AWS functionality directly into your application code, making it easier to build and deploy AWS-based applications.

Programmatic access: The aws-sdk provides a set of APIs and libraries that allow you to programmatically access and manage AWS services. This gives you more control and flexibility than using the aws-cli, which is primarily designed for command-line use.

Customization: The aws-sdk allows you to customize your AWS interactions to meet the specific needs of your application. You can use the SDK to create custom workflows, automate tasks, and build complex applications that interact with multiple AWS services.

Language support: The aws-sdk is available in a variety of programming languages, including JavaScript, Python, Java, and .NET. This makes it easy to use AWS services in the programming language of your choice.

Security: The aws-sdk provides a secure way to interact with AWS services. It supports AWS Identity and Access Management (IAM), which allows you to control access to AWS resources, and provides encryption and other security features to protect your data.

Overall, the aws-sdk provides a more flexible and customizable way to interact with AWS services than the aws-cli. It is particularly useful for building complex applications that require programmatic access to AWS services.

Something not listed by CoPilot but was the deciding point for me was not having to use shell commands from Node, which has historically been the source of a lot of issues.