silinternational / opsworks-deploy
此软件包已被废弃,不再维护。未建议替代软件包。
用于使用AWC CLI脚本启动和监控OpsWorks应用程序部署的Shell脚本
dev-master
2019-06-18 20:53 UTC
This package is auto-updated.
Last update: 2024-05-19 08:23:36 UTC
README
使用AWC CLI脚本来启动OpsWorks应用程序部署的Shell脚本。我们将此脚本作为我们持续部署的一部分,以在OpsWorks上启动部署并监控结果。
启动部署后,它将继续检查部署的状态,并监控成功或失败。脚本在成功时将退出状态码为0
。
我们欢迎改进,如果您有任何拉取请求或想法,请提交。到目前为止,这相当快且简单,但效果不错。
用法
./opsworks-deploy <aws-region> <stack-id> <application-id>
示例
$ ./opsworks-deploy us-east-1 1234-sdfhjkuytfdcxswerfgvbnk-23456 2234-akflshfiwefjnfsfdsdffs-111
Deployment initiated, ID: 12f01234441-6fsb-4b70-8bba-43012312374c
Attempt #0 of 30...
Current Status: running
Attempt #1 of 30...
Current Status: running
Attempt #2 of 30...
Current Status: running
Attempt #3 of 30...
Current Status: running
Attempt #4 of 30...
Current Status: running
Attempt #5 of 30...
Current Status: running
Attempt #6 of 30...
Current Status: running
Current Status: successful
Deployment completed successfully!
AWS CLI工具
此脚本使用Amazon Web Services命令行界面工具。可以通过运行pip install awscli
来安装。该工具期望设置环境变量AWS_ACCESS_KEY_ID
和AWS_SECRET_ACCESS_KEY
。这些变量可以从您创建部署IAM用户时AWS那里获得。