fix(cloudformation): forward ProviderARNs on AWS::ApiGateway::Authorizer (#4704)

The REST API Gateway provisioner never read ProviderARNs, so a COGNITO_USER_POOLS authorizer was created with no user pool and CognitoUserPoolAuthorizer rejected every token with 401 before inspecting it. Resolve the list like the other list-shaped properties and forward it as providerARNs, which createAuthorizer already accepts.
This commit is contained in:
danielxoi authored and GitHub committed 2026-10-01 20:40:14 -04:00
1 parent 9c3593f4d1
commit b5f053c587
2 files changed
+28

No files matched your search

@@ -513,6 +513,9 @@ public class ApiGatewayRestApiCfnProvisioner implements CfnResourceProvisioner {
if (ttl != null) {
req.put("authorizerResultTtlInSeconds", ttl);
}
if (props != null && props.has("ProviderARNs")) {
req.put("providerARNs", ctx.resolveStringList(props, "ProviderARNs"));
}
Authorizer authorizer = apiGatewayService.createAuthorizer(ctx.region(), apiId, req);
r.setPhysicalId(authorizer.getId());
r.getAttributes().put("AuthorizerId", authorizer.getId());