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,070 points
1,189 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, 2020 in AWS by MD
• 95,140 points
142 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
365 views
0 votes
1 answer
0 votes
1 answer

How to change the password for your IAM user?

Hi@akhtar, You can change the password of the IAM ...READ MORE

answered Nov 3, 2020 in AWS by MD
• 95,140 points
69 views
0 votes
1 answer

How to create an access key for an IAM user in AWS?

Hi@akhtar, You can create a new AWS secret ...READ MORE

answered Nov 3, 2020 in AWS by MD
• 95,140 points
67 views
0 votes
1 answer

How to create a password for an IAM user?

Hi@akhtar, You can create a password for the specified ...READ MORE

answered Nov 3, 2020 in AWS by MD
• 95,140 points
68 views
0 votes
1 answer

How to delete an access key for an IAM user?

Hi@akhtar, If you do not specify a user ...READ MORE

answered Nov 3, 2020 in AWS by MD
• 95,140 points
165 views
0 votes
1 answer

How to activate or deactivate an access key for an IAM user?

Hi@akhtar, The following update-access-key command deactivates the specified access key ...READ MORE

answered Nov 4, 2020 in AWS by MD
• 95,140 points
112 views
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,550 points
12,871 views