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):
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.
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:
After creating an AWS support case, it was identified that the ARN passed is of a
notebook-instance-lifecycle-config
instead of the expectedStudioLifecycleConfigArn
pattern (see below):As per
AWS::Sagemaker::Domain
schema,StudioLifecycleConfigArn
:We would like to request better visibility and handling of such validation errors.
Other Details
No response