EC2 Instance & AMI
When launched, remember permissions are by default deny-all. This means connecting via SSH (or otherwise) to access your instance will require a KeyPair.
chmod 400 keyname.pem ssh -i /path/to/keyname.pem <username>@<ec2_ip_addr>
Keep in mind that <username> will differ by your instance type:
- Amazon AMI: ec2-user
- Ubuntu AMI: ubuntu
- Default: root
RDS Best Practices
- Choose DB instance class carefully
- Use Amazon EBS optimized instances
- Use Provisioned IOPS for production
- Use Multi-AZ for high availability
- Use read replicas
- scaling needs
- cross-region replication
- additional failure recovery
CloudFront
- General
- Separate CNAME for static content
- static content cached, dynamic content straight from origin
- most efficient
- more effort to setup and manage
- Point entire URL to CloudFront
- easiest to manage
- use URL patterns to stage dynamic content
- ALL content goes through edge locations
- Separate CNAME for static content
- Features
- Video streaming
- RTMP and HTTPS
- Adaptive bitrate live and VOD streaming (HLS, HDS, Smooth, MPEG-DASH)
- Security
- custom SSL
- Geo restriction
- Content management
- Price flexible
- pay for use
- price classes
- reserved capacity private pricing
- Dynamic content acceleration
- low TTL
- multiple cache behaviors
- Put/Post HTTP verb support
- multiple origin servers
- Video streaming
Cloudwatch
- Centralized metrics repository
- distributed stat gathering system
- metrics are seamlessly collected at hypervisor level
- custom metrics are generated by your own application services
- Store and monitor app log files with CloudWatch logs
- route OS, app, and custom log files
- configure CloudWatch logs to:
- monitor the incoming log entires for specific symbols or messages
- archive log data
- watch 404 errors for bad inbound links
- Alarms (single metric performs one or more actions)
- Types
- Amazon Simple Notification Service (SNS)
- Auto scaling policies to config scaling action(s)
- Amazon EC2 Action to stop/terminate instances
- Types
0 Comments