Using service-linked roles for Amazon WorkLink - Amazon WorkLink

Using service-linked roles for Amazon WorkLink

Amazon WorkLink uses AWS Identity and Access Management (IAM) service-linked roles. A service-linked role is a unique type of IAM role that is linked directly to Amazon WorkLink. Service-linked roles are predefined by Amazon WorkLink and include all the permissions that the service requires to call other AWS services on your behalf.

A service-linked role makes setting up Amazon WorkLink more efficient because you don’t have to manually add the necessary permissions. Amazon WorkLink defines the permissions of its service-linked roles, and unless defined otherwise, only Amazon WorkLink can assume its roles. The defined permissions include the trust policy and the permissions policy, and that permissions policy cannot be attached to any other IAM entity.

You can delete a service-linked role only after first deleting their related resources. This protects your Amazon WorkLink resources because you can't inadvertently remove permission to access the resources.

For information about other services that support service-linked roles, see AWS Services That Work with IAM. In that topic, look for the services that have Yes in the Service-Linked Role column. Choose a Yes service with a link to view the service-linked role documentation for that service.

Service-linked role permissions for Amazon WorkLink

Amazon WorkLink uses the service-linked role named AWSServiceRoleForAmazonWorkLink to access resources linked to your fleets.

The AWSServiceRoleForAmazonWorkLink service-linked role trusts the following services to assume the role:


The role permissions policy allows Amazon WorkLink to complete the following actions on the specified resources:

  • Action: ec2:CreateNetworkInterface on *

    Action: ec2:DeleteNetworkInterfacePermission on *

    Action: ec2:CreateNetworkInterfacePermission on *

    Action: ec2:ModifyNetworkInterfaceAttribute on *

    Action: ec2:DeleteNetworkInterface on *

    Action: kinesis:PutRecord on "arn:aws:kinesis:*:*:stream/AmazonWorkLink-*"

    Action: kinesis:PutRecords on "arn:aws:kinesis:*:*:stream/AmazonWorkLink-*"

You must configure permissions to allow an IAM entity to create, edit, or delete a service-linked role. An entity can be a user, group, or role. For more information, see Service-Linked Role Permissions in the IAM User Guide.

Creating a service-linked role for Amazon WorkLink

You don't need to manually create a service-linked role. If needed, Amazon WorkLink creates the service-linked role when you create an Amazon WorkLink fleet in the AWS Management Console, the AWS CLI, or the AWS API. . All Amazon WorkLink fleets share a single service-linked role.


This service-linked role can appear in your account if you completed an action in another service that uses the features supported by this role. Also, Amazon WorkLink began supporting service-linked roles on March 25, 2019. If you were using Amazon WorkLink before that date, Amazon WorkLink created the AWSServiceRoleForAmazonWorkLink role in your account. For more information, see A New Role Appeared in My IAM Account.

If you delete this service-linked role, then a new service-linked role is created for you when you create new a new Amazon WorkLink fleet.

Editing a service-linked role for Amazon WorkLink

Amazon WorkLink does not allow you to edit the AWSServiceRoleForAmazonWorkLink service-linked role. After you create a service-linked role, you cannot change the name of the role because various entities might reference the role. However, you can edit the description of the role using IAM. For more information, see Editing a Service-Linked Role in the IAM User Guide.

Deleting a service-linked role for Amazon WorkLink

If you are no longer using a feature or service that requires a service-linked role, we recommend that you delete that role. That way you don’t have an unused entity that is not actively monitored or maintained. However, you must clean up the resources for your service-linked role before you can manually delete it.


If the Amazon WorkLink service is using the role when you try to delete the resources, then the deletion might fail. If that happens, wait for a few minutes and try the operation again.

To delete Amazon WorkLink resources used by the AWSServiceRoleForAmazonWorkLink

  1. Open the Amazon WorkLink console at

  2. Select each fleet and choose Delete to delete all Amazon WorkLink fleets in all AWS Regions.

  3. Make sure that all fleets are in the Deleting state.

  4. Delete the service-linked role using IAM.

To manually delete the service-linked role using IAM

Use the IAM console, the AWS CLI, or the AWS API to delete the AWSServiceRoleForAmazonWorkLink service-linked role. For more information, see Deleting a Service-Linked Role in the IAM User Guide.

Supported regions for Amazon WorkLink service-linked roles

Amazon WorkLink supports using service-linked roles in all of the regions where the service is available. For more information, see AWS Regions and Endpoints.