我正在将 CloudFormation 模板重写为 terraform,并且有一个 CF 资源,我不知道 TF 中是否有对应的资源。
CF 资源是 AWS::SageMaker::Pipeline
下面是 template.yaml 的片段
pipeline:
Type: AWS::SageMaker::Pipeline
Properties:
PipelineName: !Ref pPipelineName
PipelineDisplayName: !Ref pPipelineName
PipelineDescription: !Ref pPipelineDescription
PipelineDefinition:
PipelineDefinitionBody: !Sub "{\"Version\":\"2020-12-01\",........}}]}"
RoleArn: !Ref pPipelineRoleArn
Tags:
- Key: project
Value: !Ref pProjectName
有人在 Terraform 中定义了此资源吗?
最佳答案
它尚未正式添加到 Terraform aws
提供程序中。然而,最近 Terraform 中添加了一个可以帮助人们测试不同新功能的提供商,它被称为 AWS 云控制提供商 awscc
。 [1] 中给出了如何使用此提供程序的示例。 HashiCorp Learn 上也有教程 [2]。您正在寻找的资源在[3]中给出。
[1] https://registry.terraform.io/providers/hashicorp/awscc
[2] https://learn.hashicorp.com/tutorials/terraform/aws-cloud-control
[3] https://registry.terraform.io/providers/hashicorp/awscc/latest/docs/resources/sagemaker_pipeline
关于terraform - 在 Terraform 中定义 sagemaker 管道资源,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/71051224/