Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Python Essentials for AWS Cloud Developers

You're reading from   Python Essentials for AWS Cloud Developers Run and deploy cloud-based Python applications using AWS

Arrow left icon
Product type Paperback
Published in May 2023
Publisher Packt
ISBN-13 9781804610060
Length 224 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Serkan Sakinmaz Serkan Sakinmaz
Author Profile Icon Serkan Sakinmaz
Serkan Sakinmaz
Arrow right icon
View More author details
Toc

Table of Contents (18) Chapters Close

Preface 1. Part 1: Python Installation and the Cloud
2. Chapter 1: Using Python on AWS FREE CHAPTER 3. Chapter 2: Creating an AWS Account 4. Part 2: A Deep Dive into AWS with Python
5. Chapter 3: Cloud Computing with Lambda 6. Chapter 4: Running Python Applications on EC2 7. Chapter 5: Running Python Applications with PyCharm 8. Chapter 6: Deploying Python Applications on Elastic Beanstalk 9. Part 3: Useful AWS Services to Implement Python
10. Chapter 7: Monitoring Applications via CloudWatch 11. Chapter 8: Database Operations with RDS 12. Chapter 9: Creating an API in AWS 13. Chapter 10: Using Python with NoSQL (DynamoDB) 14. Chapter 11: Using Python with Glue 15. Chapter 12: Reference Project on AWS 16. Index 17. Other Books You May Enjoy

The coding of the Python application

Let’s implement the application step by step.

Creating S3 buckets to store images

In this subsection, we are going to create an S3 bucket to hold images, which is uploaded via API Gateway. S3 will store the image and provide it whenever requested:

  1. Create a bucket and click the Create bucket button at the bottom of the page:

Figure 12.2 – An S3 bucket

  1. We filled in the Bucket name field as python-book-image; you can use whatever you want. After adding the bucket name, click Create bucket to create a new bucket:

Figure 12.3 – Bucket configuration

We have created an S3 bucket.

Creating Lambda code

In this subsection, we are going to implement a Lambda code that accepts the image upload request from API Gateway and stores the image in the S3 bucket:

  1. Create a Lambda function via the AWS Management Console. You can see the Function...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image