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
Python Essentials for AWS Cloud Developers
Python Essentials for AWS Cloud Developers

Python Essentials for AWS Cloud Developers: Run and deploy cloud-based Python applications using AWS

eBook
€20.98 €29.99
Paperback
€37.99
Subscription
Free Trial
Renews at €18.99p/m

What do you get with a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing
Table of content icon View table of contents Preview book icon Preview Book

Python Essentials for AWS Cloud Developers

Using Python on AWS

In this chapter, we will give a brief introduction to the cloud. We will then explain how to set up Python and how to run your first application within the command line as well as via an integrated development environment (IDE). We’re going to cover the following main topics:

  • What is the cloud?
  • Understanding the advantages of the cloud
  • Installing Python
  • Installing PyCharm
  • Creating a new project

Cloud computing is one of the most popular approaches to implementing your applications, and it has huge advantages. There are multiple cloud providers, such as Amazon Web Services (AWS), Google Cloud Platform (GCP), and Azure. AWS is one of the most widely used cloud providers, and many companies are moving there. Cloud usage is significantly growing, and developers are expected to have a good understanding of the cloud. By buying this book, you are on the right path and stepping into how to implement cool Python applications using AWS.

Most companies are moving to the cloud because of the significant advantages. It is important to know why and how these services are being used.

What is the cloud?

The cloud is a popular way of using your IT infrastructure and services over IT providers that manage machines, networks, and applications. Basically, you don’t need any on-premises infrastructure, and cloud providers have their data centers to serve the required services over the internet. For example, if you need a server, you don’t need to buy a machine and don’t need to set up its network and power. Cloud providers serve these resources for you, and you can use them over the internet.

Understanding the advantages of the cloud

The following aspects explain why companies are moving to the cloud to have a better infrastructure:

  • Good disaster recovery plan: Cloud providers have multiple data centers in different regions. If an issue happens in one region, the system can be recovered in another region.
  • Better scalability and stability: In AWS, you have different services to upscale and downscale your application. All you need to do is to configure scaling options based on usage.
  • Quicker time to production: AWS has more than 100 services, and these services come with huge capabilities. When you have any application for production, you don’t need to start from the beginning, such as provisioning the server or preparing the infrastructure.
  • Pay-as-you-go model to reduce the cost: You don’t need to sign a contract that promises payment; you can also use the service for just one day and then shut it down.
  • Monitoring and logging advantages: The biggest cloud providers have monitoring and logging services; you can integrate these services into your application.
  • Reduces DevOps effort: AWS comes with lots of advantages for DevOps. For example, you can provision servers quickly and deploy and monitor your service with simple configurations.
  • Multiple security services to keep data safe: There are different services to keep your services and data safe.

The cloud comes with lots of advantages. There are also some important considerations when using cloud services:

  • Security: Securing your services is important, and AWS provides different services to protect your data, such as firewall configurations. You have to evaluate security requirements while using AWS services.
  • Cost management: You can easily create and scale your services, which is a very big advantage. The point to note is that while you create these services, it comes with a cost, which can cause surprises if you don’t consider the costs for specific services. Check the cost of services while creating them and create some alarms if the service exceeds your budget.

There are more than 100 AWS services, and it is important to choose the right service to implement your application based on your requirements. In this book, you will learn to create an AWS account and the required AWS services that allow you to run Python applications. To run and deploy the Python application in AWS, you will learn how to configure the AWS services and deploy them afterward.

Python is also one of the most widely used programming languages. It is easy to learn and has broader usage. Within AWS, most application-related services support Python because of its broad usage, and these services are stable when it comes to the use of Python. AWS always adapts Python use cases with their services, which is a big advantage.

This book is meant for cloud developers, software developers, and IT specialists who want to develop Python applications on AWS as well as learn the concepts of appropriate AWS services for implementing Python applications. You should have Python knowledge, and this book will focus on creating Python applications in AWS. The focus will be on creating and giving details for AWS services instead of digging into Python syntax details. Hence, you will add more expertise to your skillset.

While reading this book, it is important to follow the exercises. This is not just a book of theory and definitions. You will see code examples to illustrate what you have learned. I would recommend implementing the same examples by yourself to help you learn better and apply the same methodologies to your cloud projects. This idea slows down your progress, but you will learn better and easily remember the concepts while using AWS in your professional work life.

At the end of this book, you will implement a graduation project with Python on AWS to connect different AWS services in one application. This project helps you to use different services in the same application and understand the connection between them; you will consolidate your learning with another hands-on exercise.

Once you have created an AWS account, you will be charged according to what usage you have in a month. You always have to be careful what you use and create in AWS. Another point to note is that some AWS services are free for limited usage. Please check the costs before deciding to use any AWS service. Please be aware that you need to pay for AWS costs while doing the exercises. You can check the pricing at this link: https://aws.amazon.com/pricing/.

Let’s dig into Python programming on AWS.

Installing Python

To install Python, carry out the following steps:

  1. Visit the Python download page, https://www.python.org/downloads/, and select the right operating system.
  2. Download the installation package and run it afterward:

Figure 1.1 – Install Python

After the installation, you will have a Python 3.X folder. The Python folder has the following contents:

Figure 1.2 – Installation folder content

We will follow the steps for macOS; it is very similar to the other operating systems. Let’s implement the 'Hello World' application:

  1. Double-click on the IDLE application and run the sample 'Hello World' application:

Figure 1.3 – Python command line

If you see this output, congrats! You successfully installed the Python compiler. As a next step, we will install the IDE to simplify the application development.

Installing PyCharm

PyCharm is one of the most powerful IDEs used to develop Python applications. For the examples, we will use PyCharm; you can also use another IDE if you prefer. You have to carry out the following steps:

  1. Visit the download page, https://www.jetbrains.com/pycharm/download, and select the right operating system:

Figure 1.4 – PyCharm download page

I recommend downloading the Community Edition. Otherwise, it will be a trial version for 30 days.

  1. Download the installation package and run it afterward. Once you click Download, it directly downloads the installation package to the computer:

Figure 1.5 – Downloaded folder

When you check the installation folder, you will be able to see the installation program. Install PyCharm onto your machine.

Creating a new project

After the installation of PyCharm, we will create a new project in order to implement our first Python code snippet:

  1. Open PyCharm and you will see the Projects section:

Figure 1.6 – PyCharm IDE

  1. Add a project name:

Figure 1.7 – Creating a new project

  1. The project is ready to be implemented. Right-click and then click Run ‘main’:

Figure 1.8 – Sample project

  1. The command runs the application:

Figure 1.9 – Running the application

Congrats! You have created your first project within PyCharm.

Summary

In this chapter, we explored the cloud basics and advantages. After that, we installed Python and one of the most popular and useful IDEs, PyCharm. PyCharm will be our main tool in order to implement the applications for AWS.

In the next chapter, we will sign up for AWS to have an account on the cloud.

Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Gain hands-on experience in AWS services to effectively implement Python programming
  • Utilize Python with open source libraries to develop data pipelines, APIs, and database applications
  • Leverage the power of AWS to create a cloud-based server and use monitoring and logging features

Description

AWS provides a vast variety of services for implementing Python applications, which can pose a challenge for those without an AWS background. This book addresses one of the more predominant problems of choosing the right service and stepping into the implementation of exciting Python apps using AWS. The book begins by showing you how to install Python and create an AWS account, before helping you explore AWS Lambda, EC2, Elastic Beanstalk, and S3 for Python programming. You'll then gain hands-on experience in using these services to build the Python application. As you advance, you'll discover how to debug Python apps using PyCharm, and then start deploying the Python applications on Elastic Beanstalk. You’ll also learn how to monitor Python applications using the CloudWatch service, along with creating and publishing APIs on AWS to access the Python application. The concluding chapters will help you get to grips with storing unstructured and semi-structured data using NoSQL and DynamoDB, as well as advance your knowledge using the Glue serverless data integration service in AWS. By the end of this Python book, you’ll be able to take your application development skills up a notch with AWS services and advance in your career.

Who is this book for?

This book is for cloud developers, software developers, and IT specialists who want to develop Python applications on AWS as well as learn the concepts underlying AWS services for implementing the applications. Experience in Python programming is needed to be able to implement the applications on AWS.

What you will learn

  • Understand the fundamentals of AWS services for Python programming
  • Find out how to configure AWS services to build Python applications
  • Run and deploy Python applications using Lambda, EC2, and Elastic Beanstalk
  • Provision EC2 servers on AWS and run Python applications
  • Debug and monitor Python applications using PyCharm and CloudWatch
  • Understand database operations on AWS by learning about DynamoDB and RDS
  • Explore the API gateway service on AWS using Python to grasp API programming

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : May 19, 2023
Length: 224 pages
Edition : 1st
Language : English
ISBN-13 : 9781804610060
Languages :
Concepts :
Tools :

What do you get with a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing

Product Details

Publication date : May 19, 2023
Length: 224 pages
Edition : 1st
Language : English
ISBN-13 : 9781804610060
Languages :
Concepts :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
€18.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
€189.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts
€264.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total 113.97
AWS Observability Handbook
€37.99
Python Essentials for AWS Cloud Developers
€37.99
AWS CDK in Practice
€37.99
Total 113.97 Stars icon
Banner background image

Table of Contents

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

Customer reviews

Top Reviews
Rating distribution
Full star icon Full star icon Full star icon Full star icon Half star icon 4.9
(10 Ratings)
5 star 90%
4 star 10%
3 star 0%
2 star 0%
1 star 0%
Filter icon Filter
Top Reviews

Filter reviews by




ozlem gunal May 30, 2023
Full star icon Full star icon Full star icon Full star icon Full star icon 5
"Python Essentials for AWS Cloud Developers" by Serkan Sakinmaz is a valuable resource that combines Python programming with cloud computing. It offers clear explanations, practical examples, and covers a wide range of cloud services on AWS. While it could benefit from more in-depth content, the book effectively bridges the gap between Python and cloud development, making it a worthy addition for aspiring cloud developers.
Amazon Verified review Amazon
Phil Jul 22, 2023
Full star icon Full star icon Full star icon Full star icon Full star icon 5
I can recommend this book to anyone looking to learn how to use Python to develop cloud-based applications on AWS (perhaps not so much for veterans of the field!). The book does a great job of covering the basics of getting running with the key AWS services that are used to build and deploy Python applications. The author's explanations are clear and concise, and the supporting screenshots are very helpful.The book really focuses on practical knowledge - rather than just describing services, it shows you how to use them to build real-world applications. The reference project at the end is particularly useful as an end-to-end view.It doesn't delve into every corner of AWS, but the range of topics covered is a solid start for aspiring cloud developers. My only concern would be that the heavy use of explanatory screenshots of the AWS web frontend and PyCharm could become outdated as they update their UI.
Amazon Verified review Amazon
Selin Jun 12, 2023
Full star icon Full star icon Full star icon Full star icon Full star icon 5
I got this book to learn more about AWS and work with Phyton applications. I’m such a detailed person and this book matches my expectations, it explains each topic in detail. You can find many examples for AWS. While following the pages, you can understand how much experience its author has. This book helped me a lot! You should give it a try if you’re eager to learn AWS for Phyton apps.
Amazon Verified review Amazon
Evrim AKGÜL May 23, 2023
Full star icon Full star icon Full star icon Full star icon Full star icon 5
In general, the book covers different topics related to AWS and for sure, focused on introducing "how" to its audience. If you are unfamiliar with AWS or had no chance to play with it this book is a good start. It is providing you the step-by-step intros supported by images. So, it is very good on the application side and a healthy resource for visual learners. I especially liked Part 3 due to the fact that it is rich with examples of AWS services.
Amazon Verified review Amazon
Kevin Pöllinger Jun 13, 2023
Full star icon Full star icon Full star icon Full star icon Full star icon 5
After reviewing the first chapters, I can say with certainty that this is a valuable book on how to get started with AWS. Exactly the right mix of breadth and depth with practical use cases for my taste - I say this as an experienced Cloud Engineer. The author cites examples reminiscent of practical problems, such as debugging or monitoring Lambda functions, which a corporate engineer has to deal with very often.I liked the realistic use case scenarios that resemble my professional activity - the Author explained very clearly how to build data processing pipelines using multiple AWS services while giving a comprehensive big picture.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

What is included in a Packt subscription? Chevron down icon Chevron up icon

A subscription provides you with full access to view all Packt and licnesed content online, this includes exclusive access to Early Access titles. Depending on the tier chosen you can also earn credits and discounts to use for owning content

How can I cancel my subscription? Chevron down icon Chevron up icon

To cancel your subscription with us simply go to the account page - found in the top right of the page or at https://subscription.packtpub.com/my-account/subscription - From here you will see the ‘cancel subscription’ button in the grey box with your subscription information in.

What are credits? Chevron down icon Chevron up icon

Credits can be earned from reading 40 section of any title within the payment cycle - a month starting from the day of subscription payment. You also earn a Credit every month if you subscribe to our annual or 18 month plans. Credits can be used to buy books DRM free, the same way that you would pay for a book. Your credits can be found in the subscription homepage - subscription.packtpub.com - clicking on ‘the my’ library dropdown and selecting ‘credits’.

What happens if an Early Access Course is cancelled? Chevron down icon Chevron up icon

Projects are rarely cancelled, but sometimes it's unavoidable. If an Early Access course is cancelled or excessively delayed, you can exchange your purchase for another course. For further details, please contact us here.

Where can I send feedback about an Early Access title? Chevron down icon Chevron up icon

If you have any feedback about the product you're reading, or Early Access in general, then please fill out a contact form here and we'll make sure the feedback gets to the right team. 

Can I download the code files for Early Access titles? Chevron down icon Chevron up icon

We try to ensure that all books in Early Access have code available to use, download, and fork on GitHub. This helps us be more agile in the development of the book, and helps keep the often changing code base of new versions and new technologies as up to date as possible. Unfortunately, however, there will be rare cases when it is not possible for us to have downloadable code samples available until publication.

When we publish the book, the code files will also be available to download from the Packt website.

How accurate is the publication date? Chevron down icon Chevron up icon

The publication date is as accurate as we can be at any point in the project. Unfortunately, delays can happen. Often those delays are out of our control, such as changes to the technology code base or delays in the tech release. We do our best to give you an accurate estimate of the publication date at any given time, and as more chapters are delivered, the more accurate the delivery date will become.

How will I know when new chapters are ready? Chevron down icon Chevron up icon

We'll let you know every time there has been an update to a course that you've bought in Early Access. You'll get an email to let you know there has been a new chapter, or a change to a previous chapter. The new chapters are automatically added to your account, so you can also check back there any time you're ready and download or read them online.

I am a Packt subscriber, do I get Early Access? Chevron down icon Chevron up icon

Yes, all Early Access content is fully available through your subscription. You will need to have a paid for or active trial subscription in order to access all titles.

How is Early Access delivered? Chevron down icon Chevron up icon

Early Access is currently only available as a PDF or through our online reader. As we make changes or add new chapters, the files in your Packt account will be updated so you can download them again or view them online immediately.

How do I buy Early Access content? Chevron down icon Chevron up icon

Early Access is a way of us getting our content to you quicker, but the method of buying the Early Access course is still the same. Just find the course you want to buy, go through the check-out steps, and you’ll get a confirmation email from us with information and a link to the relevant Early Access courses.

What is Early Access? Chevron down icon Chevron up icon

Keeping up to date with the latest technology is difficult; new versions, new frameworks, new techniques. This feature gives you a head-start to our content, as it's being created. With Early Access you'll receive each chapter as it's written, and get regular updates throughout the product's development, as well as the final course as soon as it's ready.We created Early Access as a means of giving you the information you need, as soon as it's available. As we go through the process of developing a course, 99% of it can be ready but we can't publish until that last 1% falls in to place. Early Access helps to unlock the potential of our content early, to help you start your learning when you need it most. You not only get access to every chapter as it's delivered, edited, and updated, but you'll also get the finalized, DRM-free product to download in any format you want when it's published. As a member of Packt, you'll also be eligible for our exclusive offers, including a free course every day, and discounts on new and popular titles.