Je suis deployng Fargate services via AWS CDK avec facilité.
Maintenant, j'ai besoin de mettre à jour un service, par exemple une tâche de l'image.
Je m 'en essayant d'accomplir cela en utilisant @aws-cdk/aws-codepipeline et l'action EcsDeployAction
Je suis en train d'importer et de mettre à jour une (déjà déployé) fargate service, comme ceci:
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: ...
})
]
})
Mais il ne semble pas correcte parce que je suis un tapuscrit d'erreur:
Property 'cluster' is missing in type 'IFargateService' but required in type 'IBaseService'
Une idée?