-
-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add functionality to forward Cloudwatch Events #48
Conversation
/test all |
/test all |
@kevcube those tests really don't like this PR 😅. Can you access them? |
@Gowiem I think it may be that there's some terratest updates or something that the bot is not able to commit to my fork, but I don't know why that's the case.. looking |
fixed some issues by running some of the bot workflows manually. @Gowiem can you kick off tests again |
/test all |
@kevcube :
|
@Gowiem fixed |
lambda-log.tf
Outdated
|
||
for_each = local.lambda_enabled && var.forwarder_log_enabled ? var.cloudwatch_forwarder_event_patterns : {} | ||
|
||
name = "${module.forwarder_log_label.id}-${each.key}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there is probably a better way I should be naming these.. should I be making a new label module for each cloudwatch_event??
I may update this child module to expose the cloudwatch property name_prefix instead of only name.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aha - you should be passing context
(e.g. context = module.forwarder_log_label.context
) and then adding a specific name for the key (like you're doing) or adding attributes as well if there are going to be conflicts with that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it - did that and it looks a lot better
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/test all |
@@ -1,5 +1,5 @@ | |||
terraform { | |||
required_version = ">= 0.13" | |||
required_version = ">= 1.3.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kevcube this is the only thing holding us up. I'm still discussing with the maintainer team on this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got the general 👍 on this after some back and forth discussion. 🎉
what
why