Resource: aws_transcribe_medical_vocabulary

Terraform resource for managing an AWS Transcribe MedicalVocabulary.

Example Usage

Basic Usage

resource "aws_s3_bucket" "example" {
  bucket        = "example-medical-vocab-123"
  force_destroy = true
}

resource "aws_s3_object" "object" {
  bucket = aws_s3_bucket.example.id
  key    = "transcribe/test1.txt"
  source = "test.txt"
}

resource "aws_transcribe_medical_vocabulary" "example" {
  vocabulary_name     = "example"
  language_code       = "en-US"
  vocabulary_file_uri = "s3://${aws_s3_bucket.example.id}/${aws_s3_object.object.key}"

  tags = {
    tag1 = "value1"
    tag2 = "value3"
  }

  depends_on = [
    aws_s3_object.object
  ]
}

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 Transcribe MedicalVocabulary using the vocabulary_name. For example:

import {
  to = aws_transcribe_medical_vocabulary.example
  id = "example-name"
}

Using terraform import, import Transcribe MedicalVocabulary using the vocabulary_name. For example:

% terraform import aws_transcribe_medical_vocabulary.example example-name