Skip to main content

2 posts tagged with "AWS"

View All Tags

How to download all files in a S3 bucket folder

· One min read
Daniel G
Developer

Let's say we have a S3 bucket demo_bucket, and we have folder path under that bucket: public/emails/templates. I have 30 files under that path and I want to download all files. In the AWS console, we can only download one file each time.

We can use the AWS CLI to download all the files:

aws s3 cp s3://demo_bucket/public/emails/templates/ .  --recursive

Different ways to deploy an node.js application to AWS

· 5 min read
Daniel G
Developer

Discussion

We have a Node.js application providing REST and/or GraphQL APIs, which is part of the microservices architecture. What are the possible ways to deploy the application to AWS?

And what's the pros and cons for each approach?

Elastic BeanStalk

AWS Elastic Beanstalk is a Platform as a Service (PaaS) that makes it easy to deploy, manage, and scale web applications and services. It automatically handles the deployment, from capacity provisioning, load balancing, and auto-scaling to application health monitoring.

Pros:

  • Ease of Use: Simplifies deployment and management, ideal for those less familiar with AWS infrastructure.
  • Managed Service: Handles the underlying infrastructure, including servers, load balancers, and scaling.
  • Integration: Well-integrated with other AWS services.

Cons:

  • Limited Control: Less granular control over the underlying infrastructure compared to managing your own instances.
  • Cost: Can be more expensive than manually managing instances, depending on your application’s requirements and usage.

Use Case: Best for developers looking for a quick and easy way to deploy and manage applications without deep knowledge of AWS infrastructure.