Invalid ARN when creating aws.wafv2.WebAclLoggingConfiguration
See original GitHub issueWhen trying to create aws.wafv2.WebAclLoggingConfiguration it fails with The ARN isn’t valid. A valid ARN begins with arn: and includes other information separated by colons or slashes. Thing is that the arn format its ok, spoke with AWS support and they said that all the setup was made properly for aws and api calls so it seems to be a pulumi issue.
Here is the example code from @pulumi/aws module:
const example = new aws.wafv2.WebAclLoggingConfiguration("example", {
logDestinationConfigs: [aws_kinesis_firehose_delivery_stream.example.arn],
resourceArn: aws_wafv2_web_acl.example.arn,
redactedFields: [{
singleHeader: {
name: "user-agent",
},
}],
});
And this is my code:
const waflogging = new aws.wafv2.WebAclLoggingConfiguration("model-builder-waflogging", {
logDestinationConfigs: [kinesisStream.arn],
resourceArn: wafwebacl.arn // I tried to manually add as string but same issue.
}, { dependsOn: kinesisStream });
When I run Pulumi, I have the following error:
* error putting WAFv2 Logging Configuration for resource (arn:aws:wafv2:us-east-1:796031763495:global/webacl/modelbuilderCF/80986c63-50d8-4775-b82e-91339616cc81): WAFInvalidParameterException: Error reason: The ARN isn't valid. A valid ARN begins with arn: and includes other information separated by colons or slashes., field: RESOURCE_ARN, parameter: arn:aws:wafv2:us-east-1:796031763495:global/webacl/modelbuilderCF/80986c63-50d8-4775-b82e-91339616cc81
{
RespMetadata: {
StatusCode: 400,
RequestID: "79d08de5-b145-4eb5-9f35-c67ef076f3ac"
},
Field: "RESOURCE_ARN",
Message_: "Error reason: The ARN isn't valid. A valid ARN begins with arn: and includes other information separated by colons or slashes., field: RESOURCE_ARN, parameter: arn:aws:wafv2:us-east-1:796031763495:global/webacl/modelbuilderCF/80986c63-50d8-4775-b82e-91339616cc81",
Parameter: "arn:aws:wafv2:us-east-1:796031763495:global/webacl/modelbuilderCF/80986c63-50d8-4775-b82e-91339616cc81",
Reason: "The ARN isn't valid. A valid ARN begins with arn: and includes other information separated by colons or slashes."
}
For now I had to manually enable logging to my webacl v2 but It will be nice to have it all done from Pulumi. Please advise if its something I do wrong or is there any other constructor that I can use to configure logging. I tried to add the ARN as string but same outcome.
Thanks
Issue Analytics
- State:
- Created 3 years ago
- Comments:19 (2 by maintainers)
Top Results From Across the Web
Invalid ARN when creating aws.wafv2 ... - GitHub
WebAclLoggingConfiguration it fails with The ARN isn't valid. A valid ARN begins with arn: and includes other information separated by colons or ...
Read more >Invalid ARN when performing tagging operation on aws wafv2
I am trying to view and add tags on my web acls using aws wafv2 cli command. Other command ...
Read more >AWS::WAFv2::LoggingConfiguration - AWS CloudFormation
For an Amazon CloudWatch Logs log group, AWS WAF creates a resource ... Type: AWS::WAFv2::LoggingConfiguration Properties: ResourceArn: arn:aws:wafv2:us- ...
Read more >aws.wafv2.WebAclLoggingConfiguration - Pulumi
Creates a WAFv2 Web ACL Logging Configuration resource. Note: To start logging from a WAFv2 Web ACL, an Amazon Kinesis Data Firehose (e.g.,...
Read more >aws_wafv2_web_acl_logging_c...
Creates a WAFv2 Web ACL Logging Configuration resource. ... terraform import aws_wafv2_web_acl_logging_configuration.example arn:aws:wafv2:us-west-2: ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
You need to ensure your delivery stream’s name begins with
aws-waf-logs-
.This was fixed by doing the following:
Closing issue.