aws: introduction
DESCRIPTION
A brief intro to AWS accompanied with a live demonstration. I presented this at Chicago Java Users Group on Sep 5 2013TRANSCRIPT
AWS: IntroductionSachin Dole
Web software engineer Love consumer websites Belief: people first, software second Java on top, in the middle, at the bottom Soccer coach for kids
[email protected], @sdoledotcom
About me
“What do you want from me?” – Pink Floyd Live in clouds? Are you AWSome? You shall ask! I will try to give!
About you
PAASing through Clouds
Source: Venturebeat.com
Providers
IAAS PAAS
SAAS
AWS
AMI Instance Ephemeral, EBS (IOPS) IAM (keypairs) S3, Glacier RDS AutoScale
Terms
Demo: AWS console
Start a new linux instance◦ Capacity options◦ EBS, Ephemeral◦ Keypairs, security groups◦ IOPS◦ Start, stop, terminate behavior◦ Volumes, snapshots and AMIs◦ Convert AMZ key to putty keys◦ Connect to instance with putty
Demo – talking points
Demo console Route 53 setup S3 buckets Run through RDS setup SES setup Show pricing
◦ EC2◦ S3◦ RDS◦ Calculator◦ Usage reports
Consumer web stack
Web, region 1
Web, region 2
Services, region 1
Services, region 1
CDN
CDN
DNS
Firewall
Caching
Image storeLong term
store
Failover
Failover
Failover
FailoverDatabase
Replication
AWS consumer web stack
Linux, Windows
EC2
EC2, Cloud formation
MapReduce
Cloudfront
Cloudfront
Route 53
Security groups
Elasticache
S3Glacier
EC2
EC2
EC2
EC2RDS
RDS
SES, SNS
EC2 Range: $ 0.06 to $ 8.35 /h Types: by OS, by onDem/Res/Spot Data transfer Storage: EBS, IOPS, S3, Glacier Monitoring Services http://
calculator.s3.amazonaws.com/calc5.html
$: How it varies
CLI reference (click) UI equivalents (show in console) JAVA API
Tools & API
InputStream creds = getResourceAsStream("/cred.properties");
PropertiesCredentials creds = new PropertiesCredentials(creds);
AmazonS3Client s3Client = new AmazonS3Client(creds);
PutObjectRequest putter = new PutObjectRequest(…);
GetObjectRequest getter = new GetObjectRequest(…);
Save picture on S3
http://venturebeat.com/2011/11/14/cloud-iaas-paas-saas/ http://aws.amazon.com/documentation/ http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/putty.html http://aws.amazon.com/sdkforjava/ http://calculator.s3.amazonaws.com/calc5.html
Sources
Thank you