Resource: aws_ivs_playback_key_pair

Terraform resource for managing an AWS IVS (Interactive Video) Playback Key Pair.

Example Usage

Basic Usage

resource "aws_ivs_playback_key_pair" "example" {
  # public-key.pem is a file that contains an ECDSA public key in PEM format.
  public_key = file("./public-key.pem")
}

Argument Reference

The following arguments are required:

The following arguments are optional:

Attribute Reference

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

Timeouts

Configuration options:

Import

In Terraform v1.5.0 and later, use an import block to import IVS (Interactive Video) Playback Key Pair using the ARN. For example:

import {
  to = aws_ivs_playback_key_pair.example
  id = "arn:aws:ivs:us-west-2:326937407773:playback-key/KDJRJNQhiQzA"
}

Using terraform import, import IVS (Interactive Video) Playback Key Pair using the ARN. For example:

% terraform import aws_ivs_playback_key_pair.example arn:aws:ivs:us-west-2:326937407773:playback-key/KDJRJNQhiQzA