SlideShare a Scribd company logo
Aws Deployment :
Installation of cli’s for aws:
For aws deployment you need to follow these steps.
1. Install `python-pip` by running the command `sudo apt-get install python-pip`.
2. Install `setuptools` by running the command `sudo pip install setuptools`.
3. Install `awscli` by running the command `sudo pip install awscli`.
4. Install `ebcli` by running the command `sudo pip install ebcli`.
If you don’t want to do step 3 and 4 you can also install awscli (amazon web services command
line) and ebcli (elasticbeanstalk) both by running command `sudo pip install awsebcli`.
Deployment on aws:
WHEN YOU WANT TO DEPLOYED APP FROM
SCRATCH:
Now we are able to do deployment on aws. Now going to your
project directory and run following commands and answer the question asked by aws.
1. Run command `eb init` in your terminal of your project. After running its ask some questions
like if your `aws key` or `aws secret` is not set you need to enter first those credentials.
1a. Select a default region
1) us-east-1 : US East (N. Virginia)
2) us-west-1 : US West (N. California)
3) us-west-2 : US West (Oregon)
4) eu-west-1 : EU (Ireland)
5) eu-central-1 : EU (Frankfurt)
6) ap-south-1 : Asia Pacific (Mumbai)
7) ap-southeast-1 : Asia Pacific (Singapore)
8) ap-southeast-2 : Asia Pacific (Sydney)
9) ap-northeast-1 : Asia Pacific (Tokyo)
10) ap-northeast-2 : Asia Pacific (Seoul)
11) sa-east-1 : South America (Sao Paulo)
12) cn-north-1 : China (Beijing)
13) cn-northwest-1 : China (Ningxia)
14) us-east-2 : US East (Ohio)
15) ca-central-1 : Canada (Central)
16) eu-west-2 : EU (London)
17) eu-west-3 : EU (Paris)
(default is 3):
Now enter the number for the region where you want to deploy your app.
1b. Select an application to use
1) staging-dragonboat-admin
2) dragonboat
3) [ Create new Application ]
(default is 2):
Now enter the number which application do you want to use or you want
to create new application.
1c. Enter Application Name
(default is "dragonboat2"): dragonboat-Testing
Enter the name application of your choice or just enter its will chose
default name
1d. It appears you are using Node.js. Is this correct?
(Y/n): Y
Its will ask you about the language which you are using if you are
deploying the node it will ask you about node or if your deploying rails or any
other it will ask you about that.
1e. Note: Elastic Beanstalk now supports AWS CodeCommit; a fully-
managed source control service. To learn more, see Docs:
https://aws.amazon.com/codecommit/
Do you wish to continue with CodeCommit? (y/N) (default is n): n
If you have some changes and commit it you can procced with or just enter n
It will deploy the code which is last pushed on your branch
1f. Do you want to set up SSH for your instances?
(Y/n): Y
Ssh key needed if you want to check in in your aws server and want to check
your code If you will not setup ssh key you can never checkin server on aws and
can never see code on aws.
1g. Select a keypair.
1) aws-eb
2) aws-eb2
3) aws-eb3
4) [ Create new KeyPair ]
(default is 3): 4
Use new key pair. Enter 4
1h. Type a keypair name.
(Default is aws-eb4):
Just enter name or empty enter. Its name doesn’t matter.
1i. Enter passphrase (empty for no passphrase):
Just enter passphrase or empty enter. Its name doesn’t matter.
1j. Enter same passphrase again (empty for no passphrase):
If you enter any passphrase in 1i than again enter it. You empty enter than again
enter empty.
NOTE:
NOW THESE ARE THE STEPS TO CONFIGURE NEW APPLICATION
ON AWS. NOW IT WILL CREATE NEW APPLICATION ON AWS.
Now application is configure on aws. So, every application needs an Environment
So you have to create an environment on aws so Just run
2. `eb create enviroment_name` it will create environment for your application and
deploy it on aws. It will take 5 to 10 mints or may be little more time [LAUGH].
NOTE:
These steps are needed when you don’t have
any application on aws or never deploy before.
WHEN YOU HAVE ALREADY DEPLOYED APP
If you have already application on aws and want to deploy in it. And now to deploy latest
code on aws. Just do the following steps
3. Run command `eb init` in your terminal of your project. After running its ask some
questions like if your `aws key` or `aws secret` is not set you need to enter first those
credentials.
3a. Select a default region
1) us-east-1 : US East (N. Virginia)
2) us-west-1 : US West (N. California)
3) us-west-2 : US West (Oregon)
4) eu-west-1 : EU (Ireland)
5) eu-central-1 : EU (Frankfurt)
6) ap-south-1 : Asia Pacific (Mumbai)
7) ap-southeast-1 : Asia Pacific (Singapore)
8) ap-southeast-2 : Asia Pacific (Sydney)
9) ap-northeast-1 : Asia Pacific (Tokyo)
10) ap-northeast-2 : Asia Pacific (Seoul)
11) sa-east-1 : South America (Sao Paulo)
12) cn-north-1 : China (Beijing)
13) cn-northwest-1 : China (Ningxia)
14) us-east-2 : US East (Ohio)
15) ca-central-1 : Canada (Central)
16) eu-west-2 : EU (London)
17) eu-west-3 : EU (Paris)
(default is 3): 14
Now enter the number for the region where your app is already deploy.
3b. Select an application to use
1) staging-dragonboat-admin
2) dragonboat
3) [ Create new Application ]
(default is 2): 2
Now choose in which app you want to deploy your latest code for Active
Admin use 1 for Dragon boat enter 2
3c. Select the default environment.
You can change this later by typing "eb use [environment_name]".
1) dragon-boat-production
2) dragon-boat-staging
(default is 1):
It will ask you in which environment do you want to deploy code.
On staging or on production.
3d. Note: Elastic Beanstalk now supports AWS CodeCommit; a fully-
managed source control service. To learn more, see Docs:
https://aws.amazon.com/codecommit/
Do you wish to continue with CodeCommit? (y/N) (default is n): n
If you have some changes and commit it you can procced with or just enter n
It will deploy the code which is last pushed on your branch
NOTE:
NOW YOU HAVE STEP UP FOR ALREADY DEPLOY APP.
Now just make commit of your latest code or just run command `eb deploy` it will
deploy your latest code on aws.
ERRORS, ISSUES and LOGS:
Which type of errors can occur in deployment of aws.
1. May be node, rails or any other language deployment can have issue of
versions so Login in to your aws account. On upper left of your aws account you
will find Services -> Elastic Beanstalk.
It will show you your all applications if you will see the color of your app red it will
be error in your deployment.
Click on your app. On your left you will find configuration click on it. Go to your
software configuration and change the node version and apply it.
2. May be error in your application so you can check your logs in your left you
can find logs click on it and in logs page on your upper right corner you can find
REQUEST LOGS -> last 100 lines it will download it for you and you can click
on download to see what error happened. Resolve it in your code again deploy it.
IMPORTANT NOTE:
=> if you have more than one applications or environment like staging or
production on aws so before deploy your code you must use environment in
which you want to deploy. `eb list` it will show environments. `eb use
enrionment_name` it will select environment for you in which you want to deploy
now `eb deploy` it will deploy your latest code on aws.

More Related Content

PDF
AWS Lambda Hands-on: How to Create Phone Call Notifications in a Serverless Way
PPTX
PDF
Writing simple buffer_overflow_exploits
PPTX
Openshift Presentation ppt compare with VM
PDF
Appium understanding document
PDF
Appium- part 1
PDF
Android programming-basics
PPTX
Django simplified : by weever mbakaya
AWS Lambda Hands-on: How to Create Phone Call Notifications in a Serverless Way
Writing simple buffer_overflow_exploits
Openshift Presentation ppt compare with VM
Appium understanding document
Appium- part 1
Android programming-basics
Django simplified : by weever mbakaya

Similar to Aws deployment (20)

PPTX
1 app 2 developers 3 servers
PDF
Introduction to TensorFlow and OpenCV libraries
ODP
Who pulls the strings?
PDF
A Long-Awaited Check of Unreal Engine 4
PDF
Appium workship, Mobile Web+Dev Conference
PDF
Getting started with appium
PDF
Appium mobile web+dev conference
DOCX
Debugger & Profiler in NetBeans
DOCX
Android wear notes
DOCX
Android wear notes
DOCX
Introduction to the .NET Access Control Service
DOCX
Introduction to the .NET Access Control Service
PPTX
appiumpresent-211128171811.pptx projet de presentation
PDF
INET for Starters
PPTX
Appium Presentation
PPTX
owasp top 10
PPTX
Automation testing on ios platform using appium
PDF
AWS Lambda Hands-on: How to Create Phone Call Notifications in a Serverless W...
PDF
Web application penetration testing lab setup guide
PDF
Appium Automation Testing Tutorial PDF: Learn Mobile Testing in 7 Days
1 app 2 developers 3 servers
Introduction to TensorFlow and OpenCV libraries
Who pulls the strings?
A Long-Awaited Check of Unreal Engine 4
Appium workship, Mobile Web+Dev Conference
Getting started with appium
Appium mobile web+dev conference
Debugger & Profiler in NetBeans
Android wear notes
Android wear notes
Introduction to the .NET Access Control Service
Introduction to the .NET Access Control Service
appiumpresent-211128171811.pptx projet de presentation
INET for Starters
Appium Presentation
owasp top 10
Automation testing on ios platform using appium
AWS Lambda Hands-on: How to Create Phone Call Notifications in a Serverless W...
Web application penetration testing lab setup guide
Appium Automation Testing Tutorial PDF: Learn Mobile Testing in 7 Days
Ad

Recently uploaded (20)

PDF
2025 Textile ERP Trends: SAP, Odoo & Oracle
PDF
How Creative Agencies Leverage Project Management Software.pdf
PDF
System and Network Administration Chapter 2
PDF
Design an Analysis of Algorithms II-SECS-1021-03
PDF
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
PDF
Wondershare Filmora 15 Crack With Activation Key [2025
PDF
How to Migrate SBCGlobal Email to Yahoo Easily
PPTX
L1 - Introduction to python Backend.pptx
PDF
Design an Analysis of Algorithms I-SECS-1021-03
PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PDF
Digital Strategies for Manufacturing Companies
PDF
Odoo Companies in India – Driving Business Transformation.pdf
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PDF
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
PPTX
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
PDF
Nekopoi APK 2025 free lastest update
PPTX
history of c programming in notes for students .pptx
PDF
wealthsignaloriginal-com-DS-text-... (1).pdf
2025 Textile ERP Trends: SAP, Odoo & Oracle
How Creative Agencies Leverage Project Management Software.pdf
System and Network Administration Chapter 2
Design an Analysis of Algorithms II-SECS-1021-03
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
Wondershare Filmora 15 Crack With Activation Key [2025
How to Migrate SBCGlobal Email to Yahoo Easily
L1 - Introduction to python Backend.pptx
Design an Analysis of Algorithms I-SECS-1021-03
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
Digital Strategies for Manufacturing Companies
Odoo Companies in India – Driving Business Transformation.pdf
How to Choose the Right IT Partner for Your Business in Malaysia
Navsoft: AI-Powered Business Solutions & Custom Software Development
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
Nekopoi APK 2025 free lastest update
history of c programming in notes for students .pptx
wealthsignaloriginal-com-DS-text-... (1).pdf
Ad

Aws deployment

  • 1. Aws Deployment : Installation of cli’s for aws: For aws deployment you need to follow these steps. 1. Install `python-pip` by running the command `sudo apt-get install python-pip`. 2. Install `setuptools` by running the command `sudo pip install setuptools`. 3. Install `awscli` by running the command `sudo pip install awscli`. 4. Install `ebcli` by running the command `sudo pip install ebcli`. If you don’t want to do step 3 and 4 you can also install awscli (amazon web services command line) and ebcli (elasticbeanstalk) both by running command `sudo pip install awsebcli`. Deployment on aws: WHEN YOU WANT TO DEPLOYED APP FROM SCRATCH: Now we are able to do deployment on aws. Now going to your project directory and run following commands and answer the question asked by aws. 1. Run command `eb init` in your terminal of your project. After running its ask some questions like if your `aws key` or `aws secret` is not set you need to enter first those credentials. 1a. Select a default region 1) us-east-1 : US East (N. Virginia) 2) us-west-1 : US West (N. California) 3) us-west-2 : US West (Oregon) 4) eu-west-1 : EU (Ireland) 5) eu-central-1 : EU (Frankfurt) 6) ap-south-1 : Asia Pacific (Mumbai) 7) ap-southeast-1 : Asia Pacific (Singapore) 8) ap-southeast-2 : Asia Pacific (Sydney) 9) ap-northeast-1 : Asia Pacific (Tokyo) 10) ap-northeast-2 : Asia Pacific (Seoul) 11) sa-east-1 : South America (Sao Paulo) 12) cn-north-1 : China (Beijing) 13) cn-northwest-1 : China (Ningxia) 14) us-east-2 : US East (Ohio) 15) ca-central-1 : Canada (Central) 16) eu-west-2 : EU (London) 17) eu-west-3 : EU (Paris) (default is 3):
  • 2. Now enter the number for the region where you want to deploy your app. 1b. Select an application to use 1) staging-dragonboat-admin 2) dragonboat 3) [ Create new Application ] (default is 2): Now enter the number which application do you want to use or you want to create new application. 1c. Enter Application Name (default is "dragonboat2"): dragonboat-Testing Enter the name application of your choice or just enter its will chose default name 1d. It appears you are using Node.js. Is this correct? (Y/n): Y Its will ask you about the language which you are using if you are deploying the node it will ask you about node or if your deploying rails or any other it will ask you about that. 1e. Note: Elastic Beanstalk now supports AWS CodeCommit; a fully- managed source control service. To learn more, see Docs: https://aws.amazon.com/codecommit/ Do you wish to continue with CodeCommit? (y/N) (default is n): n If you have some changes and commit it you can procced with or just enter n It will deploy the code which is last pushed on your branch 1f. Do you want to set up SSH for your instances? (Y/n): Y Ssh key needed if you want to check in in your aws server and want to check your code If you will not setup ssh key you can never checkin server on aws and can never see code on aws. 1g. Select a keypair. 1) aws-eb 2) aws-eb2 3) aws-eb3 4) [ Create new KeyPair ]
  • 3. (default is 3): 4 Use new key pair. Enter 4 1h. Type a keypair name. (Default is aws-eb4): Just enter name or empty enter. Its name doesn’t matter. 1i. Enter passphrase (empty for no passphrase): Just enter passphrase or empty enter. Its name doesn’t matter. 1j. Enter same passphrase again (empty for no passphrase): If you enter any passphrase in 1i than again enter it. You empty enter than again enter empty. NOTE: NOW THESE ARE THE STEPS TO CONFIGURE NEW APPLICATION ON AWS. NOW IT WILL CREATE NEW APPLICATION ON AWS. Now application is configure on aws. So, every application needs an Environment So you have to create an environment on aws so Just run 2. `eb create enviroment_name` it will create environment for your application and deploy it on aws. It will take 5 to 10 mints or may be little more time [LAUGH]. NOTE: These steps are needed when you don’t have any application on aws or never deploy before. WHEN YOU HAVE ALREADY DEPLOYED APP If you have already application on aws and want to deploy in it. And now to deploy latest code on aws. Just do the following steps
  • 4. 3. Run command `eb init` in your terminal of your project. After running its ask some questions like if your `aws key` or `aws secret` is not set you need to enter first those credentials. 3a. Select a default region 1) us-east-1 : US East (N. Virginia) 2) us-west-1 : US West (N. California) 3) us-west-2 : US West (Oregon) 4) eu-west-1 : EU (Ireland) 5) eu-central-1 : EU (Frankfurt) 6) ap-south-1 : Asia Pacific (Mumbai) 7) ap-southeast-1 : Asia Pacific (Singapore) 8) ap-southeast-2 : Asia Pacific (Sydney) 9) ap-northeast-1 : Asia Pacific (Tokyo) 10) ap-northeast-2 : Asia Pacific (Seoul) 11) sa-east-1 : South America (Sao Paulo) 12) cn-north-1 : China (Beijing) 13) cn-northwest-1 : China (Ningxia) 14) us-east-2 : US East (Ohio) 15) ca-central-1 : Canada (Central) 16) eu-west-2 : EU (London) 17) eu-west-3 : EU (Paris) (default is 3): 14 Now enter the number for the region where your app is already deploy. 3b. Select an application to use 1) staging-dragonboat-admin 2) dragonboat 3) [ Create new Application ] (default is 2): 2 Now choose in which app you want to deploy your latest code for Active Admin use 1 for Dragon boat enter 2 3c. Select the default environment. You can change this later by typing "eb use [environment_name]". 1) dragon-boat-production 2) dragon-boat-staging (default is 1): It will ask you in which environment do you want to deploy code. On staging or on production. 3d. Note: Elastic Beanstalk now supports AWS CodeCommit; a fully-
  • 5. managed source control service. To learn more, see Docs: https://aws.amazon.com/codecommit/ Do you wish to continue with CodeCommit? (y/N) (default is n): n If you have some changes and commit it you can procced with or just enter n It will deploy the code which is last pushed on your branch NOTE: NOW YOU HAVE STEP UP FOR ALREADY DEPLOY APP. Now just make commit of your latest code or just run command `eb deploy` it will deploy your latest code on aws. ERRORS, ISSUES and LOGS: Which type of errors can occur in deployment of aws. 1. May be node, rails or any other language deployment can have issue of versions so Login in to your aws account. On upper left of your aws account you will find Services -> Elastic Beanstalk. It will show you your all applications if you will see the color of your app red it will be error in your deployment. Click on your app. On your left you will find configuration click on it. Go to your software configuration and change the node version and apply it. 2. May be error in your application so you can check your logs in your left you can find logs click on it and in logs page on your upper right corner you can find REQUEST LOGS -> last 100 lines it will download it for you and you can click on download to see what error happened. Resolve it in your code again deploy it. IMPORTANT NOTE: => if you have more than one applications or environment like staging or production on aws so before deploy your code you must use environment in which you want to deploy. `eb list` it will show environments. `eb use enrionment_name` it will select environment for you in which you want to deploy now `eb deploy` it will deploy your latest code on aws.