You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running cfn-lint against a template that contains an AWS::SageMaker::Domain resource with the AppLifecycleManagement property defined results in the error:
E3002 Additional properties are not allowed ('AppLifecycleManagement' was unexpected)
This was being defined as follows (full replication template also included):
"JupyterLabAppSettings": {
"type": "object",
"description": "The JupyterLab app settings.",
"additionalProperties": false,
"properties": {
"DefaultResourceSpec": {
"$ref": "#/definitions/ResourceSpec",
"description": "The default instance type and the Amazon Resource Name (ARN) of the default SageMaker image used by the JupyterLab app."
},
"LifecycleConfigArns": {
"type": "array",
"description": "A list of LifecycleConfigArns available for use with JupyterLab apps.",
"uniqueItems": false,
"minItems": 0,
"maxItems": 30,
"items": {
"$ref": "#/definitions/StudioLifecycleConfigArn"
}
},
"CodeRepositories": {
"type": "array",
"description": "A list of CodeRepositories available for use with JupyterLab apps.",
"uniqueItems": false,
"minItems": 0,
"maxItems": 30,
"items": {
"$ref": "#/definitions/CodeRepository"
}
},
"CustomImages": {
"type": "array",
"description": "A list of custom images for use for JupyterLab apps.",
"uniqueItems": false,
"minItems": 0,
"maxItems": 200,
"items": {
"$ref": "#/definitions/CustomImage"
}
},
"AppLifecycleManagement": {
"$ref": "#/definitions/AppLifecycleManagement"
}
}
},
"AppLifecycleManagement": {
"type": "object",
"properties": {
"IdleSettings": {
"$ref": "#/definitions/IdleSettings"
}
},
"additionalProperties": false
},
"IdleSettings": {
"type": "object",
"properties": {
"LifecycleManagement": {
"$ref": "#/definitions/LifecycleManagement"
},
"IdleTimeoutInMinutes": {
"$ref": "#/definitions/IdleTimeoutInMinutes"
},
"MinIdleTimeoutInMinutes": {
"$ref": "#/definitions/MinIdleTimeoutInMinutes"
},
"MaxIdleTimeoutInMinutes": {
"$ref": "#/definitions/MaxIdleTimeoutInMinutes"
}
},
"additionalProperties": false
},
Creating the stack despite the error from cfn-lint results in the stack creating successfully, and the API call to CreateDomain is properly showing these values being based in the request parameters:
Therefore, it seems cfn-lint is incorrectly detecting this as an invalid property
Expected behavior
As this is a valid property, it would be expected that cfn-lint does not display the E3002 Additional properties are not allowed ('AppLifecycleManagement' was unexpected) message
CloudFormation Lint Version
1.22.6
What operating system are you using?
Mac OS 15.1.1
Describe the bug
Running cfn-lint against a template that contains an
AWS::SageMaker::Domain
resource with theAppLifecycleManagement
property defined results in the error:This was being defined as follows (full replication template also included):
According to the docs for this resource type, this is the correct way to specify these properties: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-domain-jupyterlabappsettings.html#cfn-sagemaker-domain-jupyterlabappsettings-applifecyclemanagement
This is also reflected in the resource schema:
Creating the stack despite the error from cfn-lint results in the stack creating successfully, and the API call to
CreateDomain
is properly showing these values being based in the request parameters:Therefore, it seems cfn-lint is incorrectly detecting this as an invalid property
Expected behavior
As this is a valid property, it would be expected that cfn-lint does not display the
E3002 Additional properties are not allowed ('AppLifecycleManagement' was unexpected)
messageReproduction template
The text was updated successfully, but these errors were encountered: