Creating a service-linked role for Amazon IoT SiteWise - Amazon IoT SiteWise
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Creating a service-linked role for Amazon IoT SiteWise

You don't need to manually create a service-linked role. When you perform the following operations in the Amazon IoT SiteWise console, Amazon IoT SiteWise creates the service-linked role for you.

  • Create a Greengrass V1 gateway.

  • Configure the logging option.

  • Choosing the opt-in button in the execute query banner.

If you delete this service-linked role, and then need to create it again, you can use the same process to recreate the role in your account. When you perform any operation in the Amazon IoT SiteWise console, Amazon IoT SiteWise creates the service-linked role for you again.

You can also use the IAM console or API to create a service-linked role for Amazon IoT SiteWise.

  • To do so in the IAM console, create a role with the AWSServiceRoleForIoTSiteWise policy and a trust relationship with iotsitewise.amazonaws.com.

  • To do so using the Amazon CLI or IAM API, create a role with the arn:aws:iam::aws:policy/aws-service-role/AWSServiceRoleForIoTSiteWise policy and a trust relationship with iotsitewise.amazonaws.com.

For more information, see Creating a service-linked role in the IAM User Guide.

If you delete this service-linked role, you can use this same process to create the role again.