From 04f9edb3cd3570a1bb4c211f3dda89cf47c7515a Mon Sep 17 00:00:00 2001 From: Manu Chandrasekhar Date: Sat, 10 Jan 2026 21:48:14 -0500 Subject: [PATCH 1/2] docs: bedrock, sagemaker cluster examples --- docs/resources/bedrock_blueprint.md | 70 +++---- .../bedrock_data_automation_project.md | 116 +++++++---- docs/resources/sagemaker_cluster.md | 196 ++++++++++++++++++ .../bedrock_document_blueprint.tf | 28 +++ ...k_data_automation_custom_output_project.tf | 35 ++++ ...data_automation_standard_output_project.tf | 34 +++ .../sagemaker_cluster_eks_autoscaling.tf | 190 +++++++++++++++++ templates/resources/bedrock_blueprint.md.tmpl | 27 +++ .../bedrock_data_automation_project.md.tmpl | 31 +++ templates/resources/sagemaker_cluster.md.tmpl | 5 + 10 files changed, 660 insertions(+), 72 deletions(-) create mode 100644 examples/resources/awscc_bedrock_blueprint/bedrock_document_blueprint.tf create mode 100644 examples/resources/awscc_bedrock_data_automation_project/bedrock_data_automation_custom_output_project.tf create mode 100644 examples/resources/awscc_bedrock_data_automation_project/bedrock_data_automation_standard_output_project.tf create mode 100644 examples/resources/awscc_sagemaker_cluster/sagemaker_cluster_eks_autoscaling.tf create mode 100644 templates/resources/bedrock_blueprint.md.tmpl create mode 100644 templates/resources/bedrock_data_automation_project.md.tmpl diff --git a/docs/resources/bedrock_blueprint.md b/docs/resources/bedrock_blueprint.md index 11e6ed68c6..4f4b3af4b8 100644 --- a/docs/resources/bedrock_blueprint.md +++ b/docs/resources/bedrock_blueprint.md @@ -1,16 +1,48 @@ --- -# generated by https://github.com/hashicorp/terraform-plugin-docs page_title: "awscc_bedrock_blueprint Resource - terraform-provider-awscc" subcategory: "" description: |- - Definition of AWS::Bedrock::Blueprint Resource Type + Definition of AWS::Bedrock::Blueprint Resource Type --- # awscc_bedrock_blueprint (Resource) Definition of AWS::Bedrock::Blueprint Resource Type +## Example Usage +### Custom Blueprints for documents +Create a custom blueprint for intelligent document processing with Bedrock Data Automation +```terraform +resource "awscc_bedrock_blueprint" "example" { + blueprint_name = "example-blueprint" + type = "DOCUMENT" + schema = jsonencode({ + "$schema" : "http://json-schema.org/draft-07/schema#", + "description" : "default", + "class" : "default", + "type" : "object", + "definitions" : {}, + "properties" : { + "gross_pay_this_period" : { + "type" : "number", + "inferenceType" : "explicit", + "instruction" : "The gross pay for this pay period from the Earnings table" + }, + "net_pay" : { + "type" : "number", + "inferenceType" : "explicit", + "instruction" : "The net pay for this pay period from the bottom of the document" + } + } + }) + + tags = [{ + key = "ModifiedBy" + value = "AWSCC" + }] +} +``` ## Schema @@ -47,40 +79,6 @@ Optional: Import is supported using the following syntax: -In Terraform v1.12.0 and later, the [`import` block](https://developer.hashicorp.com/terraform/language/import) can be used with the `identity` attribute, for example: - -```terraform -import { - to = awscc_bedrock_blueprint.example - identity = { - blueprint_arn = "blueprint_arn" - } -} -``` - - -### Identity Schema - -#### Required - -- `blueprint_arn` (String) ARN of a Blueprint - -#### Optional - -- `account_id` (String) AWS Account where this resource is managed -- `region` (String) Region where this resource is managed - -In Terraform v1.5.0 and later, the [`import` block](https://developer.hashicorp.com/terraform/language/import) can be used with the `id` attribute, for example: - -```terraform -import { - to = awscc_bedrock_blueprint.example - id = "blueprint_arn" -} -``` - -The [`terraform import` command](https://developer.hashicorp.com/terraform/cli/commands/import) can be used, for example: - ```shell $ terraform import awscc_bedrock_blueprint.example "blueprint_arn" ``` diff --git a/docs/resources/bedrock_data_automation_project.md b/docs/resources/bedrock_data_automation_project.md index c51d76d5c1..334c0f9f0e 100644 --- a/docs/resources/bedrock_data_automation_project.md +++ b/docs/resources/bedrock_data_automation_project.md @@ -1,16 +1,94 @@ --- -# generated by https://github.com/hashicorp/terraform-plugin-docs page_title: "awscc_bedrock_data_automation_project Resource - terraform-provider-awscc" subcategory: "" description: |- - Definition of AWS::Bedrock::DataAutomationProject Resource Type + Definition of AWS::Bedrock::DataAutomationProject Resource Type --- # awscc_bedrock_data_automation_project (Resource) Definition of AWS::Bedrock::DataAutomationProject Resource Type +## Example Usage +### Standard output +Create a Bedrock Data Automation project with standard output using the document modality +```terraform +resource "awscc_bedrock_data_automation_project" "example" { + project_name = "example-project" + project_description = "example-description" + standard_output_configuration = { + document = { + extraction = { + granularity = { + types = ["DOCUMENT"] + } + bounding_box = { + state = "ENABLED" + } + } + generative_field = { + state = "DISABLED" + } + output_format = { + text_format = { + types = ["PLAIN_TEXT"] + } + additional_file_format = { + state = "DISABLED" + } + } + } + } + override_configuration = { + document = { + splitter = { + state = "ENABLED" + } + } + } +} +``` + +### Custom output +Create a Bedrock Data Automation project with custom output using the document modality +```terraform +resource "awscc_bedrock_data_automation_project" "example" { + project_name = "example-project" + project_description = "example-description" + standard_output_configuration = { + document = { + output_format = { + text_format = { + types = ["PLAIN_TEXT"] + } + additional_file_format = { + state = "DISABLED" + } + } + } + } + custom_output_configuration = { + blueprints = [ + { + blueprint_arn = awscc_bedrock_blueprint.example.blueprint_arn + } + ] + } + override_configuration = { + document = { + splitter = { + state = "ENABLED" + } + } + } + + tags = [{ + key = "ModifiedBy" + value = "AWSCC" + }] +} +``` ## Schema @@ -492,40 +570,6 @@ Optional: Import is supported using the following syntax: -In Terraform v1.12.0 and later, the [`import` block](https://developer.hashicorp.com/terraform/language/import) can be used with the `identity` attribute, for example: - -```terraform -import { - to = awscc_bedrock_data_automation_project.example - identity = { - project_arn = "project_arn" - } -} -``` - - -### Identity Schema - -#### Required - -- `project_arn` (String) ARN of a DataAutomationProject - -#### Optional - -- `account_id` (String) AWS Account where this resource is managed -- `region` (String) Region where this resource is managed - -In Terraform v1.5.0 and later, the [`import` block](https://developer.hashicorp.com/terraform/language/import) can be used with the `id` attribute, for example: - -```terraform -import { - to = awscc_bedrock_data_automation_project.example - id = "project_arn" -} -``` - -The [`terraform import` command](https://developer.hashicorp.com/terraform/cli/commands/import) can be used, for example: - ```shell $ terraform import awscc_bedrock_data_automation_project.example "project_arn" ``` diff --git a/docs/resources/sagemaker_cluster.md b/docs/resources/sagemaker_cluster.md index b8830d854d..79ab0aeeae 100644 --- a/docs/resources/sagemaker_cluster.md +++ b/docs/resources/sagemaker_cluster.md @@ -115,6 +115,202 @@ data "aws_region" "current" {} data "aws_partition" "current" {} ``` +### EKS with Karpenter Autoscaling +To create a SageMaker HyperPod Cluster with EKS orchestration and Karpenter-based autoscaling enabled. + +```terraform +resource "awscc_sagemaker_cluster" "hyperpod_autoscaling" { + cluster_name = "hyperpod-eks-autoscaling" + + instance_groups = [ + { + execution_role = awscc_iam_role.execution.arn + instance_count = 1 + instance_type = "ml.c5.xlarge" + instance_group_name = "system" + life_cycle_config = { + source_s3_uri = "s3://${aws_s3_bucket.lifecycle.id}/config/" + on_create = "on_create.sh" + } + }, + { + execution_role = awscc_iam_role.execution.arn + instance_count = 0 + instance_type = "ml.c5.xlarge" + instance_group_name = "auto-c5-az1" + life_cycle_config = { + source_s3_uri = "s3://${aws_s3_bucket.lifecycle.id}/config/" + on_create = "on_create.sh" + } + }, + { + execution_role = awscc_iam_role.execution.arn + instance_count = 0 + instance_type = "ml.c5.4xlarge" + instance_group_name = "auto-c5-4xaz2" + life_cycle_config = { + source_s3_uri = "s3://${aws_s3_bucket.lifecycle.id}/config/" + on_create = "on_create.sh" + } + override_vpc_config = { + security_group_ids = [var.security_group_id] + subnets = [var.subnet_2] + } + } + ] + + orchestrator = { + eks = { + cluster_arn = var.eks_cluster_arn + } + } + + vpc_config = { + security_group_ids = [var.security_group_id] + subnets = [var.subnet_1] + } + + cluster_role = awscc_iam_role.cluster.arn + + auto_scaling = { + mode = "Enable" + auto_scaler_type = "Karpenter" + } + + node_provisioning_mode = "Continuous" + + tags = [{ + key = "Environment" + value = "Development" + }, { + key = "AutoScaling" + value = "Enabled" + }] +} + +# IAM Role for Karpenter Autoscaling +resource "awscc_iam_role" "cluster" { + role_name = "SageMakerHyperPodKarpenterRole" + assume_role_policy_document = jsonencode({ + Version = "2012-10-17" + Statement = [ + { + Effect = "Allow" + Principal = { + Service = ["hyperpod.sagemaker.amazonaws.com"] + } + Action = "sts:AssumeRole" + } + ] + }) + + policies = [ + { + policy_name = "SageMakerHyperPodKarpenterPolicy" + policy_document = jsonencode({ + Version = "2012-10-17" + Statement = [ + { + Effect = "Allow" + Action = [ + "sagemaker:BatchAddClusterNodes", + "sagemaker:BatchDeleteClusterNodes" + ] + Resource = "arn:aws:sagemaker:*:*:cluster/*" + Condition = { + StringEquals = { + "aws:ResourceAccount" = "$${aws:PrincipalAccount}" + } + } + }, + { + Effect = "Allow" + Action = [ + "kms:CreateGrant", + "kms:DescribeKey" + ] + Resource = "arn:aws:kms:*:*:key/*" + Condition = { + StringLike = { + "kms:ViaService" = "sagemaker.*.amazonaws.com" + } + Bool = { + "kms:GrantIsForAWSResource" = "true" + } + "ForAllValues:StringEquals" = { + "kms:GrantOperations" = [ + "CreateGrant", + "Decrypt", + "DescribeKey", + "GenerateDataKeyWithoutPlaintext", + "ReEncryptTo", + "ReEncryptFrom", + "RetireGrant" + ] + } + } + } + ] + }) + } + ] +} + +resource "awscc_iam_role" "execution" { + role_name = "SageMakerHyperPodExecutionRole" + assume_role_policy_document = jsonencode({ + Version = "2012-10-17" + Statement = [ + { + Effect = "Allow" + Principal = { + Service = ["sagemaker.amazonaws.com"] + } + Action = "sts:AssumeRole" + } + ] + }) + + managed_policy_arns = [ + "arn:aws:iam::aws:policy/AmazonSageMakerFullAccess" + ] +} + +resource "aws_s3_bucket" "lifecycle" { + bucket = "sagemaker-hyperpod-lifecycle-${random_id.bucket_suffix.hex}" +} + +resource "aws_s3_object" "script" { + bucket = aws_s3_bucket.lifecycle.id + key = "config/on_create.sh" + content = "#!/bin/bash\necho 'HyperPod node initialization complete'" +} + +resource "random_id" "bucket_suffix" { + byte_length = 4 +} + +variable "eks_cluster_arn" { + description = "ARN of the EKS cluster" + type = string +} + +variable "security_group_id" { + description = "Security group ID for the cluster" + type = string +} + +variable "subnet_1" { + description = "First subnet ID" + type = string +} + +variable "subnet_2" { + description = "Second subnet ID" + type = string +} +``` + ## Schema diff --git a/examples/resources/awscc_bedrock_blueprint/bedrock_document_blueprint.tf b/examples/resources/awscc_bedrock_blueprint/bedrock_document_blueprint.tf new file mode 100644 index 0000000000..52cad3ef7e --- /dev/null +++ b/examples/resources/awscc_bedrock_blueprint/bedrock_document_blueprint.tf @@ -0,0 +1,28 @@ +resource "awscc_bedrock_blueprint" "example" { + blueprint_name = "example-blueprint" + type = "DOCUMENT" + schema = jsonencode({ + "$schema" : "http://json-schema.org/draft-07/schema#", + "description" : "default", + "class" : "default", + "type" : "object", + "definitions" : {}, + "properties" : { + "gross_pay_this_period" : { + "type" : "number", + "inferenceType" : "explicit", + "instruction" : "The gross pay for this pay period from the Earnings table" + }, + "net_pay" : { + "type" : "number", + "inferenceType" : "explicit", + "instruction" : "The net pay for this pay period from the bottom of the document" + } + } + }) + + tags = [{ + key = "ModifiedBy" + value = "AWSCC" + }] +} diff --git a/examples/resources/awscc_bedrock_data_automation_project/bedrock_data_automation_custom_output_project.tf b/examples/resources/awscc_bedrock_data_automation_project/bedrock_data_automation_custom_output_project.tf new file mode 100644 index 0000000000..9c843e88fe --- /dev/null +++ b/examples/resources/awscc_bedrock_data_automation_project/bedrock_data_automation_custom_output_project.tf @@ -0,0 +1,35 @@ +resource "awscc_bedrock_data_automation_project" "example" { + project_name = "example-project" + project_description = "example-description" + standard_output_configuration = { + document = { + output_format = { + text_format = { + types = ["PLAIN_TEXT"] + } + additional_file_format = { + state = "DISABLED" + } + } + } + } + custom_output_configuration = { + blueprints = [ + { + blueprint_arn = awscc_bedrock_blueprint.example.blueprint_arn + } + ] + } + override_configuration = { + document = { + splitter = { + state = "ENABLED" + } + } + } + + tags = [{ + key = "ModifiedBy" + value = "AWSCC" + }] +} diff --git a/examples/resources/awscc_bedrock_data_automation_project/bedrock_data_automation_standard_output_project.tf b/examples/resources/awscc_bedrock_data_automation_project/bedrock_data_automation_standard_output_project.tf new file mode 100644 index 0000000000..4d58ec4cc1 --- /dev/null +++ b/examples/resources/awscc_bedrock_data_automation_project/bedrock_data_automation_standard_output_project.tf @@ -0,0 +1,34 @@ +resource "awscc_bedrock_data_automation_project" "example" { + project_name = "example-project" + project_description = "example-description" + standard_output_configuration = { + document = { + extraction = { + granularity = { + types = ["DOCUMENT"] + } + bounding_box = { + state = "ENABLED" + } + } + generative_field = { + state = "DISABLED" + } + output_format = { + text_format = { + types = ["PLAIN_TEXT"] + } + additional_file_format = { + state = "DISABLED" + } + } + } + } + override_configuration = { + document = { + splitter = { + state = "ENABLED" + } + } + } +} diff --git a/examples/resources/awscc_sagemaker_cluster/sagemaker_cluster_eks_autoscaling.tf b/examples/resources/awscc_sagemaker_cluster/sagemaker_cluster_eks_autoscaling.tf new file mode 100644 index 0000000000..cdbdf6cc01 --- /dev/null +++ b/examples/resources/awscc_sagemaker_cluster/sagemaker_cluster_eks_autoscaling.tf @@ -0,0 +1,190 @@ +resource "awscc_sagemaker_cluster" "hyperpod_autoscaling" { + cluster_name = "hyperpod-eks-autoscaling" + + instance_groups = [ + { + execution_role = awscc_iam_role.execution.arn + instance_count = 1 + instance_type = "ml.c5.xlarge" + instance_group_name = "system" + life_cycle_config = { + source_s3_uri = "s3://${aws_s3_bucket.lifecycle.id}/config/" + on_create = "on_create.sh" + } + }, + { + execution_role = awscc_iam_role.execution.arn + instance_count = 0 + instance_type = "ml.c5.xlarge" + instance_group_name = "auto-c5-az1" + life_cycle_config = { + source_s3_uri = "s3://${aws_s3_bucket.lifecycle.id}/config/" + on_create = "on_create.sh" + } + }, + { + execution_role = awscc_iam_role.execution.arn + instance_count = 0 + instance_type = "ml.c5.4xlarge" + instance_group_name = "auto-c5-4xaz2" + life_cycle_config = { + source_s3_uri = "s3://${aws_s3_bucket.lifecycle.id}/config/" + on_create = "on_create.sh" + } + override_vpc_config = { + security_group_ids = [var.security_group_id] + subnets = [var.subnet_2] + } + } + ] + + orchestrator = { + eks = { + cluster_arn = var.eks_cluster_arn + } + } + + vpc_config = { + security_group_ids = [var.security_group_id] + subnets = [var.subnet_1] + } + + cluster_role = awscc_iam_role.cluster.arn + + auto_scaling = { + mode = "Enable" + auto_scaler_type = "Karpenter" + } + + node_provisioning_mode = "Continuous" + + tags = [{ + key = "Environment" + value = "Development" + }, { + key = "AutoScaling" + value = "Enabled" + }] +} + +# IAM Role for Karpenter Autoscaling +resource "awscc_iam_role" "cluster" { + role_name = "SageMakerHyperPodKarpenterRole" + assume_role_policy_document = jsonencode({ + Version = "2012-10-17" + Statement = [ + { + Effect = "Allow" + Principal = { + Service = ["hyperpod.sagemaker.amazonaws.com"] + } + Action = "sts:AssumeRole" + } + ] + }) + + policies = [ + { + policy_name = "SageMakerHyperPodKarpenterPolicy" + policy_document = jsonencode({ + Version = "2012-10-17" + Statement = [ + { + Effect = "Allow" + Action = [ + "sagemaker:BatchAddClusterNodes", + "sagemaker:BatchDeleteClusterNodes" + ] + Resource = "arn:aws:sagemaker:*:*:cluster/*" + Condition = { + StringEquals = { + "aws:ResourceAccount" = "$${aws:PrincipalAccount}" + } + } + }, + { + Effect = "Allow" + Action = [ + "kms:CreateGrant", + "kms:DescribeKey" + ] + Resource = "arn:aws:kms:*:*:key/*" + Condition = { + StringLike = { + "kms:ViaService" = "sagemaker.*.amazonaws.com" + } + Bool = { + "kms:GrantIsForAWSResource" = "true" + } + "ForAllValues:StringEquals" = { + "kms:GrantOperations" = [ + "CreateGrant", + "Decrypt", + "DescribeKey", + "GenerateDataKeyWithoutPlaintext", + "ReEncryptTo", + "ReEncryptFrom", + "RetireGrant" + ] + } + } + } + ] + }) + } + ] +} + +resource "awscc_iam_role" "execution" { + role_name = "SageMakerHyperPodExecutionRole" + assume_role_policy_document = jsonencode({ + Version = "2012-10-17" + Statement = [ + { + Effect = "Allow" + Principal = { + Service = ["sagemaker.amazonaws.com"] + } + Action = "sts:AssumeRole" + } + ] + }) + + managed_policy_arns = [ + "arn:aws:iam::aws:policy/AmazonSageMakerFullAccess" + ] +} + +resource "aws_s3_bucket" "lifecycle" { + bucket = "sagemaker-hyperpod-lifecycle-${random_id.bucket_suffix.hex}" +} + +resource "aws_s3_object" "script" { + bucket = aws_s3_bucket.lifecycle.id + key = "config/on_create.sh" + content = "#!/bin/bash\necho 'HyperPod node initialization complete'" +} + +resource "random_id" "bucket_suffix" { + byte_length = 4 +} + +variable "eks_cluster_arn" { + description = "ARN of the EKS cluster" + type = string +} + +variable "security_group_id" { + description = "Security group ID for the cluster" + type = string +} + +variable "subnet_1" { + description = "First subnet ID" + type = string +} + +variable "subnet_2" { + description = "Second subnet ID" + type = string +} diff --git a/templates/resources/bedrock_blueprint.md.tmpl b/templates/resources/bedrock_blueprint.md.tmpl new file mode 100644 index 0000000000..22f5f33aa5 --- /dev/null +++ b/templates/resources/bedrock_blueprint.md.tmpl @@ -0,0 +1,27 @@ +--- +page_title: "{{.Name}} {{.Type}} - {{.ProviderName}}" +subcategory: "" +description: |- + {{.Description | plainmarkdown | trimspace | prefixlines " "}} +--- + +# {{.Name}} ({{.Type}}) + +{{.Description | trimspace}} + +## Example Usage + +### Custom Blueprints for documents +Create a custom blueprint for intelligent document processing with Bedrock Data Automation +{{ tffile (printf "examples/resources/%s/bedrock_document_blueprint.tf" .Name)}} + +{{.SchemaMarkdown | trimspace}} +{{- if .HasImport}} + +## Import + +Import is supported using the following syntax: + +{{ codefile "shell" .ImportFile}} + +{{- end}} diff --git a/templates/resources/bedrock_data_automation_project.md.tmpl b/templates/resources/bedrock_data_automation_project.md.tmpl new file mode 100644 index 0000000000..b9a10a1ad1 --- /dev/null +++ b/templates/resources/bedrock_data_automation_project.md.tmpl @@ -0,0 +1,31 @@ +--- +page_title: "{{.Name}} {{.Type}} - {{.ProviderName}}" +subcategory: "" +description: |- + {{.Description | plainmarkdown | trimspace | prefixlines " "}} +--- + +# {{.Name}} ({{.Type}}) + +{{.Description | trimspace}} + +## Example Usage + +### Standard output +Create a Bedrock Data Automation project with standard output using the document modality +{{ tffile (printf "examples/resources/%s/bedrock_data_automation_standard_output_project.tf" .Name)}} + +### Custom output +Create a Bedrock Data Automation project with custom output using the document modality +{{ tffile (printf "examples/resources/%s/bedrock_data_automation_custom_output_project.tf" .Name)}} + +{{.SchemaMarkdown | trimspace}} +{{- if .HasImport}} + +## Import + +Import is supported using the following syntax: + +{{ codefile "shell" .ImportFile}} + +{{- end}} diff --git a/templates/resources/sagemaker_cluster.md.tmpl b/templates/resources/sagemaker_cluster.md.tmpl index f7b82655ea..edd9ce1646 100644 --- a/templates/resources/sagemaker_cluster.md.tmpl +++ b/templates/resources/sagemaker_cluster.md.tmpl @@ -21,6 +21,11 @@ To create a SageMaker HyperPod Cluster resource with an existing EKS cluster as {{ tffile (printf "examples/resources/%s/sagemaker_cluster_eks.tf" .Name)}} +### EKS with Karpenter Autoscaling +To create a SageMaker HyperPod Cluster with EKS orchestration and Karpenter-based autoscaling enabled. + +{{ tffile (printf "examples/resources/%s/sagemaker_cluster_eks_autoscaling.tf" .Name)}} + {{ .SchemaMarkdown | trimspace }} {{- if or .HasImport .HasImportIDConfig .HasImportIdentityConfig }} From b60e13106a41e358efd5d218028bdcfca4b454db Mon Sep 17 00:00:00 2001 From: Manu Chandrasekhar Date: Mon, 12 Jan 2026 10:12:25 -0500 Subject: [PATCH 2/2] fix: formatting for the docs --- docs/resources/bedrock_blueprint.md | 4 ++-- docs/resources/bedrock_data_automation_project.md | 8 ++++---- templates/resources/bedrock_blueprint.md.tmpl | 4 ++-- .../resources/bedrock_data_automation_project.md.tmpl | 8 ++++---- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/docs/resources/bedrock_blueprint.md b/docs/resources/bedrock_blueprint.md index 4f4b3af4b8..a207b15439 100644 --- a/docs/resources/bedrock_blueprint.md +++ b/docs/resources/bedrock_blueprint.md @@ -11,8 +11,8 @@ Definition of AWS::Bedrock::Blueprint Resource Type ## Example Usage -### Custom Blueprints for documents -Create a custom blueprint for intelligent document processing with Bedrock Data Automation +### Custom Blueprints for Documents +Create a custom blueprint for intelligent document processing with Bedrock Data Automation. ```terraform resource "awscc_bedrock_blueprint" "example" { blueprint_name = "example-blueprint" diff --git a/docs/resources/bedrock_data_automation_project.md b/docs/resources/bedrock_data_automation_project.md index 334c0f9f0e..c086bd44b0 100644 --- a/docs/resources/bedrock_data_automation_project.md +++ b/docs/resources/bedrock_data_automation_project.md @@ -11,8 +11,8 @@ Definition of AWS::Bedrock::DataAutomationProject Resource Type ## Example Usage -### Standard output -Create a Bedrock Data Automation project with standard output using the document modality +### Standard Output +Create a Bedrock Data Automation project with standard output using the document modality. ```terraform resource "awscc_bedrock_data_automation_project" "example" { project_name = "example-project" @@ -50,8 +50,8 @@ resource "awscc_bedrock_data_automation_project" "example" { } ``` -### Custom output -Create a Bedrock Data Automation project with custom output using the document modality +### Custom Output +Create a Bedrock Data Automation project with custom output using the document modality. ```terraform resource "awscc_bedrock_data_automation_project" "example" { project_name = "example-project" diff --git a/templates/resources/bedrock_blueprint.md.tmpl b/templates/resources/bedrock_blueprint.md.tmpl index 22f5f33aa5..fff0df4e19 100644 --- a/templates/resources/bedrock_blueprint.md.tmpl +++ b/templates/resources/bedrock_blueprint.md.tmpl @@ -11,8 +11,8 @@ description: |- ## Example Usage -### Custom Blueprints for documents -Create a custom blueprint for intelligent document processing with Bedrock Data Automation +### Custom Blueprints for Documents +Create a custom blueprint for intelligent document processing with Bedrock Data Automation. {{ tffile (printf "examples/resources/%s/bedrock_document_blueprint.tf" .Name)}} {{.SchemaMarkdown | trimspace}} diff --git a/templates/resources/bedrock_data_automation_project.md.tmpl b/templates/resources/bedrock_data_automation_project.md.tmpl index b9a10a1ad1..24cf247d3e 100644 --- a/templates/resources/bedrock_data_automation_project.md.tmpl +++ b/templates/resources/bedrock_data_automation_project.md.tmpl @@ -11,12 +11,12 @@ description: |- ## Example Usage -### Standard output -Create a Bedrock Data Automation project with standard output using the document modality +### Standard Output +Create a Bedrock Data Automation project with standard output using the document modality. {{ tffile (printf "examples/resources/%s/bedrock_data_automation_standard_output_project.tf" .Name)}} -### Custom output -Create a Bedrock Data Automation project with custom output using the document modality +### Custom Output +Create a Bedrock Data Automation project with custom output using the document modality. {{ tffile (printf "examples/resources/%s/bedrock_data_automation_custom_output_project.tf" .Name)}} {{.SchemaMarkdown | trimspace}}