Skip to content

Limit iam:CreateServiceLinkedRole permission to specific role #416

@gabegorelick

Description

@gabegorelick

Github issue

Issue type

  • Feature Idea

Build number

master

Summary

iam:CreateServiceLinkedRole was added in #205 and is a fairly major permission to grant to AutoSpotting. In reality, I think it only needs to create the AWSServiceRoleForEC2Spot service-linked role. Thus, its permissions could be limited to that specific resource.

See https://docs.aws.amazon.com/IAM/latest/UserGuide/list_identityandaccessmanagement.html.

Steps to reproduce

Deploy

Expected results

AutoSpotting only has permission to create the service-linked role it needs.

Actual results

AutoSpotting has permission to create any service-linked role.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions