(aws-apprunner-alpha): missing apprunner runtime Python_311 #30146
Labels
@aws-cdk/aws-apprunner
Related to the apprunner package
bug
This issue is a bug.
effort/small
Small work item – less than a day of effort
p2
Describe the bug
Apprunner supports two Python Runtimes: 3 and 311 as documented here: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apprunner-service-codeconfigurationvalues.html
PYTHON_311 is missing from https://github.com/aws/aws-cdk/blob/main/packages/%40aws-cdk/aws-apprunner-alpha/lib/service.ts#L210
Expected Behavior
It is expected that the CDK should make all supported runtimes available.
Current Behavior
It only supports Python_3 (this translates to the extremely old Python 3.8)
Reproduction Steps
apprunner_alpha.Service(
self,
"My Web Site",
instance_role=web_instance_role,
source=apprunner_alpha.Source.from_git_hub(
repository_url="",
branch="main",
configuration_source=apprunner_alpha.ConfigurationSourceType.API,
code_configuration_values=apprunner_alpha.CodeConfigurationValues(
runtime=apprunner_alpha.Runtime.PYTHON_3,
port="5000",
start_command="",
build_command="",
environment_variables={},
),
connection=apprunner_alpha.GitHubConnection.from_connection_arn(
web_github_arn
),
),
)
Possible Solution
/**
*/
public static readonly PYTHON_311 = Runtime.of('PYTHON_311')
Additional Information/Context
No response
CDK CLI Version
2.140.0
Framework Version
No response
Node.js Version
v20.9.0
OS
Ubuntu
Language
Python
Language Version
Python 3.11
Other information
No response
The text was updated successfully, but these errors were encountered: