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

[Enhancement]: aws_sagemaker_domain add Hidden Image Versions options to the studio_web_portal_settings #39876

Open daleksandrov-adsk opened 6 days ago

daleksandrov-adsk commented 6 days ago

Description

The new Sagemaker Studio (non Classic) allows bringing your own JupyterLab container images. According to the CreateDomain API, the StudioWebPortalSettings has a property HiddenSageMakerImageVersionAliases, so that we can hide unwanted images from the dropdown list in the portal, or even restrict it only to the internal corporate approved image (this is the actual goal) image

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

aws_sagemaker_domain

Potential Terraform Configuration

resource "aws_sagemaker_domain" "my_domain" {
  ...
  default_user_settings {
    ...
    studio_web_portal_settings {
      hidden_app_types = [...]
      hidden_ml_tools  = [...]
      hidden_sagemaker_image_version_aliases = [
        {
          sagemaker_image_name = "sagemaker_distribution"
          version_aliases      = ["1.10", "1.11"]
        }
      ]
    }
  }
}

References

https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateDomain.html https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_UserSettings.html#sagemaker-Type-UserSettings-StudioWebPortalSettings

Would you like to implement a fix?

None

github-actions[bot] commented 6 days ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue