나 deployng Fargate 서비스를 통해 AWS CDK 습니다.
지금 내가 필요로하는 서비스를 업데이트,인스턴스에 대한 작업은 이미지입니다.
I'm 하려고 사용하여 이 작업을 수행@aws-cdk/aws-codepipeline 고 작업 EcsDeployAction
내가 노력하고 가져 오기 및 업데이트하는 기존(이전에 배포)fargate 서비스,이와 같은:
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: ...
})
]
})
하지만 그것은 보이지 않는 정확하기 때문에 나는 타이프 라이터 오류가:
Property 'cluster' is missing in type 'IFargateService' but required in type 'IBaseService'
어떤 생각이 있으십니까?