There is a programmatic way to upload files into s3 bucket in aws

the package boto3 is a python library where you can use to upload your files to the backend

In this, we can see which are the necessary steps to upload a simple file into the s3 bucket

this would be a very basic starting point to navigate into a large library

first, we need to see if we can connect to the s3 bucket

fileName: botothree.py

import boto3s3_ob = boto3.resource(‘s3’, aws_access_key_id=“#################”,aws_secret_access_key=“######################################”)for each_b in s3_ob.buckets.all():
print(each_b.name)

Output:-


Before you use Session Manager to connect to the Amazon Elastic Compute Cloud (Amazon EC2) instances in your account, complete the steps below.

Steps

  1. Complete Session Manager prerequisites
  2. Verify or create an IAM instance profile with Session Manager permissions
  3. Configure session preferences
  4. Use Session Manager to Connect to the instances

Complete Session Manager prerequisites

Create an Ec2 instance


S3 and CloudFront are AWS cloud services that make serving static assets powerful and cheap. How can we host a simple static website on it?

If you have a frontend that is static in nature, the best option is to create a highly available and scalable infrastructure.

Storing your website on S3

To get started, we’re going to serve a simple HTML file as our website. This will allow us to focus more on the process of hosting rather than the intricacies of the website itself.

Creating our website file

Begin by creating a new folder called my-static-site. Inside that folder, let's create a new file called index.html


Before you use Session Manager to connect to the Amazon Elastic Compute Cloud (Amazon EC2) instances in your account, complete the steps

Steps

  1. Complete Session Manager prerequisites
  2. Verify or create an IAM instance profile with Session Manager permissions
  3. Configure session preferences
  4. Use Session Manager to Connect to the instances

Complete Session Manager prerequisites

Create an Ec2 instance


S3 and CloudFront are AWS cloud services that make serving static assets powerful and cheap. How can we host a simple static website on it?

If you have a frontend that is static in nature, the best option is to create a highly available and scalable.

Storing your website on S3

To get started, we’re going to serve a simple HTML file as our website. This will allow us to focus more on the process of hosting rather than the intricacies of the website itself.

Creating our website file

Begin by creating a new folder called my-static-site. Inside that folder, let's create a new file called index.html


Before you use Session Manager to connect to the Amazon Elastic Compute Cloud (Amazon EC2) instances in your account, complete the steps

Steps

  1. Complete Session Manager prerequisites
  2. Verify or create an IAM instance profile with Session Manager permissions
  3. Configure session preferences
  4. Use Session Manager to Connect to the instances

Complete Session Manager prerequisites

Create an Ec2 instance


S3 and CloudFront are AWS cloud services that make serving static assets powerful and cheap. How can we host a simple static website on it?

If you have a frontend that is static in nature, the best option is to create a highly available and scalable.

Storing your website on S3

To get started, we’re going to serve a simple HTML file as our website. This will allow us to focus more on the process of hosting rather than the intricacies of the website itself.

Creating our website file

Begin by creating a new folder called my-static-site. Inside that folder, let's create a new file called index.html


Minikube is an open-source tool that allows you to set up a single-node Kubernetes cluster on your local machine. The cluster is run inside a virtual machine and includes Docker, allowing you to run containers inside the node.

This is an excellent way to test in a Kubernetes environment locally, without using up too many resources.

Prerequisites

  • A system running Ubuntu 18.04 Bionic Beaver or Ubuntu 20.04
  • A user account with sudo privileges
  • Access to a terminal window / command line (Ctrl+Alt+T, search > terminal)

Step 1: Update System and Install Required Packages

Before installing any software, you need to update and upgrade the system you are working…


Minikube is an open-source tool that allows you to set up a single-node Kubernetes cluster on your local machine. The cluster is run inside a virtual machine and includes Docker, allowing you to run containers inside the node.

This is an excellent way to test in a Kubernetes environment locally, without using up too many resources.

Prerequisites

  • A system running Ubuntu 18.04 Bionic Beaver or Ubuntu 20.04
  • A user account with sudo privileges
  • Access to a terminal window / command line (Ctrl+Alt+T, search > terminal)

Step 1: Update System and Install Required Packages

Before installing any software, you need to update and upgrade the system you are working…


Minikube is an open-source tool that allows you to set up a single-node Kubernetes cluster on your local machine. The cluster is run inside a virtual machine and includes Docker, allowing you to run containers inside the node.

This is an excellent way to test in a Kubernetes environment locally, without using up too many resources.

Prerequisites

  • A system running Ubuntu 18.04 Bionic Beaver or Ubuntu 20.04
  • A user account with sudo privileges
  • Access to a terminal window / command line (Ctrl+Alt+T, search > terminal)

Step 1: Update System and Install Required Packages

Before installing any software, you need to update and upgrade the system you are working…

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store