How to configure IAM roles for ECS tasks?

0 votes

I am trying to launch a container using AWS ECS, but i think i have messed up while creating IAM roles. So, my question is how to configure IAM roles for ECS tasks?

Nov 5, 2018 in AWS by datageek
• 3,050 points
933 views

1 answer to this question.

0 votes

You first need to create an IAM role for your task, using the 'Amazon EC2 Container Service Task Role’ service role and attaching a policy with the required permissions. When you create a new task definition or a task definition revision you can then specify a role by selecting it from the ’Task Role’ drop-down or using the ‘taskRoleArn’ filed in the JSON format.

answered Nov 5, 2018 by anonymous

Related Questions In AWS

0 votes
1 answer

How to configure credentials for IAM user in CLI?

Hi@akhtar, To pass credentials for your IAM user ...READ MORE

answered Jun 10 in AWS by MD
• 35,340 points
62 views
0 votes
1 answer

How to configure Elastic Beanstalk for RDS

I suggest removing the config file from ...READ MORE

answered Aug 13, 2018 in AWS by anonymous
181 views
0 votes
1 answer
0 votes
3 answers
+1 vote
3 answers

How to get ARN for s3 Bucket using aws cli .

An ARN is a non-opaque, constructible identifier, ...READ MORE

answered Aug 16, 2018 in AWS by Priyaj
• 57,530 points
2,651 views
0 votes
1 answer

How to Enable CORS for an AWS API Gateway Resource

Since you're using Lambda Proxy integration for ...READ MORE

answered Jul 10, 2018 in AWS by Hammer
• 360 points
1,901 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

How to provide tags for the stack in CloudFormation Template?

In the template anatomy, you cant set ...READ MORE

answered Aug 13, 2018 in AWS by bug_seeker
• 15,390 points
9,364 views