Jsem deployng Fargate služby prostřednictvím AWS CDK s lehkostí.
Teď jsem třeba aktualizovat službu, například úkol image.
Jsem 'm se snaží dosáhnout tím, že pomocí @aws-cdk/aws-codepipeline a akce EcsDeployAction
Snažím se importovat a aktualizovat stávající (již dříve nasazeno) fargate služby, jako je tento:
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: ...
})
]
})
Ale nezdá správné, protože jsem si na psacím stroji chyba:
Property 'cluster' is missing in type 'IFargateService' but required in type 'IBaseService'
Nějaký nápad?