Somebody using `WAF v2` with `APIGW v2`? I’m tryin...
# sst
a
Somebody using
WAF v2
with
APIGW v2
? I’m trying to use both, but my
httpApi
is created by SST, and not sure how to get the ARN.
Copy code
new waf.CfnWebACLAssociation(this, 'WebACLAssociation', {
      webAclArn: webACL.attrArn,
      resourceArn: 'XXXX',
    });
I need
resourceArn
but not sure how to get it.
f
Are you looking for the ARN for the Http Api?
Can you try building it with this format
arn:_partition_:apigateway:_region_::/apis/_api-id_
?
something like thi maybe?
arn:aws:apigateway:${app.region}::/apis/${myApi.httpApi.apiId}
a
Yeah I can build it maybe.
I was expecting the construct to provide it.
f
Yeah.. this is a weird one. Not sure why the underlying CDK construct didn’t provide it.
Opened an issue to add
httpApiArn
to
sst.Api
https://github.com/serverless-stack/serverless-stack/issues/805
a
Thank you, yeah I thought the same, was surprised when couldn’t find the ARN.
@Frank noticed that your example has 2
:
is that right?
region::/apis
.
f