AWS & JSCreated by / Walter Dal Mut @walterdalmut
Always EC2, EBS, money moneymoney...
AWS S3 for static resourcesS3 is storage for the InternetS3 makes web-scale computing easier for developersInexpensiveHigh AvailableSecureVersionable99.999999999% durability
Inexpensivewebsite with 1 Billion requests per month
400$ for the navigation0.03$ per 1000 GET
1200$ for 10 TeraBytes for data transfer0.12$ per GB
Hey boy, take it easy!website with 1 Million requests per month
0.30$ for the navigation12$ for 100 GB for data transfer
Just 12.30$ per month!
domain name == bucket name
Enable static website hosting
Permissions...
Open your bucket to everyone!{ "Version": "2008‐10‐17", "Id": "S3PolicyId1", "Statement": [ { "Sid": "IPAllow", "Effect": "Allow", "Principal": { "AWS": "*" }, "Action": "s3:GetObject", "Resource": "arn:aws:s3:::example.walterdalmut.com/*", "Condition": { "IpAddress": { "aws:SourceIp": "0.0.0.0/0" } } } ]}
Name Resolution!My hostname CNAME bucket hostname
example.walterdalmut.comCNAME
example.walterdalmut.com.s3-website-eu-west-1.amazonaws.com
Performance
More time at Santorini!
GeoDistributed?
AWS CloudFront CDN
Configure it - Origin!
Configure it - Destination
Configure it - HTTPS
Configure it - Logging
Just use it!
example.walterdalmut.com
CNAME
d1110qbasw60qq.cloudfront.net
ORIGIN
example.walterdalmut.com.s3-website-eu-west-1.amazonaws.com
Monitor it!
Time to relax!