Skip to content

Disallow using instance profile to grant permissions to tasks #19

@itsdalmo

Description

@itsdalmo

We should add a flag to disallow tasks from using the instance profiles permissions, and require that a task role is used instead: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-iam-roles.html

Assuming that most tasks are started in the bridge network mode, we can run this as part of the cloud-init for the cluster:

sudo iptables --insert FORWARD 1 --in-interface docker+ --destination 169.254.169.254/32 --jump DROP
sudo service iptables save

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions