fix(lambda): preserve code signing ARN partition (#6913)

This commit is contained in:
Jimmy Liu Jia authored and GitHub committed 2026-10-29 08:02:41 -04:00
1 parent 23d815f08b
commit 479595e6ec
3 files changed
+39 -4

No files matched your search

@@ -702,7 +702,7 @@ public class LambdaService implements ResourceProvider {
AwsArnUtils.Arn arn = AwsArnUtils.parse(functionName);
if (!region.equals(arn.region())
|| !regionResolver.getAccountId().equals(arn.accountId())
|| !AwsRegions.partitionFor(region).equals(arn.partition())) {
|| !regionResolver.partitionForRegion(region).equals(arn.partition())) {
throw new AwsException("ResourceNotFoundException", "Function not found: " + functionName, 404);
}
return reference.name();