2 Respostas
- Mais recentes
- Mais votos
- Mais comentários
0
Solution: the issue was that for a WAF association with an API Gateway we need to associate with the API Stage, not individual endpoints. The stage ARN as @MikelDelTio mentioned is of the format: arn: partition :apigateway: region ::/restapis/ api-id /stages/ stage-name. I kept trying to hook it up per endpoint which has the format: arn:partition:execute-api:region:account-id:api-id/stage/http-method/resource-path.
respondido há 7 meses
0
Hi,
According to the CDK documentation, the ARN must be in the following format for the Amazon API Gateway REST API: arn: *partition* :apigateway: *region* ::/restapis/ *api-id* /stages/ *stage-name*
. Could this be the problem?
I did double check that: I wonder if the doc is outdated. Because when I created a dummy REST API on API Gateway(using the TS CDK function LambdaRestApi(...)) just to see what the ARN would look like it came out to be of the format: