hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.76k stars 9.12k forks source link

aws_cloudwatch_event_target: Add support for Sagemaker Pipeline Parameters #21374

Closed crlliao closed 1 year ago

crlliao commented 2 years ago

Community Note

Description

Add ability to specify Sagemaker Pipeline Parameters when adding an Eventbridge Event Target. SageMaker Pipeline parameters are used to execute a SageMaker pipeline. Parameter names are static while parameter values can be either a static value or a dynamic JSON path to the event payload.

New or Affected Resource(s)

Potential Terraform Configuration

resource "aws_cloudwatch_event_target" "sagemaker_pipeline" {
  arn  = "arn:aws:sagemaker:us-east-1:12345678910:pipeline/my_pipeline"
  role_arn = aws_iam_role.events_pipeline_role.arn
  rule = aws_cloudwatch_event_rule.trigger_my_pipeline.id

  sagemaker_pipeline_target {
      pipeline_parameters = {
          ProcessingInstanceType = "ml.c5.2xlarge",
          TrainingInstanceType   = "ml.c5.xlarge",
          InputData = "$.detail.s3bucket",
          EndpointInstanceType = "ml.m5.large"
         }
    } 
}

References

george-chenvibes commented 1 year ago

any updates on this?

DrFaust92 commented 1 year ago

working on this

github-actions[bot] commented 1 year ago

This functionality has been released in v5.12.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

github-actions[bot] commented 1 year ago

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.