Configuration in this directory creates EventBridge resource configuration including an API Gateway and a SQS queue.
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.
Name | Version |
---|---|
terraform | >= 1.0 |
aws | >= 5.27 |
random | >= 3.0 |
Name | Version |
---|---|
aws | >= 5.27 |
random | >= 3.0 |
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 |
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 |
No inputs.
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 |