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.81k stars 9.16k forks source link

[Enhancement]: SageMaker Built In Life Cycle Config #39851

Open oliverguy1 opened 1 day ago

oliverguy1 commented 1 day ago

Description

In the AWS Create Domain API there is an option to set a "Built In Life Cycle Config" to set the LCC that runs every time a new Jupyter Notebook or Code Editor is set up.

This does not currently exist within the aws_sagemaker_domain resource as of version 5.72.1 of the provider

Affected Resource(s) and/or Data Source(s)

aws_sagemaker_domain

Potential Terraform Configuration

resource "aws_sagemaker_studio_lifecycle_config" "jupyterlab_config" {
  studio_lifecycle_config_name     = "jupyterlab"
  studio_lifecycle_config_app_type = "JupyterLab"
  studio_lifecycle_config_content  = filebase64("${path.module}/jupyterlab.sh")
}

resource "aws_sagemaker_domain" "domain" {
  domain_name = var.sagemaker_domain_name

  default_user_settings {
    code_editor_app_settings {
      built_in_lifecycle_config_arn = aws_sagemaker_studio_lifecycle_config.jupyterlab_config.arn
    }
}

References

AWS Create Domain API Reference AWS Create Domain API - BuiltInLifeCycleConfigArn parameter

Would you like to implement a fix?

No

github-actions[bot] commented 1 day ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue

deepakbshetty commented 15 hours ago

Hi @oliverguy1

I believe this is now released in 5.73.0 [ https://github.com/hashicorp/terraform-provider-aws/releases/tag/v5.73.0 ]

https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/sagemaker_domain#built_in_lifecycle_config_arn