【发布时间】:2021-01-29 01:18:12
【问题描述】:
在我使用 EC2 实例部署 ECS 集群之后。
现在我想编写 code_pipeline 用于将服务部署到 ECS 服务集群。
deploy_actions = aws_codepipeline_actions.EcsDeployAction(
action_name="DeployAction",
service=ecs.IBaseService(cluster=cluster_name,service=service_name),
input=build_output,
)
Cluster_name 和 ecs service_name 已经存在。
我想使用 cdk python 将现有集群和服务导入 code_pipeline。
但它不起作用。
请教我如何定义service=ecs.IBaseService
【问题讨论】:
标签: python amazon-ecs aws-cdk