-
Notifications
You must be signed in to change notification settings - Fork 1k
eventbridge-fan-in-terraform: Update AWS Provider to v6 with bug fixes and README improvements #3274
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
Open
kakakakakku
wants to merge
9
commits into
aws-samples:main
Choose a base branch
from
kakakakakku:eventbridge-fan-in-terraform
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
eventbridge-fan-in-terraform: Update AWS Provider to v6 with bug fixes and README improvements #3274
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
3dcc4e5
eventbridge-fan-in-terraform: Update AWS Provider to v6
kakakakakku ef1fb2c
eventbridge-fan-in-terraform: Add Eventbus creation steps to README
kakakakakku 0ae2857
eventbridge-fan-in-terraform: Replace deprecated is_enabled with stat…
kakakakakku d3b54a9
eventbridge-fan-in-terraform: Remove unused outputs
kakakakakku 994c993
eventbridge-fan-in-terraform: Remove unused Lambda handler stub
kakakakakku 248274f
eventbridge-fan-in-terraform: Fix missing provider aliases causing cr…
kakakakakku a20a132
eventbridge-fan-in-terraform: Add testing commands to README
kakakakakku e1fc64c
eventbridge-fan-in-terraform: Add Eventbus cleanup steps to README
kakakakakku c9eb5fc
eventbridge-fan-in-terraform: Fix service name spelling in README
kakakakakku File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,7 +12,7 @@ resource "aws_cloudwatch_event_rule" "ebrule" { | |
| local.account_id | ||
| ] | ||
| }) | ||
| is_enabled = true | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| state = "ENABLED" | ||
| } | ||
|
|
||
| //IAM role and policy for Event rule | ||
|
|
@@ -86,6 +86,7 @@ data "aws_iam_policy_document" "log_policy" { | |
| } | ||
|
|
||
| resource "aws_cloudwatch_log_resource_policy" "log-resource-policy" { | ||
| provider = aws.central | ||
| policy_document = data.aws_iam_policy_document.log_policy.json | ||
| policy_name = "eventbridge-log-publishing-policy" | ||
| } | ||
|
|
@@ -95,7 +96,8 @@ module "central_eventbridge" { | |
| providers = { | ||
| aws = aws.central | ||
| } | ||
| source = "terraform-aws-modules/eventbridge/aws" | ||
| source = "terraform-aws-modules/eventbridge/aws" | ||
| version = "~> 4.3" | ||
|
|
||
| bus_name = "central-event-bus" | ||
|
|
||
|
|
@@ -128,6 +130,7 @@ module "central_eventbridge" { | |
|
|
||
| //Create targets on each rule to send events to Central Eventbus | ||
| resource "aws_cloudwatch_event_target" "EBtargets" { | ||
| provider = aws.others | ||
| for_each = tomap(aws_cloudwatch_event_rule.ebrule) | ||
| event_bus_name = each.key | ||
| rule = each.value.name | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,15 +1,3 @@ | ||
| output "all_rules" { | ||
| value = resource.aws_cloudwatch_event_rule.ebrule | ||
| } | ||
|
|
||
| output "ebRole" { | ||
| value = aws_iam_role.event_bus_invoke_central_event_bus.arn | ||
| } | ||
|
|
||
| output "central_bus_arn" { | ||
| value = module.central_eventbridge.eventbridge_bus_arn | ||
| } | ||
|
|
||
| output "central_bus_rule_arn" { | ||
| value = module.central_eventbridge.eventbridge_rule_arns | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. note: It's unused code |
This file was deleted.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
note: Added AWS CLI commands to create the fan-in event buses (the pattern assumes they already exist, but most readers need to create them first)