使用说明
配备AWS Lambda的MCP服务器
需求
地方发展
- Python>=3.12
- AWS CLI已配置
- Terraform命令行界面
AWS资源
- 具有适当权限的AWS帐户
- S3地形状态桶
安装说明
1.AWS配置
# Configure AWS CLI credentials
aws configure
2.应用程序设置
使用flake8运行linting检查,以确保代码质量和样式一致性:
flake8 app/
在本地运行测试
#
python -m pytest --cov=app app/test/
#
python -m pytest app/test/
地形状态
预构建的S3存储桶用于存储地形状态文件。存储桶名称在 backend.tf 文件。
命令
terraform -chdir=infra init
terraform -chdir=infra fmt
terraform -chdir=infra plan
terraform -chdir=infra apply -auto-approve
terraform -chdir=infra destroy -auto-approve
