---
title: "Discussion on \"ECS Task Role vs Execution Role: Key Differences Explained\" | Hashnode"
description: "Discussion on \"ECS Task Role vs Execution Role: Key Differences Explained\". Task roles let containers call AWS APIs (S3, SNS). Execution roles let ECS agents pull images and push logs. Learn when to use each with IAM examples."
url: "https://hashnode.com/posts/amazon-ecs-task-role-vs-execution-role/695439fb09e53959255b0b42"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [ECS Task Role vs Execution Role: Key Differences Explained](https://towardsthecloud.hashnode.dev/amazon-ecs-task-role-vs-execution-role?utm_source=hashnode&utm_medium=feed)

Task roles let containers call AWS APIs (S3, SNS). Execution roles let ECS agents pull images and push logs. Learn when to use each with IAM examples.

Nov 3, 2022 · 3 min read · towardsthecloud.hashnode.dev  
Updated Apr 2  
Read the article

-   [#aws](https://hashnode.com/tag/aws)
-   [#cloud](https://hashnode.com/tag/cloud)
-   [#cloud-computing](https://hashnode.com/tag/cloud-computing)
-   [#cloud-security](https://hashnode.com/tag/cloud-security)
-   [#devops](https://hashnode.com/tag/devops)
-   [#ecs](https://hashnode.com/tag/ecs)
-   [#iam](https://hashnode.com/tag/iam)
-   [#role](https://hashnode.com/tag/role)

## Written by

[Danny Steenman](https://hashnode.com/@dannysteenman)

@dannysteenman · Amsterdam, Netherlands

  
[View profile](https://hashnode.com/@dannysteenman)

Principal Cloud Consultant

Hi, 👋 my name is Danny. I’m an AWS Cloud Consultant who likes to build things in the Cloud. I write blog posts about a variety of topics like AWS, DevOps, and Certifications. The goal is to keep things practical and easy to understand.

## Responses

Comments are turned off for this post.
