EDX AWS Developer: Building on AWS
课程链接
快乐使用EDX的Player
Week 1
Getting Started on AWS
学习资料的Python的link已经不能使用,直接改成Hello, World
# !/bin/bash -ex
sudo yum update -y
sudo pip install flask
sudo pip install requests
mkdir PythonWebApp
cd PythonWebApp
sudo cat >> flaskApp.py << EOF
from flask import Flask
import requests
app = Flask(__name__)
@app.route("/")
def main():
text = "Hello World"
return text
if __name__ == "__main__":
app.run(host='0.0.0.0', port=80)
EOF
sudo python flaskApp.py
Cloud Infrastructure and Responsibility
一些缩略语
- VPC: Visual Private Cloud
- AZ: Availability Zone
理清楚Region和AZ的关系和scope


Week 2
关于这次上传图片APP的架构
其中,Rekognition是亚马逊提供的一个图像识别工具
Week 3
和材料有点不同,现在AWS已经把RDS的SecurityGroup整合了,
这里直接新建了一个给RDS,inbound允许tcp的3306
python运行时候还需要在环境变量里面设置s3,flask(handson没说)
In the Name column, type PHOTOS_BUCKET
In the Value column, type the name of the Amazon S3 bucket you created earlier.
Note: Make sure to delete any white space that was inserted while copy/pasting.
In the Name column, type FLASK_SECRET
The Flask app uses a secret value to encrypt session variables.
In the Value column, type random characters and numbers.
Week 3~6
没遇上什么太大的问题,基本上照着做就行了(也从侧面反映出底层逻辑已经多年不改了)
AWS Developer: Deploying on AWS
Week 2
CodeBuild的部分有很多不一样的地方,最主要的是
- 需要增加AmazonElasticFileSystem的权限,嫌麻烦直接FullAccess
- Docker Image太老了,用了aws/codebuild/standard:3.0,然后改了这里