Cloud computing is on-demand delivery
of IT resources and applications via the Internet with pay-as-you-go
pricing
meta-data vs user-data vpc vs subnet
- s3
- encrypt by SDK
- versioning->rollback
- Lifecycle management->ex. log file, archives
- s3-IA
- Infrequent Access
- extra cost for retrieval
- cheaper
- Glacier
- 3-5 hrs/retrieve
- cheapest
- ebs
- SSD
- IOPS good
- HHD
- throughput good
- create snapshot and store in s3
- loose coupling and made app stateless
- SSD
- records AWS API calls for accounts
- RDS
- synchronously replicated cross AZ
- snapshots in s3
- encryption
- elb, cloudwatch, auto scaling
- what->where->when
- launch config->security group & AMI...etc->cloudwatch alerm/sceduale event
- Minimum/Desired/Maximum size
- Application Load Balancer->new service
- route traffic to a
target group
- route traffic to a
- cloudwatch
- monitoring service for AWS cloud resources
- alarms->scale in/out
- custom metrics
- Design for failure
- Embrace Elasticity & Automate
- Loose coupling sets you free
- 3 tiers, web -> app -> db
- pipeline mode: a->b->c by queues
- Become stateless
- ex. DynamoDB
- Think Parallel
- 4 ec2 1 hrs === 1 ec2 4 hrs -> same price but lesser time cost
- Leverage different storage options
- Offload log file to s3
- Build security into every layer
- privelege -> ex. security group
- IAM