【文件属性】:
文件名称:ecs-fargate-go-example-webserver:用于在ECS Fargate容器中运行我的网站的脚本和配置
文件大小:4KB
文件格式:ZIP
更新时间:2021-02-22 07:40:38
Shell
欢迎
用于自动执行ECS网关和创建群集/服务/任务并在容器中运行公开的脚本。
创建一个新集群并在容器中启动站点:
./cluster_up.sh
./start.sh
停止容器并拆除群集:
./stop.sh
./cluster_down.sh
查看正在运行的容器中的日志
使用以下命令获取最新的任务ID:
ecs-cli compose --project-name richandersonio-web service ps --cluster-config richandersonio-web --ecs-profile richandersonio-web-profile
ecs-cli logs --task-id {insert-task-id} --follow --cluster-config tutorial --ecs-profile tutorial-profi
【文件预览】:
ecs-fargate-go-example-webserver-master
----cluster_down.sh(380B)
----ecs-params.yml(375B)
----stop.sh(349B)
----start.sh(377B)
----docker-compose.yml(305B)
----task-role.json(237B)
----README.md(1KB)
----cluster_up.sh(762B)