AWS

What the role "EC2 Instance Profile" is used for in regards to ECS?

Difficulty: unrated

Source: bregman-arie/devops-exercises by Arie Bregman

Answer

EC2 Instance Profile used by ECS agent on an EC2 instance to:

  • Make API calls to ECS Service
  • Send logs to CloudWatch from the container
  • Use secrets defined in SSM Parameter Store or Secrets Manager
  • Pull container images from ECR (Registry)