Cloudformation-coverage-roadmap: AWS::WAFv2::WebACL-LoggingConfigration

Created on 21 Jan 2020  路  13Comments  路  Source: aws-cloudformation/cloudformation-coverage-roadmap

1. Title

AWS::WAFv2::WebACL-LoggingConfigration

2. Scope of request

AWS::WAFv2::WebACL-LoggingConfiguration - can create resource via API, but not via CloudFormation

3. Expected behavior

There is no option to configure the default IAM role used for WAFv2 Logging. The resource should automatically create the role when logging configuration is set

4. Suggest specific test cases

N/A

5. Helpful Links to speed up research and evaluation

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-webacl.html

https://docs.aws.amazon.com/cli/latest/reference/wafv2/put-logging-configuration.html

6. Category (required)

  1. Security (IAM, KMS...)
networking & content deliv

Most helpful comment

Any update on this?

All 13 comments

Please add LoggingConfiguration to AWS::WAF::WebACL and AWS::WAFRegional::WebACL too !
@kenshinuesugi can you correct the typo of LoggingConfiguration in the issue title and "2. Scope" content please ? It will be easier to search ^^

Please add LoggingConfiguration to AWS::WAF::WebACL and AWS::WAFRegional::WebACL too !
@kenshinuesugi can you correct the typo of LoggingConfiguration in the issue title and "2. Scope" content please ? It will be easier to search ^^

Thanks for that! All done.

Any update on this?

Please add LoggingConfiguration to AWS::WAF::WebACL and AWS::WAFRegional::WebACL too !

Seriously, can we please get this?
I'm stuck using an older version of Terraform which doesn't fully support AWS WAFv2. No problem, I thought, I'll just include a Cloudformation Stack inside my TF. Wrong! No support for linking WAFv2 with Kinesis Firehose in Cloudformation either!

So far the only solutions I've found to programmatically do this are either using the WAF API, or involving lambdas as explained here: https://aws.amazon.com/blogs/security/enable-automatic-logging-of-web-acls-by-using-aws-config/ Unfortunately this is far more involved than my project needs at the moment.

Please add LoggingConfiguration to AWS::WAF::WebACL and AWS::WAFRegional::WebACL too !

Seriously, can we please get this?
I'm stuck using an older version of Terraform which doesn't fully support AWS WAFv2. No problem, I thought, I'll just include a Cloudformation Stack inside my TF. Wrong! No support for linking WAFv2 with Kinesis Firehose in Cloudformation either!

So far the only solutions I've found to programmatically do this are either using the WAF API, or involving lambdas as explained here: https://aws.amazon.com/blogs/security/enable-automatic-logging-of-web-acls-by-using-aws-config/ Unfortunately this is far more involved than my project needs at the moment.

Disregard, I now see that the very recently released AWS provider 2.68.0 fixes this issue! https://github.com/terraform-providers/terraform-provider-aws/releases/tag/v2.68.0

+1 we would love to use this feature in the future

Would love to use this feature +1

This feature would be great to have at AWS CDK level also.

Yes, Would love to use this feature at the AWS CDK level.

this would be really good to have on the aws cdk level

Upvote

This feature should really be implemented, you should not have to jump through Lambda hoops and whatnot to enable logging (especially on security services!)...

Hey all - I have written a private resource for this feature, which will help you in deploying WAFv2 WebACL LoggingConfiguration using Cloudformation. The code is here. You can download the code and submit it to Cloudformation Registry as a Private Resource. (I have also provided instructions to do this).

Feedback, suggestions are welcome!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghost picture ghost  路  4Comments

msaggar picture msaggar  路  3Comments

TheDanBlanco picture TheDanBlanco  路  3Comments

luiseduardocolon picture luiseduardocolon  路  4Comments

johnkoehn picture johnkoehn  路  3Comments