Service-linked roles for AWS Outposts
AWS Outposts uses AWS Identity and Access Management (IAM) service-linked roles. A service-linked role is a type of service role that is linked directly to AWS Outposts. AWS Outposts defines service-linked roles and includes all the permissions that it requires to call other AWS services on your behalf.
A service-linked role makes setting up your AWS Outposts more efficient because you don’t have to manually add the necessary permissions. AWS Outposts defines the permissions of its service-linked roles, and unless defined otherwise, only AWS Outposts can assume its roles. The defined permissions include the trust policy and the permissions policy, and that permissions policy can't be attached to any other IAM entity.
You can delete a service-linked role only after first deleting the related resources. This protects your AWS Outposts resources because you can't inadvertently remove permission to access the resources.
Service-linked role permissions for AWS Outposts
AWS Outposts uses the service-linked role named AWSServiceRoleForOutposts_OutpostID
–
Allows Outposts to access AWS resources for private connectivity on your behalf. This service-linked role allows private connectivity configuration, creates
network interfaces, and attaches them to service link endpoint instances.
The AWSServiceRoleForOutposts_OutpostID
service-linked role trusts the following services to assume the
role:
-
outposts.amazonaws.com
The AWSServiceRoleForOutposts_OutpostID
service-linked role includes the following policies:
-
AWSOutpostsServiceRolePolicy
-
AWSOutpostsPrivateConnectivityPolicy_
OutpostID
The AWSOutpostsServiceRolePolicy policy is a service-linked role policy to enable access to AWS resources managed by AWS Outposts.
This policy allows AWS Outposts to complete the following actions on the specified resources:
-
Action:
ec2:DescribeNetworkInterfaces
onall AWS resources
-
Action:
ec2:DescribeSecurityGroups
onall AWS resources
-
Action:
ec2:CreateSecurityGroup
onall AWS resources
-
Action:
ec2:CreateNetworkInterface
onall AWS resources
The AWSOutpostsPrivateConnectivityPolicy_OutpostID
policy allows AWS Outposts to complete the following actions on the specified resources:
-
Action:
ec2:AuthorizeSecurityGroupIngress
onall AWS resources that match the following Condition:
{ "StringLike" : { "ec2:ResourceTag/outposts:private-connectivity-
resourceId
" : "OutpostID
" }} and { "StringEquals" : { "ec2:Vpc" : "vpcArn
" }} -
Action:
ec2:AuthorizeSecurityGroupEgress
onall AWS resources that match the following Condition:
{ "StringLike" : { "ec2:ResourceTag/outposts:private-connectivity-
resourceId
" : "OutpostID
" }} and { "StringEquals" : { "ec2:Vpc" : "vpcArn
" }} -
Action:
ec2:CreateNetworkInterfacePermission
onall AWS resources that match the following Condition:
{ "StringLike" : { "ec2:ResourceTag/outposts:private-connectivity-
resourceId
" : "OutpostID
" }} and { "StringEquals" : { "ec2:Vpc" : "vpcArn
" }} -
Action:
ec2:CreateTags
onall AWS resources that match the following Condition:
{ "StringLike" : { "aws:RequestTag/outposts:private-connectivity-
resourceId
" : "{{OutpostId
}}*"}}
You must configure permissions to allow an IAM entity (such as a user, group, or role) to create, edit, or delete a service-linked role. For more information, see Service-linked role permissions in the IAM User Guide.
Create a service-linked role for AWS Outposts
You don't need to manually create a service-linked role. When you configure private connectivity for your Outpost in the AWS Management Console, AWS Outposts creates the service-linked role for you.
For more information, see Service link private connectivity using VPC.
Edit a service-linked role for AWS Outposts
AWS Outposts does not allow you to edit the AWSServiceRoleForOutposts_OutpostID
service-linked role. After you
create a service-linked role, you can't 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 Update a
service-linked role in the IAM User Guide.
Delete a service-linked role for AWS Outposts
If you no longer require a feature or service that requires a service-linked role, we recommend that you delete that role. That way you avoid having 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 AWS Outposts 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.
You must delete your Outpost before you can delete the AWSServiceRoleForOutposts_OutpostID
service-linked role.
Before you begin, make sure that your Outpost is not being shared using AWS Resource Access Manager (AWS RAM). For more information, see Unsharing a shared Outpost resource.
To delete AWS Outposts resources used by the AWSServiceRoleForOutposts_OutpostID
Contact AWS Enterprise Support to delete your Outpost.
To manually delete the service-linked role using IAM
For more information, see Delete a service-linked role in the IAM User Guide.
Supported Regions for AWS Outposts service-linked roles
AWS Outposts supports using service-linked roles in all of the Regions where the service is
available. For more information, see the FAQs for Outposts racks