terraform-aws-eventbridge/examples/api-gateway-event-source
2021-04-28 19:34:18 +02:00
..
main.tf chore: Updated versions&comments in examples 2021-04-28 19:34:18 +02:00
outputs.tf feat: Simplified outputs (no this_) (#6) 2021-04-08 18:54:37 +02:00
README.md chore: Updated versions&comments in examples 2021-04-28 19:34:18 +02:00
sample-order-data.json feat: first commit (#1) 2021-03-22 23:15:02 +07:00
variables.tf feat: first commit (#1) 2021-03-22 23:15:02 +07:00
versions.tf feat: Some refactoring and added ability to handle default bus (#5) 2021-04-08 18:25:27 +02:00

EventBridge API Gateway Event Source

Configuration in this directory creates EventBridge resource configuration including an API Gateway and a SQS queue.

Usage

To run this example you need to execute:

$ terraform init
$ terraform plan
$ terraform apply

Note that this example may create resources which cost money. Run terraform destroy when you don't need these resources.

Requirements

Name Version
terraform >= 0.13.1
aws >= 3.19
random >= 3

Providers

Name Version
aws >= 3.19
random >= 3

Modules

Name Source Version
api_gateway terraform-aws-modules/apigateway-v2/aws ~> 0
apigateway_put_events_to_eventbridge_policy terraform-aws-modules/iam/aws//modules/iam-policy ~> 4.0
apigateway_put_events_to_eventbridge_role terraform-aws-modules/iam/aws//modules/iam-assumable-role ~> 4.0
eventbridge ../../

Resources

Name Type
aws_sqs_queue.dlq resource
aws_sqs_queue.queue resource
aws_sqs_queue_policy.queue resource
random_pet.this resource
aws_iam_policy_document.apigateway_put_events_to_eventbridge_policy data source
aws_iam_policy_document.queue data source

Inputs

No inputs.

Outputs

Name Description
eventbridge_bus_arn The EventBridge Bus Arn
eventbridge_bus_name The EventBridge Bus Name
eventbridge_role_arn The ARN of the IAM role created for EventBridge
eventbridge_role_name The name of the IAM role created for EventBridge
eventbridge_rule_arns The EventBridge Rule ARNs created
eventbridge_rule_ids The EventBridge Rule IDs created