
A Practical Guide to Cloud Deployment: Learn CI/CD with AWS
Description
Book Introduction
"Practical CI/CD with AWS: A Cloud Deployment Guide for Everyone: A Practical Introduction" is a practical introduction to cloud service development for everyone, from new developers to those without actual service development experience. This newly published second edition includes the latest revisions listed below.
The latest revisions to the 2nd edition are as follows:
01. Revised with the latest content to systematically learn the entire deployment environment process through hands-on practice with key AWS services such as EC2, Elastic Beanstalk, and RDS.
02.
We've updated the content to allow you to experience the flow from code commit to deployment directly by configuring a CI/CD automation pipeline based on GitHub Actions.
03.
It has been revised to be easier to follow than complex theories, so that even developers new to the cloud and CI/CD can immediately apply it to their work.
This book is structured to be much easier to understand and follow, with concepts explained in detail along with code and examples already implemented on GitHub.
The latest revisions to the 2nd edition are as follows:
01. Revised with the latest content to systematically learn the entire deployment environment process through hands-on practice with key AWS services such as EC2, Elastic Beanstalk, and RDS.
02.
We've updated the content to allow you to experience the flow from code commit to deployment directly by configuring a CI/CD automation pipeline based on GitHub Actions.
03.
It has been revised to be easier to follow than complex theories, so that even developers new to the cloud and CI/CD can immediately apply it to their work.
This book is structured to be much easier to understand and follow, with concepts explained in detail along with code and examples already implemented on GitHub.
index
Chapter 01 Understanding AWS
01-1 Setting up the project environment for AWS deployment
1 Installing JDK
3 Install Visual Studio Code
4 Install Postman
5 Installing Git
6 Project save path
01-2 Learning Objectives for This Book (AWS)
01-3 Things to Consider When Building a Computer Room
01-4 Background of AWS's Birth
1 Jeff Bezos
01-5 AWS Membership Registration
01-6 EC2 Server Rental
01-7 Connecting to an EC2 Server (Windows & Mac)
1 Windows
2 Mac
01-8 Network Basics - The Packet's Journey
1 packet
01-9 EC2 Server Firewall
1 Firewall
2 Why Secure?
01-10 RSA authentication method
1 Symmetric key encryption method
2 Public key encryption method (RSA)
3 Protocols
4 Why RSA Concepts Are Needed
Chapter 02 Learning Linux Commands
02-1 Linux Command Step 1
1 clear
2 pwd
3 cd
4 ls
5 Absolute and Relative Paths
02-2 Linux Command Step 2
1 --help
2 -a,--all
3 mkdir
4 touch
5 rm
6 Ctrl + C
02-3 Linux Command Step 3
1 cp(copy)
2 mv(move)
3 In(link)
02-4 Linux Command Step 4
1 When installing a program (KakaoTalk) on Windows
2 Ubuntu repositories
02-5 Linux Command Step 5
1 sudo apt update
2 apt
3. Setting Inbound Rules
02-6 Linux Command Step 6
1 Changing the apt server
2 ubuntu.sources
3 Speed Test
02-7 Linux Command Step 7
1 Process
2 Threads
3 context-switching
4 sleep
02-8 Linux Command Step 8
1 Process and Service
2 ps process command
3 restart
4. Write a script to find the tomcat8 pid.
02-9 Linux Command Step 9
1 vi
02-10 Linux Command Step 10
1 root access
2 Create a file as root
3 Permissions
02-11 Linux Command Step 11
1 chown owner: change group
02-12 Linux Command Step 12
1 Find File
2. Check the Tomcat storage location
3 Change the permissions of the index.html file
4 Edit the index.html file
5 Change port
02-13 Linux Command Step 13
1 tail
2 Standard input/output
3 Change standard input/output
02-14 How to Shut Down an EC2 Server
Chapter 03: AWS EC2 Basic Deployment
03-1 Understanding the Distribution V1 Flow
1.
Basic Distribution V1
03-2 Download and run the project
1 Project Description
03-3 Creating an EC2 server and setting a static IP
1 Create an EC2 server
2. Set a static IP
3 Create an elastic IP
4 Elastic IP Precautions
5 Elastic IP connections
03-4 Deploying the Project V1
1. Verify git installation
2. Project git clone
3 Grant gradlew execution permission
4 Installing JDK
5 Change to executable file (gradlew)
6 Running the jar file
03-5 Running the project in the background
1 Add code that does not generate plain.jar file
2 nohup
3 Check the log nohup.out
4 Real-time log monitoring tail
03-6 Change the log file location
1. Terminate the process
2 Run after changing the log file
03-7 Standard output, standard error
1 Standard output (1) and error output (2)
03-8 Writing a time zone change and shutdown script
1 Timezone setting
2 pgrep
3. Write a shutdown script
4 Restart the server
03-9 cron periodic execution
1 cron concept and practice
2 cron automation
03-10 Registering cron with script
03-11 Restart the project with cron
1 spring-stop.sh
03-12 Understanding the Redistribution Process
1 Understanding the Redistribution Process
03-13 Redistribution
1 Stop the existing server
2 Delete the aws-v1 folder
3 Project Downloads
4 Granting gradlew execution permission
5 builds
6 Running jar
7 Automatic restart with cron
Chapter 04 Deploying with AWS EC2 Deployment Automation Script
04-1 AWS-V2 Goal
1 V1 logic
04-2 Creating an EC2 Server and Setting a Static IP
1. Create an EC2 instance
2 fixed IP
3 Elastic IP settings
04-3 Environment variables and bashrc
1 Environment variables
2 export
3 Source
04-4 Applying environment variables to specific files
1 Create an environment variable file
2 Registering environment variables
3 Use environment variables only in the files you want
4. Scope of application of environment variables
04-5 Cron termination considering redistribution
1 Set crontab shutdown in deploy.sh script
2 cron delete
04-6 Server shutdown and program installation
1 Find the PID and terminate the process
2 Understanding the Java executable file name structure
3 Setting environment variables
4 Applying environment variables
5 Writing the actual script
6. Run the script
04-7 Download and build the project
1 Reason for giving sleep
2 Run the script
3 Run the jar file
04-8 Running the server
1. Write a script
2 Run the script
3 Change the log file storage location
04-9 cron registration
1 Create check-and-restart.sh
2. Run the script (deployment script completed)
3. Force the server to shut down
4 How to build a jar without tests
04-10 Compressing the distribution file
1 tar
2. Compress the actual distribution file tar
3 File Transfer
04-11 Deploying the actual distribution file
Chapter 05 Deploying with Elastic Beanstalk
05-1 Running Elastic Beanstalk Sample Code
1 Create a role
2 elastic bean stock
05-2 Elastic Bean Stock Internal Structure
1. Create an elastic bean stock
2.
Handling external requests on 2NGinX servers
05-3 Elastic Beanstalk Project Distribution
Download 1 jar file
2 Upload and distribute your project
05-4 Elastic Beanstalk SSH connection
1 Check running processes
2 NGinX
05-5 Ending Elastic Beanstalk
Chapter 06 Elastic Beanstalk & Database 06-1 Creating RDS
1. Create an RDS security group
2 Create RDS
06-2 Creating Elastic Bean Stock
1. Create an elastic bean stock
2 Environmental properties
3 Edit Inbound Rules
06-3 VPC (Virtual Private Cloud)
06-4 RDS connection
1 Windows connection
2 Mac connection
06-5 Setting up RDS
1 Create a database
06-6 Distribution V4 Project Overview
1 Download the project
2. Try running the project
3 Project Internal Structure
06-7 Distribution and Testing
1 jar file
2 elastic bean stock
3 Distribution Completed
4 Tests
5 Understanding CIDR
Chapter 07 Deploying Elastic Beanstalk, Databases, and CI/CD
07-1 Preparations before starting V5 distribution
1. End the Elastic Beanstalk environment
07-2 AWS Pricing Policy
1 Services to be used in AWS-V5
07-3 Understanding the Full AWS-V5 Configuration
1 Previous distribution method
2 V5 Deployment Configuration (CI/CD)
07-4 What is CI/CD?
1 Polling technique
2 Webhook Techniques
07-5 Understanding AWS Users/Policies/Groups/Roles
1 Identity Access Manager (IAM)
07-6 Forking a Github Project
1. Set up security groups
2 Create RDS
07-7 Creating Elastic Bean Stock
1 Create an application
07-8 Rolling: Distribution Strategy
1 All at once
2 additional batches
3 Immutable (Blue/Green Deployment)
07-9 Deployment V5 Current Configuration Overview
1 Application Load Balancer
2 Auto Scaling Groups (EC2 instances)
3 RDS (Relational Database Service)
4 ALB-related precautions
5 V5 configuration summary
07-10 IAM
1 Create IAM
2 IAM registration
07-11 Github Action (CI Practice)
1 Fork a Github project
2 Download the project
3 Push
07-12 Github Action (CD Practice)
1. Setting up inbound rules
2 deploy.yml
3 Githuyb Action
07-13 CI/CD Deployment Principles
1.github/workflows/deploy.yml
2. Review CI-related scripts
3 Review the CD-related scripts
4 Differences between jar and zip distributions
5 00-makeFiles.config
6 Procfile
07-14 Check the log when an error occurs
1 Database connection failed
2 NGinX related errors
3 Checking logs within the AWS console
01-1 Setting up the project environment for AWS deployment
1 Installing JDK
3 Install Visual Studio Code
4 Install Postman
5 Installing Git
6 Project save path
01-2 Learning Objectives for This Book (AWS)
01-3 Things to Consider When Building a Computer Room
01-4 Background of AWS's Birth
1 Jeff Bezos
01-5 AWS Membership Registration
01-6 EC2 Server Rental
01-7 Connecting to an EC2 Server (Windows & Mac)
1 Windows
2 Mac
01-8 Network Basics - The Packet's Journey
1 packet
01-9 EC2 Server Firewall
1 Firewall
2 Why Secure?
01-10 RSA authentication method
1 Symmetric key encryption method
2 Public key encryption method (RSA)
3 Protocols
4 Why RSA Concepts Are Needed
Chapter 02 Learning Linux Commands
02-1 Linux Command Step 1
1 clear
2 pwd
3 cd
4 ls
5 Absolute and Relative Paths
02-2 Linux Command Step 2
1 --help
2 -a,--all
3 mkdir
4 touch
5 rm
6 Ctrl + C
02-3 Linux Command Step 3
1 cp(copy)
2 mv(move)
3 In(link)
02-4 Linux Command Step 4
1 When installing a program (KakaoTalk) on Windows
2 Ubuntu repositories
02-5 Linux Command Step 5
1 sudo apt update
2 apt
3. Setting Inbound Rules
02-6 Linux Command Step 6
1 Changing the apt server
2 ubuntu.sources
3 Speed Test
02-7 Linux Command Step 7
1 Process
2 Threads
3 context-switching
4 sleep
02-8 Linux Command Step 8
1 Process and Service
2 ps process command
3 restart
4. Write a script to find the tomcat8 pid.
02-9 Linux Command Step 9
1 vi
02-10 Linux Command Step 10
1 root access
2 Create a file as root
3 Permissions
02-11 Linux Command Step 11
1 chown owner: change group
02-12 Linux Command Step 12
1 Find File
2. Check the Tomcat storage location
3 Change the permissions of the index.html file
4 Edit the index.html file
5 Change port
02-13 Linux Command Step 13
1 tail
2 Standard input/output
3 Change standard input/output
02-14 How to Shut Down an EC2 Server
Chapter 03: AWS EC2 Basic Deployment
03-1 Understanding the Distribution V1 Flow
1.
Basic Distribution V1
03-2 Download and run the project
1 Project Description
03-3 Creating an EC2 server and setting a static IP
1 Create an EC2 server
2. Set a static IP
3 Create an elastic IP
4 Elastic IP Precautions
5 Elastic IP connections
03-4 Deploying the Project V1
1. Verify git installation
2. Project git clone
3 Grant gradlew execution permission
4 Installing JDK
5 Change to executable file (gradlew)
6 Running the jar file
03-5 Running the project in the background
1 Add code that does not generate plain.jar file
2 nohup
3 Check the log nohup.out
4 Real-time log monitoring tail
03-6 Change the log file location
1. Terminate the process
2 Run after changing the log file
03-7 Standard output, standard error
1 Standard output (1) and error output (2)
03-8 Writing a time zone change and shutdown script
1 Timezone setting
2 pgrep
3. Write a shutdown script
4 Restart the server
03-9 cron periodic execution
1 cron concept and practice
2 cron automation
03-10 Registering cron with script
03-11 Restart the project with cron
1 spring-stop.sh
03-12 Understanding the Redistribution Process
1 Understanding the Redistribution Process
03-13 Redistribution
1 Stop the existing server
2 Delete the aws-v1 folder
3 Project Downloads
4 Granting gradlew execution permission
5 builds
6 Running jar
7 Automatic restart with cron
Chapter 04 Deploying with AWS EC2 Deployment Automation Script
04-1 AWS-V2 Goal
1 V1 logic
04-2 Creating an EC2 Server and Setting a Static IP
1. Create an EC2 instance
2 fixed IP
3 Elastic IP settings
04-3 Environment variables and bashrc
1 Environment variables
2 export
3 Source
04-4 Applying environment variables to specific files
1 Create an environment variable file
2 Registering environment variables
3 Use environment variables only in the files you want
4. Scope of application of environment variables
04-5 Cron termination considering redistribution
1 Set crontab shutdown in deploy.sh script
2 cron delete
04-6 Server shutdown and program installation
1 Find the PID and terminate the process
2 Understanding the Java executable file name structure
3 Setting environment variables
4 Applying environment variables
5 Writing the actual script
6. Run the script
04-7 Download and build the project
1 Reason for giving sleep
2 Run the script
3 Run the jar file
04-8 Running the server
1. Write a script
2 Run the script
3 Change the log file storage location
04-9 cron registration
1 Create check-and-restart.sh
2. Run the script (deployment script completed)
3. Force the server to shut down
4 How to build a jar without tests
04-10 Compressing the distribution file
1 tar
2. Compress the actual distribution file tar
3 File Transfer
04-11 Deploying the actual distribution file
Chapter 05 Deploying with Elastic Beanstalk
05-1 Running Elastic Beanstalk Sample Code
1 Create a role
2 elastic bean stock
05-2 Elastic Bean Stock Internal Structure
1. Create an elastic bean stock
2.
Handling external requests on 2NGinX servers
05-3 Elastic Beanstalk Project Distribution
Download 1 jar file
2 Upload and distribute your project
05-4 Elastic Beanstalk SSH connection
1 Check running processes
2 NGinX
05-5 Ending Elastic Beanstalk
Chapter 06 Elastic Beanstalk & Database 06-1 Creating RDS
1. Create an RDS security group
2 Create RDS
06-2 Creating Elastic Bean Stock
1. Create an elastic bean stock
2 Environmental properties
3 Edit Inbound Rules
06-3 VPC (Virtual Private Cloud)
06-4 RDS connection
1 Windows connection
2 Mac connection
06-5 Setting up RDS
1 Create a database
06-6 Distribution V4 Project Overview
1 Download the project
2. Try running the project
3 Project Internal Structure
06-7 Distribution and Testing
1 jar file
2 elastic bean stock
3 Distribution Completed
4 Tests
5 Understanding CIDR
Chapter 07 Deploying Elastic Beanstalk, Databases, and CI/CD
07-1 Preparations before starting V5 distribution
1. End the Elastic Beanstalk environment
07-2 AWS Pricing Policy
1 Services to be used in AWS-V5
07-3 Understanding the Full AWS-V5 Configuration
1 Previous distribution method
2 V5 Deployment Configuration (CI/CD)
07-4 What is CI/CD?
1 Polling technique
2 Webhook Techniques
07-5 Understanding AWS Users/Policies/Groups/Roles
1 Identity Access Manager (IAM)
07-6 Forking a Github Project
1. Set up security groups
2 Create RDS
07-7 Creating Elastic Bean Stock
1 Create an application
07-8 Rolling: Distribution Strategy
1 All at once
2 additional batches
3 Immutable (Blue/Green Deployment)
07-9 Deployment V5 Current Configuration Overview
1 Application Load Balancer
2 Auto Scaling Groups (EC2 instances)
3 RDS (Relational Database Service)
4 ALB-related precautions
5 V5 configuration summary
07-10 IAM
1 Create IAM
2 IAM registration
07-11 Github Action (CI Practice)
1 Fork a Github project
2 Download the project
3 Push
07-12 Github Action (CD Practice)
1. Setting up inbound rules
2 deploy.yml
3 Githuyb Action
07-13 CI/CD Deployment Principles
1.github/workflows/deploy.yml
2. Review CI-related scripts
3 Review the CD-related scripts
4 Differences between jar and zip distributions
5 00-makeFiles.config
6 Procfile
07-14 Check the log when an error occurs
1 Database connection failed
2 NGinX related errors
3 Checking logs within the AWS console
Detailed image

Publisher's Review
If you encounter any errors while studying the contents of this book, the author runs a Q&A Naver Cafe where you can ask the author questions.
- Metacoding https://cafe.naver.com/metacoding
All project code and practice source code used in this book can be found on page 5 or downloaded from the github address below.
- https://github.com/codingspecialist/Aws-Deploy-EasyupClass
After reading this book, you will not only be able to develop at localhost:8080, but also create a service with a CI/CD environment using an actual URL address.
I highly recommend this book to these people!
- All developers interested in cloud services
- All developers without actual AWS service deployment experience
- College students / New and prospective developers with less than 1 year of experience
This book explains the practical content in an easy-to-understand way that allows you to fully understand the material just by studying the main text. However, for beginner developers with limited network or computer science knowledge, it also provides video lectures that cover the entire process of basic deployment on AWS EC2, both free and for a fee.
For example source code from this book and how to ask the author questions, see pages 5-6 of the book.
The features of this book are as follows:
- Free key video lectures covering the entire AWS EC2 Server V1 deployment and redeployment process.
- Easy-to-understand illustration of the CI/CD process using AWS cloud services.
- Explains the entire process of deploying/redeploying AWS EC2 servers so that you can experience the entire process of deploying a cloud service with a CI/CD environment.
This book will enable you to do this.
01 Learn the basics of AWS, Linux, and network cloud services.
02 How to set up an environment for deploying a project within a cloud service using an EC2 server
03 AWS EC2 Basics and Script Writing, Deployment, and Redistribution Methods
04 How to Deploy Efficiently with AWS EC2 Deployment Automation Scripts
05 How to deploy a project combining Elastic Beanstalk and a database
06 CI/CD deployment using Elistic Beanstock, RDS, and Github Actions
07 How to test/build/automate deployment using GithubAction
08 How to deploy without interruption (rolling), how to test a project on a test server
09 How to set up a static IP address using a network load balancer and service
This book is aimed at developers interested in cloud services, as well as college students and junior developers without actual service development experience. It is especially recommended for these individuals.
- Those looking for a book or video lecture that explains AWS cloud services in an easy-to-understand manner
- Those who want to learn about the overall structure and environment for building DevOps on AWS
- Those who want to experience the theory and practice of DevOps, infrastructure, and cloud.
- Those who need project deployment automation and non-stop deployment
- Those who want to build a cloud platform by assigning a static IP
- Those who need effective platform design in a short period of time
- Metacoding https://cafe.naver.com/metacoding
All project code and practice source code used in this book can be found on page 5 or downloaded from the github address below.
- https://github.com/codingspecialist/Aws-Deploy-EasyupClass
After reading this book, you will not only be able to develop at localhost:8080, but also create a service with a CI/CD environment using an actual URL address.
I highly recommend this book to these people!
- All developers interested in cloud services
- All developers without actual AWS service deployment experience
- College students / New and prospective developers with less than 1 year of experience
This book explains the practical content in an easy-to-understand way that allows you to fully understand the material just by studying the main text. However, for beginner developers with limited network or computer science knowledge, it also provides video lectures that cover the entire process of basic deployment on AWS EC2, both free and for a fee.
For example source code from this book and how to ask the author questions, see pages 5-6 of the book.
The features of this book are as follows:
- Free key video lectures covering the entire AWS EC2 Server V1 deployment and redeployment process.
- Easy-to-understand illustration of the CI/CD process using AWS cloud services.
- Explains the entire process of deploying/redeploying AWS EC2 servers so that you can experience the entire process of deploying a cloud service with a CI/CD environment.
This book will enable you to do this.
01 Learn the basics of AWS, Linux, and network cloud services.
02 How to set up an environment for deploying a project within a cloud service using an EC2 server
03 AWS EC2 Basics and Script Writing, Deployment, and Redistribution Methods
04 How to Deploy Efficiently with AWS EC2 Deployment Automation Scripts
05 How to deploy a project combining Elastic Beanstalk and a database
06 CI/CD deployment using Elistic Beanstock, RDS, and Github Actions
07 How to test/build/automate deployment using GithubAction
08 How to deploy without interruption (rolling), how to test a project on a test server
09 How to set up a static IP address using a network load balancer and service
This book is aimed at developers interested in cloud services, as well as college students and junior developers without actual service development experience. It is especially recommended for these individuals.
- Those looking for a book or video lecture that explains AWS cloud services in an easy-to-understand manner
- Those who want to learn about the overall structure and environment for building DevOps on AWS
- Those who want to experience the theory and practice of DevOps, infrastructure, and cloud.
- Those who need project deployment automation and non-stop deployment
- Those who want to build a cloud platform by assigning a static IP
- Those who need effective platform design in a short period of time
GOODS SPECIFICS
- Date of issue: July 30, 2025
- Page count, weight, size: 292 pages | 649g | 190*257*20mm
- ISBN13: 9791193059593
- ISBN10: 1193059593
You may also like
카테고리
korean
korean