2 réponses
- Le plus récent
- Le plus de votes
- La plupart des commentaires
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.
répondu il y a 8 mois
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?
Contenus pertinents
- demandé il y a un an
- demandé il y a un an
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 2 ans
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: