Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not synthesize CloudFormation template for fargate-service-with-auto-scaling #137

Closed
temirov opened this issue Oct 7, 2019 · 0 comments · Fixed by #139
Closed

Can not synthesize CloudFormation template for fargate-service-with-auto-scaling #137

temirov opened this issue Oct 7, 2019 · 0 comments · Fixed by #139
Labels
bug This issue is a bug. needs-triage This issue or PR still needs to be triaged.

Comments

@temirov
Copy link

temirov commented Oct 7, 2019

🐛 Bug Report

What is the problem?

Can not synthesize CloudFormation template for fargate-service-with-auto-scaling

Reproduction Steps

git clone https://github.com/aws-samples/aws-cdk-examples.git
cd aws-cdk-examples/typescript/ecs/fargate-service-with-auto-scaling
npm install
npm run build

Verbose Log

> [email protected] build /home/ec2-user/environment/aws-cdk-examples/typescript/ecs/fargate-service-with-auto-scaling
> tsc

index.ts:17:7 - error TS2345: Argument of type '{ cluster: Cluster; image: RepositoryImage; }' is not assignable to parameter of type 'NetworkLoadBalancedFargateServiceProps'.
  Object literal may only specify known properties, and 'image' does not exist in type 'NetworkLoadBalancedFargateServiceProps'.

17       image: ecs.ContainerImage.fromRegistry("amazon/amazon-ecs-sample")
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Found 1 error.

npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] build: `tsc`
npm ERR! Exit status 2
npm ERR! 
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/ec2-user/.npm/_logs/2019-10-07T18_43_55_681Z-debug.log

Environment

  • CDK CLI Version: 1.12.0 (build 923055e)
  • OS: Linux ip-172-31-26-69 4.14.143-91.122.amzn1.x86_64 1 SMP Wed Sep 11 00:43:34 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
  • Language: TypeScript
@temirov temirov added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Oct 7, 2019
@mergify mergify bot closed this as completed in #139 Oct 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug. needs-triage This issue or PR still needs to be triaged.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant