Resource: aws_iot_authorizer

Creates and manages an AWS IoT Authorizer.

Example Usage

resource "aws_iot_authorizer" "example" {
  name                    = "example"
  authorizer_function_arn = aws_lambda_function.example.arn
  signing_disabled        = false
  status                  = "ACTIVE"
  token_key_name          = "Token-Header"

  token_signing_public_keys = {
    Key1 = file("test-fixtures/iot-authorizer-signing-key.pem")
  }
}

Argument Reference

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Import

In Terraform v1.5.0 and later, use an import block to import IOT Authorizers using the name. For example:

import {
  to = aws_iot_authorizer.example
  id = "example"
}

Using terraform import, import IOT Authorizers using the name. For example:

% terraform import aws_iot_authorizer.example example