Skip to content

ec2:DescribeTags missing from permission breaks monitor_runner.sh #1353

Description

@rk295

Describe the bug

When using the docker autoscaler a script /opt/monitor_runner.sh is deployed which uses aws ec2 describe-tags to list the tags on the auto scaling group. The policy which is attached to the instance running the script lacks the required permission.

The legacy docker machine policy had ec2:Describe* so I think this might be a miss when adding the new auto scaler.

To Reproduce

Steps to reproduce the behavior:

  1. Deploy examples/runner-fleeting-plugin
  2. Check the logs on the master instance to see the AWS 403 because the runner lacks ec2:DescribeTags whenever monitor_runner.sh is executed.

Expected behavior

The provided monitor_runner.sh script should execute in the default configuration without errors.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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