Terraform interview question

What is the difference between an ECS task execution role and a task role, and how do you define them in Terraform?

Comparison Asked in DevOps Engineer · Cloud Engineer · Site Reliability Engineer (SRE) interviews

Members can save this page, take notes and track progress. See membership · Sign in

Summary

The execution role is used by the ECS agent to pull container images and write logs. The task role is assumed by the application code inside the container to access AWS services. Both are defined with aws_iam_role and scoped aws_iam_policy_document data sources.

Keep reading with a membership

The full answer with examples, key points and comparisons is part of the membership, along with every other interview answer, progress tracking and Daily Review. Most-asked answers stay free to read.

See plans and free trial Already a member? Sign in

More Terraform questions

← All Terraform questions

Last reviewed · By the ByteCamel team · How we write content

Was this page helpful?

Report a mistake