Amazon ECS Fargate task creation through Jenkins

0 votes

I am trying to create a ECS fargate type task on ECS through this command aws ecs register-task-definition --family ${FAMILY} --cli-input-json file://${NAME}-v_${BUILD_NUMBER}.json --region ${REGION} as mentined in docs here. Task defination file is given below

task definitionEvery thing seems to work well with this command and have proper response in CLI. But when i try to do the same in Jenkins as i have to setup CI environment it gives following error.

Parameter validation failed:
Unknown parameter in input: "cpu", must be one of: family, taskRoleArn, 
networkMode, containerDefinitions, volumes
Unknown parameter in input: "executionRoleArn", must be one of: family, 
taskRoleArn, networkMode, containerDefinitions, volumes
Unknown parameter in input: "memory", must be one of: family, taskRoleArn, 
networkMode, containerDefinitions, volumes
Unknown parameter in input: "requiresCompatibilities", must be one of: 
family, taskRoleArn, networkMode, containerDefinitions, volumes

If i removed those tags in task definition json file. It creates a EC2 type task which i don't need. I want to create only a fargate launch type task. Jekins commands

Oct 10, 2018 in AWS by eatcodesleeprepeat
• 4,710 points
1,984 views

1 answer to this question.

0 votes
From your terminal, type

which aws

and from Jenkins, execute the same command.

My guess is you'll find you are using two separate aws cli binaries (and one of them is too old to support Fargate.)
answered Oct 10, 2018 by Priyaj
• 58,020 points

Related Questions In AWS

0 votes
1 answer

How do I create folder under an Amazon S3 bucket through PHP API?

Of Course, it is possible to create ...READ MORE

answered Apr 24, 2018 in AWS by anonymous
11,401 views
0 votes
1 answer

Trying to Determine Amazon EC2 instance creation date/time

You can't find as such attribute called ...READ MORE

answered May 29, 2018 in AWS by Flying geek
• 3,280 points
9,761 views
0 votes
1 answer

How is Amazon ECS different from AWS Elastic Beanstalk?

AWS Elastic Beanstalk is an application management ...READ MORE

answered Sep 20, 2018 in AWS by datageek
• 2,540 points
1,198 views
0 votes
1 answer

Using scheduler on Amazon ECS

ECS provides Blox, a collection of open ...READ MORE

answered Sep 20, 2018 in AWS by Archana
• 4,170 points
729 views
0 votes
1 answer

AWS S3 uploading hidden files by default

versioning is enabled in your bucket. docs.aws.amazon.com/AmazonS3/latest/user-guide/….... the ...READ MORE

answered Oct 4, 2018 in AWS by Priyaj
• 58,020 points
5,957 views
–1 vote
1 answer

How to decrypt the encrypted S3 file using aws-encryption-cli --decrypt

Use command : aws s3 presign s3://mybucket/abc_count.png you get ...READ MORE

answered Oct 22, 2018 in AWS by Priyaj
• 58,020 points
5,204 views
0 votes
1 answer

Import my AWS credentials using python script

Using AWS Cli  Configure your IAM user then ...READ MORE

answered Nov 16, 2018 in AWS by Jino
• 5,820 points
2,867 views
0 votes
2 answers
+1 vote
4 answers

What is the difference between Amazon ECS and Amazon EC2?

EC2 allows you to launch individual instances ...READ MORE

answered Jul 11, 2018 in AWS by Priyaj
• 58,020 points
43,557 views
+2 votes
1 answer

How to Use Amazon AWS Credentials to Access/Query Tables in AWS RDS Instance through Mobile App

You should make your backend functions to ...READ MORE

answered Aug 28, 2018 in AWS by Priyaj
• 58,020 points
1,257 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP