Skip to content

Latest commit

 

History

History

api-gateway-event-source

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

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 >= 1.0
aws >= 5.27
random >= 3.0

Providers

Name Version
aws >= 5.27
random >= 3.0

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 ../../ n/a

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