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

Clarification on TaskDefinition Launch Type #2

Open
carpiediem opened this issue Mar 13, 2019 · 1 comment
Open

Clarification on TaskDefinition Launch Type #2

carpiediem opened this issue Mar 13, 2019 · 1 comment

Comments

@carpiediem
Copy link

I'm getting an error on one of the last lines of your .circleci/config.yml file and I think it's because I set up my AWS infrastructure incorrectly. Here's the error that CircleCI is reporting for the aws ecs update-service command:
An error occurred (InvalidParameterException) when calling the UpdateService operation: Task definition does not support launch_type FARGATE.

I'm new to ECS and couldn't figure out the setup based on your bullet points alone. I followed CircleCI's suggestion of using terraform to create an AWS stack.

It looks like CircleCI's terrafrom configuration uses AWS Fargate, but your task definition is meant for EC2-type clusters. Is that correct?

Is there any guidance you can add (or a tutorial you can recommend) on how a cluster should be configured for use here? Thanks, in advance, for any pointers.

@carpiediem
Copy link
Author

FYI, I was hoping that I might get this working by just tweaking register-task-definition command, but a new error is complaining about the option I've added. I'm not sure why, since it seems to work this way in AWS' docs.

The change:

# Register task definition
json=$(aws ecs register-task-definition --container-definitions "$task_def" --family "$FAMILY" --requires-compatibilities FARGATE)

The error:

usage: aws [options] <command> <subcommand> [<subcommand> ...] [parameters]
To see help text, you can run:

  aws help
  aws <command> help
  aws <command> <subcommand> help

Unknown options: --requires-compatibilities, FARGATE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant