aws-cloudformation / cloudformation-coverage-roadmap

The AWS CloudFormation Public Coverage Roadmap
https://aws.amazon.com/cloudformation/
Creative Commons Attribution Share Alike 4.0 International
1.1k stars 53 forks source link

AWS::SageMaker::Domain | Improve visibility on validation errors #1953

Open miguel-aws opened 4 months ago

miguel-aws commented 4 months ago

Name of the resource

AWS::SageMaker::Domain

Resource name

AWS::SageMaker::Domain

Description

When specifying an incorrect ARN for LifecycleConfigArns, CloudFormation returns the validation error:

#/DefaultUserSettings/CodeEditorAppSettings/LifecycleConfigArns/0: failed validation constraint for keyword [pattern]

After creating an AWS support case, it was identified that the ARN passed is of a notebook-instance-lifecycle-config instead of the expected StudioLifecycleConfigArn pattern (see below):

arn:aws:sagemaker:us-east-1:000000000000:notebook-instance-lifecycle-config/my-config

As per AWS::Sagemaker::Domain schema, StudioLifecycleConfigArn:

    "StudioLifecycleConfigArn" : {
      "type" : "string",
      "description" : "The Amazon Resource Name (ARN) of the Lifecycle Configuration to attach to the Resource.",
      "maxLength" : 256,
      "pattern" : "arn:aws[a-z\\-]*:sagemaker:[a-z0-9\\-]*:[0-9]{12}:studio-lifecycle-config/.*"
    },

We would like to request better visibility and handling of such validation errors.

Other Details

No response