Data Source: aws_iot_registration_code

Gets a registration code used to register a CA certificate with AWS IoT.

Example Usage

data "aws_iot_registration_code" "example" {}

resource "tls_private_key" "verification" {
  algorithm = "RSA"
}

resource "tls_cert_request" "verification" {
  key_algorithm   = "RSA"
  private_key_pem = tls_private_key.verification.private_key_pem
  subject {
    common_name = data.aws_iot_registration_code.example.registration_code
  }
}

Argument Reference

This data source has no arguments.

Attributes Reference

This data source exports the following attributes in addition to the arguments above: