mirror of
https://github.com/floci-io/floci.git
synced 2026-11-27 07:39:24 -05:00
fix(lambda): preserve code signing ARN partition (#6913)
This commit is contained in:
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();
|
||||
|
||||
Reference in new issue
Block a user