Resource: aws_cloudformation_type

Manages a version of a CloudFormation Type.

Example Usage

resource "aws_cloudformation_type" "example" {
  schema_handler_package = "s3://${aws_s3_object.example.bucket}/${aws_s3_object.example.key}"
  type                   = "RESOURCE"
  type_name              = "ExampleCompany::ExampleService::ExampleResource"

  logging_config {
    log_group_name = aws_cloudwatch_log_group.example.name
    log_role_arn   = aws_iam_role.example.arn
  }

  lifecycle {
    create_before_destroy = true
  }
}

Argument Reference

This resource supports the following arguments:

logging_config

The logging_config configuration block supports the following arguments:

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 aws_cloudformation_type using the type version Amazon Resource Name (ARN). For example:

import {
  to = aws_cloudformation_type.example
  id = "arn:aws:cloudformation:us-east-1:123456789012:type/resource/ExampleCompany-ExampleService-ExampleType/1"
}

Using terraform import, import aws_cloudformation_type using the type version Amazon Resource Name (ARN). For example:

% terraform import aws_cloudformation_type.example arn:aws:cloudformation:us-east-1:123456789012:type/resource/ExampleCompany-ExampleService-ExampleType/1