AWS Core services:
* The AWS web console: the entry point for configuring your infrastructure in the AWS cloud
* The Free Tier and how to setup billing alerts
* Elastic Compute Cloud (EC2) instances, and the ease with which you can pick a particular Amazon Machine Image (AMI) for your workload, and spin it up as an instance right away
* How to create and deploy a high-availability web application in AWS, with an Elastic Load Balancer (ELB) and a multi-availability-zone Relational-Database-Service (RDS) instance
* How CloudFormation can automate all of the above.
Serverless Functions:
Serverless architecture allows developers to focus on code and their business problem rather than spending time looking after backend infrastructure. Serverless architecture can help developers build scalable, high-performing, and cost-effective applications quickly
We will talk about how serverless architecture and AWS Lambda can make things easier, cheaper, and help to accelerate development of projects.
2. Meet Rory
• Developer in R&D team at BBD
– Training for 700 Developers
– All Languages & Frameworks
• Organizer for
– Jozi-JUG
– AWS-Jozi
• Not related to Tyrion Lannister
• Don’t do kids parties
9. Lift and Shift
(Minimal
Change)
Move theApp
Infrastructure
Decommission
Do NotMove
Determine
Migration
Process
ManuallyMove
App and Data
rd3 Party Tools
AWS VM Import
Refactor
forAWS
Rebuild Application
Architecture
Refactor
forAWS
Application
Lift and Shift
Vendor Movethe
S/PaaS Application
(if available)
3rd Party Migration Tool
Manually Move App and Data
Determine
MigrationProcess
Replatform
(typically legacy
applications)
Recode App
Components
Rearchitect
Application
Recode
Application
Architect AWS Environment
and Deploy App, Migrate Data
Org/Ops
Impact
Analysis
Change
Management
Plan
Discover,
Assess (Enterprise
Architecture and
Applications)
Operate
Determine
MigrationPath
Design, Build AWS
Environment
Signoff
Tuning Cutover
Identify
Ops Changes
Migrationand
UAT Testing
Plan Migration and Sequencing
Adoption
Source: https://www.slideshare.net/AmazonWebServices/aws-migration-planning-roadmap
Lift and Shift
Cloud Native
10. Signing up for an AWS account
• Sign up through https://aws.amazon.com
• You will need a credit card
• There will be a telephone verification
• Choose a zone
• try and stick to one
• Ireland is Best!
13. AWS Core Services
• Traditional Infrastructure Amazon Web Services
Security
Network
Security
Network
Security Groups NACLs Access Mgmt
VPCVPCEC2 “Classic”
“Public
”
ELB
On-Demand
Provision
Security
Security Groups Network ACLs AWS IAMFirewalls ACLs Administrators
Networking
VPCELBRouter Network Pipeline Switch
Storage
and
Database
SAN
DB Amazon
EBS
Amazon
EFS
Amazon
S3
Amazon
RDS
Servers
Amazon EC2 InstancesOn-Premises Servers Beanstalk
14. Simple Storage Service (S3)
• Cloud based file storage
• Simple API to CRUD files
• Unlimited capacity
• Static website hosting
15.
16. EC2
• Hardware virtualization in the cloud
• Various sized servers
• All major operating systems
• Provision, configure, start and stop machines
from your App!
• Full operating system access via SSH and
Security Groups
17.
18. Elastic Beanstalk
• Deploy and scale web applications
• Languages: Java, .NET, PHP, Node.js, Python, Ruby…
• Servers: Apache, Nginx, Tomcat , IIS
• Upload your code; AWS handles:
Deployment
Capacity Provisioning
Load balancing
Auto scaling
Health Monitoring
21. EC2 Container Service
• Run Docker containers in EC2 cluster
• API controlled
• Support Images from private Docker
repositories
• Docker CE and EE for AWS
• Docker swarm for Cloud
22.
23. Tooling
• AWS and EB CLI
• IDE integration – Eclipse, IntelliJ,
Visual Studio
• AWS SDK
• API to manage AWS services
• Use services from within your
application
• Android and IOS app
24.
25. Billing
Free Tier
• Free for 12 months
• EC2 - run 1 micro instance x 1 month or 2
micro instances x half a month
• S3 - 5 GB of Standard Storage
• First 1 million Lambda calls a month
And a lot more….
26.
27. SSH
• SSH keys are used for secured
access to EC2 instances
28.
29. AWS CodeCommit
AWS CodeDeploy
AWS CodePipeline
Software Development and
Continuous Delivery Toolchain
AWSCodeBuild
AWS CodeStar
AWS CloudFormation
AWS OpsWorks
Infrastructure
as Code
AWS OpsWorks for
ChefAutomate
Amazon CloudWatch
AWS CloudTrail
Monitoring
& Logging
AWSConfig
AWSX-Ray
AWS DevOps Portfolio
30. Source Build Test Production
Third Party
Tooling
AWS CodeStar – Implement AWS DevOps
Software Development and Continuous Integration & Delivery Workflow
AWS CodeCommit AWS CodeBuild AWS CodeDeploy
AWS CodePipeline
AWS CodeStar
34. AWS Lambda is a compute
service that runs your code in
response to events and
automatically manages the
compute resources for you
35. Run code in response to events
FUNCTION SERVICES (ANYTHING)
Changes in
data state
Requests to
endpoints
Changes in
resource state
Node
Python
Java
C#
EVENT SOURCE
36.
37. LAMBDA PRICING
• Lambda
– Requests
• First 1 million per month are free
• $0.20 per 1 million requests thereafter
– Duration
• Charged per 100ms execution time
• First 400,000 GB-seconds of compute time per month are free
• $0.00001667 for every GB-second thereafter
• API Gateway
– $3.50 per million API calls received plus data transfer
costs
• Estimate for Malicious Domain Application:
• Lambda: $0.37/hour with 10 threads after free-tier
• API Gateway: $0.71/hour
• Total: ~$1/hr
38.
39. Lambda Considerations
• Lambda can be invoked by **anything** or you can
figure out a way to make it happen.
• NodeJS performs well
• Stateless
• Cold start behavior