AWS Fundamentals Logo
AWS Fundamentals
AWS::IoT::Logging

IoT Logging

Logging Options enable you to configure your IoT V2 logging role and default logging level so that you can monitor progress events logs as it passes from your devices through Iot core service.

Properties

4 configurable properties. 3 required. Click a row to see details.

Filter:
PropertyTypeFlags
AccountId
string
RequiredCreate-only
DefaultLogLevel
string
Required
RoleArn
string
Required
EventConfigurations
Array<EventConfiguration>

Sample CloudFormation Template

A minimal template with required properties and common optional ones.

template.yaml
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::IoT::Logging

Resources:
  MyResource:
    Type: AWS::IoT::Logging
    Properties:
      AccountId: "my-accountid"
      RoleArn: "arn:aws:service:region:account:resource"
      DefaultLogLevel: "ERROR"

Required IAM Permissions

Permissions CloudFormation needs in your IAM role to manage this resource.

create

iot:SetV2LoggingOptionsiot:GetV2LoggingOptionsiam:PassRole

read

iot:GetV2LoggingOptions

update

iot:SetV2LoggingOptionsiot:GetV2LoggingOptionsiam:PassRole

delete

iot:SetV2LoggingOptionsiot:GetV2LoggingOptions

list

iot:GetV2LoggingOptions

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter

Quick Facts

ServiceIoT
Properties4
Required3
TaggingNot supported
Primary IDAccountId

Supported Operations

CreateReadUpdateDeleteList

Immutable After Creation

These properties cannot be changed after the resource is created. Updating them triggers a replacement.

AccountId

External Links