Estoy deployng Fargate servicios a través de AWS CDK con facilidad.
Ahora necesito actualizar un servicio, por ejemplo, una tarea de la imagen.
Estoy tratando de lograr esto mediante el uso de @aws-cdk/aws-codepipeline y la acción EcsDeployAction
Estoy tratando de importar y actualizar una ya existente (desplegada) fargate servicio, como esto:
const pipeline = new codepipeline.Pipeline(this, 'MyPipeline')
// import an existing fargate service
const fargateService = ecs.FargateService.fromFargateServiceArn(
this,
"FargateService",
"MyFargateServiceARN"
);
// Deploy a new version according to what
const sourceStage = this.pipeline.addStage({
stageName: 'Deploy',
actions: [
new codepipeline_actions.EcsDeployAction({
actionName: "ECS-Service",
service: fargateService, <--- here the typescript error
input: ...
})
]
})
Pero no parece correcta porque llego un manuscrito de error:
Property 'cluster' is missing in type 'IFargateService' but required in type 'IBaseService'
Alguna idea?