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.61k stars 9k forks source link

[Enhancement]: aws_sagemaker_domain customize user interface #38240

Open jmeisele opened 2 days ago

jmeisele commented 2 days ago

Description

You can now customize the sagemaker domain user interface at either the domain level or the user profile level, this request is specifically for the aws_sagemaker_domain level. boto3 equivalent update command has the new argument under DefaultUserSettings

StudioWebPortalSettings

This allows you to "hide" UI elements from your sagemaker domain instance.

        'StudioWebPortalSettings': {
            'HiddenMlTools': [
                'DataWrangler'|'FeatureStore'|'EmrClusters'|'AutoMl'|'Experiments'|'Training'|'ModelEvaluation'|'Pipelines'|'Models'|'JumpStart'|'InferenceRecommender'|'Endpoints'|'Projects',
            ],
            'HiddenAppTypes': [
                'JupyterServer'|'KernelGateway'|'DetailedProfiler'|'TensorBoard'|'CodeEditor'|'JupyterLab'|'RStudioServerPro'|'RSessionGateway'|'Canvas',
            ]
        }

https://docs.aws.amazon.com/sagemaker/latest/dg/studio-updated-ui-customize.html

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

aws_sagemaker_domain

Potential Terraform Configuration

resource "aws_sagemaker_domain" "example" {
  domain_name = "example"
  auth_mode   = "IAM"
  vpc_id      = aws_vpc.example.id
  subnet_ids  = [aws_subnet.example.id]

  default_user_settings {
    execution_role = aws_iam_role.example.arn
    studio_web_portal_settings {
      hidden_ml_tools = ['DataWrangler']
      hidden_app_types = ['Canvas']
    }
  }
}

References

AWS Docs Here

boto3 comperable command here

Would you like to implement a fix?

None

github-actions[bot] commented 2 days ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue