EC2,S3,SimpleDB,ELB,Amazon CloudWatch
1、S3和EBS的区别

instance storage在EC2关机的时候丢失
CloudFront 边缘服务器
RDS:mysql SimpleDB: document store
2、使用弹性IP、负载均衡、外部IP都会收费,所以尽量使用内部IP地址
3、免费套餐:
https://aws.amazon.com/cn/free/?all-free-tier.sort-by=item.additionalFields.SortRank&all-free-tier.sort-order=asc
4、控制台:http://aws.amazon.com/console
5、aws toolkit for pycharm:
https://aws.amazon.com/cn/about-aws/whats-new/2018/11/introducing-aws-toolkit-for-pycharm/
6、收费计算:
https://calculator.s3.amazonaws.com/index.html
7、EC2 API TOOLS
https://www.cnblogs.com/xjimmyshcn/archive/2011/06/16/2082418.html
ptyhon
https://blog.csdn.net/apache0554/article/details/45599211?utm_source=blogxgwz0
https://pypi.org/project/ec2-api/1.0.1/
8、AWS SDK FOR PYTHON
https://amazonaws-china.com/cn/sdk-for-python/
https://www.cnblogs.com/Code-life/p/6242994.html
9、S3
容器和对象

S3要和EC2同地区
RRS价格比较低,适合用来存储非原始文件。

对象版本

自定义标头要用 x-amz-meta-* 来表示
对象会继承容器的访问列表
private / public-read
S3传播大文件

信息尽量1次性填完,多次请求会多收费
默认权限是private
10、simpleDB
每个账号1TB
所有的数据都是字符串

可以用SQL语句来查询
有NULL的字段无法排序
查询有5秒限制,超过5秒返回部分,带NextToken
XML格式
会返回一个BoxUsage,表示查询的复杂度,越复杂收费越高
CONSOLE无法操作,只能通过SDK
11、RDS
备份时间0-8天,0表示不备份
限制数据库可以联机的客户端
6中DB机器

RDS会产生CloudWatch的监控数据,而且是免费的
备份时间是无法连接的
存储空间只能加大不能调小
两种备份方式:快照(永久)、备份(0-8天)

12、EC2
使用EBS-backed AMI


尽量使用内部IP
获取内部IP
wget -qO- x/latest/meta-data/local-ipv4
要先申请Key Pairs才能连进去,然后SSH
选择正确的AMI

链接方式
ssh -i web.pem root@ip
13、AMI
?????????????
14、AWS上的负载均衡
轮询替换DNS
软件负载均衡
ELB
负载均衡算法

ELB主要做多个地区的负载均衡:平均分配

15、Auto Scaling

自动延展,配合CloudWatch

触发器:时间间隔,突破时间门槛


通过Auto Scaling API TOOLS来配置
16、异步消息

17、监控:CloudWatch
18、云端安全:
SSL
数据存储加密
安全组
内部服务器不要有外网地址
19、AWS费用优化
使用 reserved instances
网友评论