AWS IoT Role Alias

This page shows how to write Terraform and CloudFormation for AWS IoT Role Alias and write them securely.

aws_iot_role_alias (Terraform)

The Role Alias in AWS IoT can be configured in Terraform with the resource name aws_iot_role_alias. The following sections describe 1 example of how to use the resource and its parameters.

Example Usage from GitHub

main.tf#L7
resource "aws_iot_role_alias" "this" {
  alias               = var.alias
  credential_duration = var.credential_duration
  role_arn            = var.role_arn
}

Review your Terraform file for AWS best practices

Shisho Cloud, our free checker to make sure your Terraform configuration follows best practices, is available (beta).

Parameters

Explanation in Terraform Registry

Provides an IoT role alias.

AWS::IoT::AccountAuditConfiguration (CloudFormation)

The AccountAuditConfiguration in IoT can be configured in CloudFormation with the resource name AWS::IoT::AccountAuditConfiguration. The following sections describe how to use the resource and its parameters.

Example Usage from GitHub

An example could not be found in GitHub.

Parameters

Explanation in CloudFormation Registry

Use the AWS::IoT::AccountAuditConfiguration resource to configure or reconfigure the Device Defender audit settings for your account. Settings include how audit notifications are sent and which audit checks are enabled or disabled. For API reference, see UpdateAccountAuditConfiguration and for detailed information on all available audit checks, see Audit checks.

Frequently asked questions

What is AWS IoT Role Alias?

AWS IoT Role Alias is a resource for IoT of Amazon Web Service. Settings can be wrote in Terraform and CloudFormation.

Where can I find the example code for the AWS IoT Role Alias?

For Terraform, the niveklabs/aws source code example is useful. See the Terraform Example section for further details.