aws / aws-cdk

The AWS Cloud Development Kit is a framework for defining cloud infrastructure in code
https://aws.amazon.com/cdk
Apache License 2.0
11.68k stars 3.93k forks source link

(aws-apprunner-alpha): missing apprunner runtime Python_311 #30146

Closed hiselitelordship closed 3 months ago

hiselitelordship commented 6 months ago

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

/**

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

ashishdhingra commented 6 months ago

Appears to be a valid request for experimental aws-apprunner-alpha package. @hiselitelordship Feel free to contribute PR which could be reviewed by the team.

github-actions[bot] commented 3 months ago

Comments on closed issues and PRs are hard for our team to see. If you need help, please open a new issue that references this one.