मैं कर रहा हूँ deployng Fargate के माध्यम से सेवाओं एडब्ल्यूएस CDK आसानी के साथ.
अब मैं अद्यतन करने की जरूरत है एक सेवा, उदाहरण के लिए, एक काम की छवि ।
मैं 'm की कोशिश कर रहा करने के लिए का उपयोग करके यह पूरा @एडब्ल्यूएस-cdk/एडब्ल्यूएस-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'
किसी भी विचार है?