【问题标题】:Defining sagemaker pipeline resource in Terraform在 Terraform 中定义 sagemaker 管道资源
【发布时间】:2022-02-09 22:26:29
【问题描述】:

我正在将 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 amazon-cloudformation amazon-sagemaker


    【解决方案1】:

    尚未正式添加到 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

    【讨论】:

    • 感谢您的回答,不知道那个提供商!
    • @SolMalisani 如果这可行,接受和/或支持将不胜感激。 :)
    猜你喜欢
    • 2022-07-27
    • 2021-10-12
    • 2018-03-02
    • 2020-01-07
    • 2022-01-25
    • 2023-03-31
    • 2023-01-16
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多