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
resource "aws_iot_role_alias" "this" {
alias = var.alias
credential_duration = var.credential_duration
role_arn = var.role_arn
}
Parameters
-
alias
required - string -
arn
optional computed - string -
credential_duration
optional - number -
id
optional computed - string -
role_arn
required - string
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
-
AccountId
required - String -
AuditCheckConfigurations
required - AuditCheckConfigurations -
AuditNotificationTargetConfigurations
optional - AuditNotificationTargetConfigurations -
RoleArn
required - String
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.