Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# _3.101_ (2025-12-16)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use .changes/next-release/*.json files to add changelogs, that gets rolled into the changelog at release time; direct CHANGELOG edits typically conflict with the release tooling.

- **Feature** AWS SDK v2 2.26.25 -> 2.40.8
- **Feature** SAM path auto-detection works now also for homebrew installations
- **Feature** Support for Python 3.13
- **Feature** Support for Python 3.14

# _3.100_ (2025-12-09)

# _3.99_ (2025-11-21)
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ toolkitVersion=3.101-SNAPSHOT
publishToken=
publishChannel=

ideProfileName=2025.2
ideProfileName=2025.3

remoteRobotPort=8080

Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apache-commons-io = "2.16.1"
apache-commons-text = "1.12.0"
assertJ = "3.26.3"
# match with <root>/settings.gradle.kts
awsSdk = "2.26.25"
awsSdk = "2.40.8"
commonmark = "0.22.0"
detekt = "1.23.8"
diff-util = "4.12"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,10 @@ abstract class ToolkitClientManager {
}

val clientOverrideConfig = ClientOverrideConfiguration.builder()
clientOverrideConfig.putAdvancedOption(
SdkAdvancedClientOption.USER_AGENT_SUFFIX,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there a test asserting this new User-Agent header still contains the toolkit identifier?

userAgent()
)

if (credProvider != null) {
credentialsProvider(credProvider)
Expand All @@ -194,49 +198,6 @@ abstract class ToolkitClientManager {
}
}

clientOverrideConfig.addExecutionInterceptor(object : ExecutionInterceptor {
override fun modifyRequest(
context: Context.ModifyRequest,
executionAttributes: ExecutionAttributes,
): SdkRequest {
val request = context.request()
if (request !is AwsRequest) {
return request
}

val clientType = executionAttributes.getAttribute(AwsExecutionAttribute.CLIENT_TYPE)
val sdkClient = executionAttributes.getAttribute(SdkInternalExecutionAttribute.SDK_CLIENT)
val serviceClientConfiguration = sdkClient.serviceClientConfiguration()
val retryMode = serviceClientConfiguration.overrideConfiguration().retryMode().orElse(RetryMode.defaultRetryMode())
val toolkitUserAgent = userAgent()

val requestUserAgent = ApplyUserAgentStage.resolveClientUserAgent(
toolkitUserAgent,
null,
clientType,
null,
null,
retryMode.toString().lowercase()
)

val overrideConfiguration = request.overrideConfiguration()
.map { config ->
config.toBuilder()
.putHeader(HEADER_USER_AGENT, requestUserAgent)
.build()
}
.orElseGet {
AwsRequestOverrideConfiguration.builder()
.putHeader(HEADER_USER_AGENT, requestUserAgent)
.build()
}

return request.toBuilder()
.overrideConfiguration(overrideConfiguration)
.build()
}
})

clientOverrideConfig.let { configuration ->
configuration.retryStrategy(RetryMode.STANDARD)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ enum class LambdaRuntime(
PYTHON3_10(Runtime.PYTHON3_10, minSamDebugging = "1.78.0", minSamInit = "1.78.0", architectures = ARM_COMPATIBLE),
PYTHON3_11(Runtime.PYTHON3_11, minSamDebugging = "1.87.0", minSamInit = "1.87.0", architectures = ARM_COMPATIBLE),
PYTHON3_12(Runtime.PYTHON3_12, minSamDebugging = "1.103.0", minSamInit = "1.103.0", architectures = ARM_COMPATIBLE),
PYTHON3_13(Runtime.PYTHON3_13, minSamDebugging = "1.129.0", minSamInit = "1.129.0", architectures = ARM_COMPATIBLE),
PYTHON3_14(Runtime.PYTHON3_14, minSamDebugging = "1.150.1", minSamInit = "1.150.1", architectures = ARM_COMPATIBLE),
DOTNET6_0(Runtime.DOTNET6, minSamDebugging = "1.40.1", minSamInit = "1.40.1", architectures = ARM_COMPATIBLE),
;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ class PythonLocalLambdaRunConfigurationIntegrationTest(private val runtime: Runt
arrayOf(Runtime.PYTHON3_10),
arrayOf(Runtime.PYTHON3_11),
arrayOf(Runtime.PYTHON3_12),
arrayOf(Runtime.PYTHON3_13),
arrayOf(Runtime.PYTHON3_14),
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,20 @@ class Python312ImageDebugSupport : PythonImageDebugSupport() {
override val bootstrapPath: String = "/var/runtime/bootstrap.py"
}

class Python313ImageDebugSupport : PythonImageDebugSupport() {

@seshubaws seshubaws Jun 8, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add tests for this and 3.14

override val id: String = LambdaRuntime.PYTHON3_13.toString()
override fun displayName() = LambdaRuntime.PYTHON3_13.toString().capitalize()
override val pythonPath: String = "/var/lang/bin/python3.13"
override val bootstrapPath: String = "/var/runtime/bootstrap.py"
}

class Python314ImageDebugSupport : PythonImageDebugSupport() {
override val id: String = LambdaRuntime.PYTHON3_14.toString()
override fun displayName() = LambdaRuntime.PYTHON3_14.toString().capitalize()
override val pythonPath: String = "/var/lang/bin/python3.14"
override val bootstrapPath: String = "/var/runtime/bootstrap.py"
}

private const val DEBUGGER_VOLUME_PATH = "/tmp/lambci_debug_files"

private fun createDebugProcess(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,16 @@ class PythonRuntimeGroup : SdkBasedRuntimeGroup() {
LambdaRuntime.PYTHON3_9,
LambdaRuntime.PYTHON3_10,
LambdaRuntime.PYTHON3_11,
LambdaRuntime.PYTHON3_12
LambdaRuntime.PYTHON3_12,
LambdaRuntime.PYTHON3_13,
LambdaRuntime.PYTHON3_14
)

override fun runtimeForSdk(sdk: Sdk): LambdaRuntime? = when {
!PythonSdkUtil.isPythonSdk(sdk) -> null

PythonSdkType.getLanguageLevelForSdk(sdk).isAtLeast(LanguageLevel.PYTHON314) -> LambdaRuntime.PYTHON3_14
PythonSdkType.getLanguageLevelForSdk(sdk).isAtLeast(LanguageLevel.PYTHON313) -> LambdaRuntime.PYTHON3_13
PythonSdkType.getLanguageLevelForSdk(sdk).isAtLeast(LanguageLevel.PYTHON312) -> LambdaRuntime.PYTHON3_12
PythonSdkType.getLanguageLevelForSdk(sdk).isAtLeast(LanguageLevel.PYTHON311) -> LambdaRuntime.PYTHON3_11
PythonSdkType.getLanguageLevelForSdk(sdk).isAtLeast(LanguageLevel.PYTHON310) -> LambdaRuntime.PYTHON3_10
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@ import software.aws.toolkits.jetbrains.services.lambda.wizard.TemplateParameters
import software.aws.toolkits.resources.message

private val pythonTemplateRuntimes =
setOf(LambdaRuntime.PYTHON3_8, LambdaRuntime.PYTHON3_9, LambdaRuntime.PYTHON3_10, LambdaRuntime.PYTHON3_11, LambdaRuntime.PYTHON3_12)
setOf(LambdaRuntime.PYTHON3_8, LambdaRuntime.PYTHON3_9, LambdaRuntime.PYTHON3_10, LambdaRuntime.PYTHON3_11, LambdaRuntime.PYTHON3_12,
LambdaRuntime.PYTHON3_13, LambdaRuntime.PYTHON3_14)
private val eventBridgeTemplateRuntimes =
setOf(LambdaRuntime.PYTHON3_8, LambdaRuntime.PYTHON3_9, LambdaRuntime.PYTHON3_10, LambdaRuntime.PYTHON3_11, LambdaRuntime.PYTHON3_12)
setOf(LambdaRuntime.PYTHON3_8, LambdaRuntime.PYTHON3_9, LambdaRuntime.PYTHON3_10, LambdaRuntime.PYTHON3_11, LambdaRuntime.PYTHON3_12,
LambdaRuntime.PYTHON3_13, LambdaRuntime.PYTHON3_14)

class PythonSamProjectWizard : SamProjectWizard {
override fun createSdkSelectionPanel(projectLocation: TextFieldWithBrowseButton?): SdkSelector = when {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,16 @@ class SamExecutable : ExecutableType<SemVer>, AutoResolvable, Validatable {
arrayOf("C:\\Program Files\\Amazon\\AWSSAMCLI\\bin", "C:\\Program Files (x86)\\Amazon\\AWSSAMCLI\\bin"),
arrayOf("sam.cmd", "sam.exe")
)
} else {
} else if (SystemInfo.isMac) {
ExecutableDetector().find(
arrayOf("/usr/local/bin", "/usr/bin"),
arrayOf("/usr/local/bin", "/usr/bin", "/opt/homebrew/bin/sam"),
arrayOf("sam")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ExecutableDetector will look for /opt/homebrew/bin/sam/sam and never find anything. It needs to be "/opt/homebrew/bin".

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also please add a test for this

)
} else {
ExecutableDetector().find(
arrayOf("/usr/local/bin", "/usr/bin"),
arrayOf("sam")
)
}
) ?: return null

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,24 @@ class PythonRuntimeGroupTest {
@Test
fun testRuntimeDetection312() {
val module = projectRule.module
// PythonCodeInsightTestFixtureRule already sets SDK to 3.12
// projectRule.setModuleSdk(module, PyTestSdk.create("3.12.0"))
projectRule.setModuleSdk(module, PyTestSdk.create("3.12.0"))

assertThat(sut.determineRuntime(module)).isEqualTo(LambdaRuntime.PYTHON3_12)
}

@Test
fun testRuntimeDetection313() {
val module = projectRule.module
projectRule.setModuleSdk(module, PyTestSdk.create("3.13.0"))

assertThat(sut.determineRuntime(module)).isEqualTo(LambdaRuntime.PYTHON3_13)
}

@Test
fun testRuntimeDetection314() {
val module = projectRule.module
projectRule.setModuleSdk(module, PyTestSdk.create("3.14.0"))

assertThat(sut.determineRuntime(module)).isEqualTo(LambdaRuntime.PYTHON3_14)
}
}

This file was deleted.

2 changes: 1 addition & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ buildscript {
// match with version catalog, s3-build-cache has silent classpath conflict with codegen task
// also since this is a settings plugin, we can't use a version catalog
dependencies {
classpath(platform("software.amazon.awssdk:bom:2.26.25"))
classpath(platform("software.amazon.awssdk:bom:2.40.8"))
}
}

Expand Down