1. Answers
  2. Integrating AWS CloudFormation with Transcribe

How do I integrate AWS CloudFormation with Transcribe?

In this guide, we will demonstrate how to integrate AWS CloudFormation with AWS Transcribe using Pulumi. We will create a CloudFormation stack that includes an AWS Transcribe custom vocabulary filter to enhance the transcription accuracy for specific terms.

Key Points:

  • We will use Pulumi to define and deploy AWS CloudFormation resources.
  • We will create a CloudFormation stack that includes a Transcribe Vocabulary Filter.
  • The example includes defining all necessary entities within the code block.
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

// Define the custom vocabulary filter for AWS Transcribe
const vocabularyFilter = new aws.transcribe.VocabularyFilter("myVocabularyFilter", {
    vocabularyFilterName: "myVocabularyFilter",
    languageCode: "en-US",
    words: ["Pulumi", "CloudFormation", "Transcribe"],
});

// Define the CloudFormation stack
const cfStack = new aws.cloudformation.Stack("myCfStack", {
    templateBody: pulumi.interpolate`{
        "Resources": {
            "TranscribeVocabularyFilter": {
                "Type": "AWS::Transcribe::VocabularyFilter",
                "Properties": {
                    "LanguageCode": "en-US",
                    "VocabularyFilterName": "${vocabularyFilter.vocabularyFilterName}",
                    "Words": ["Pulumi", "CloudFormation", "Transcribe"]
                }
            }
        }
    }`,
    parameters: {},
    capabilities: ["CAPABILITY_IAM"],
    tags: {
        "Environment": "Development",
    },
});

// Export the CloudFormation stack ID
export const stackId = cfStack.id;

Summary:

In this example, we created a CloudFormation stack using Pulumi that includes an AWS Transcribe Vocabulary Filter. This integration allows us to manage AWS Transcribe resources using CloudFormation templates, providing a structured and scalable approach to infrastructure as code.

Deploy this code

Want to deploy this code? Sign up for a free Pulumi account to deploy in a few clicks.

Sign up

New to Pulumi?

Want to deploy this code? Sign up with Pulumi to deploy in a few clicks.

Sign up