Issue creating cloudwatch subscription filter for firehose - Could not deliver test message to specified Firehose stream. User: XXXXX is not authorized to perform: firehose:PutRecord #34433
-
hello, I am facing an error creating a cloudwatch logs subscription filter to an aws firehose stream. The error suggests a permissions issue when cdk is trying to deliver a test message. Is this an issue with the account the cdk deploy is running against? It has administrator access so should not have issues I think. And a role and policy is created to give the firehose:PutRecord permissions. See sample code
Using nodejs 22, aws cdk v2. Any help appreciated. thank you |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I figured this out. cdk/cloudformation was not automatically inferring ordering/dependencies between some of the resources. I added a couple of dependencies explicitly in the cdk code and it started working.
|
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
I figured this out. cdk/cloudformation was not automatically inferring ordering/dependencies between some of the resources. I added a couple of dependencies explicitly in the cdk code and it started working.