aws-cloudformation / aws-cloudformation/cloudformation-coverage-roadmap

[AWS::SageMaker::App] - [BUG] - #/AppType: CodeEditor is not a valid enum value

Open
#2,307 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
No language data
Stars
1.1k
Forks
62
PR merge metrics
No merged PRs in 30d

Description

### Name of the resource

AWS::SageMaker::App

### Resource Name

_No response_

### Issue Description

I noted that in the CloudFormation documentation, 'CodeEditor' is not a valid value for AppType: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-app.html#cfn-sagemaker-app-apptype. However, when I look up existing apps for my domain with AWS CLI (configured with click-ops), it does return my app with AppType 'CodeEditor'.

```
{
"Apps": [
{
"DomainId": "d-u0oecosdfsf",
"SpaceName": "code-editor-mike",
"AppType": "CodeEditor",
"AppName": "default",
"Status": "InService",
"CreationTime": "2025-04-22T07:24:35.004000+12:00",
"ResourceSpec": {
"SageMakerImageArn": "arn:aws:sagemaker:us-east-1:885854791233:image/sagemaker-distribution-cpu",
"SageMakerImageVersionAlias": "2.4.1",
"InstanceType": "ml.t3.medium"
}
}
]
}
```

### Expected Behavior

I expect CodeEditor to be a valid enum value, and CDK to create the app.

### Observed Behavior

```
_ToolkitError: The stack named dev-sagemaker-ai-stack failed creation, it may need to be manually deleted from the AWS console: ROLLBACK_COMPLETE: Properties validation failed for resource SagemakerCodeEditorApp with message:
[#/AppType: CodeEditor is not a valid enum value]
```

### Test Cases

Deploy the following with CDK:

```
const domain: CfnDomain;
const userProfile: CfnUserProfile;

new CfnApp(this, 'SagemakerCodeEditorApp', {
appName: 'CodeEditor',
domainId: domain.attrDomainId,
userProfileName: userProfile.userProfileName,
appType: 'CodeEditor',
resourceSpec: {
instanceType: 'ml.t3.medium',
sageMakerImageArn: `arn:aws:sagemaker:us-east-1:885854791233:image/sagemaker-distribution-cpu`,
},
});
```

### Other Details

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by comparing the AWS::SageMaker::App documentation enum with the AWS CLI response and the CfnApp example in the issue. Confirm the expected CodeEditor value and use the supplied CDK deployment case to verify that the resource accepts it and completes successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws
Domain
cloud
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.