Skip to content

Eventbridge (creation & deletion resources)

0

whenever a resources is created or deleted it will invoke my lambda. using event bridge. Q1. Is it possible to create an event bridge rule without creating a cloud trail as it will incur some cost for multiple resources. Q2. is it possible to invoke these services (Global accelerator, athena) using eventbridge as on this url it is not showing me these services. https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-service-event-list.html

my Eventbridge rule is: { "source": ["aws.lambda", "aws.events", "aws.cloudfront", "aws.s3", "aws.ec2", "aws.sns", "aws.sqs", "aws.secretsmanager", "aws.cloudformation", "aws.codepipeline", "aws.apigateway", "aws.cloudtrail", "aws.cognito-idp", "aws.config", "aws.ds", "aws.cloudtrail", "aws.elasticloadbalancing", "aws.pinpoint", "aws.vpc", "aws.waf", "aws.workspaces", "aws.ses", "aws.ssm", "aws.states", "aws.globalaccelerator", "aws.amplify", "aws.kinesis", "aws.kms", "aws.dynamodb", "aws.athena", "aws.acm"], "detail-type": ["AWS API Call via CloudTrail"], "detail": { "eventName": ["CreateFunction20150331", "DeleteFunction20150331", "CreateBucket", "PutRule", "DeleteRule", "AllocateAddress", "ReleaseAddress", "CreateDistribution", "DeleteDistribution", "ImportApi", "DeleteBucket", "CreateApi", "DeleteApi", "CreateRestApi", "DeleteRestApi", "RunInstances", "TerminateInstances", "CreateSecret", "DeleteSecret", "CreateSecurityGroup", "DeleteSecurityGroup", "CreateTopic", "DeleteTopic", "CreateQueue", "DeleteQueue", "CreateSubnet", "DeleteSubnet", "CreateStack", "DeleteStack", "CreatePipeline", "DeletePipeline", "StartLogging", "CreateTrail", "DeleteTrail", "DeleteUserPool", "CreateUserPool", "PutConfigRule", "DeleteConfigRule", "CreateDirectory", "CreateMicrosoftAD", "DeleteDirectory", "CreateLoadBalancer", "DeleteLoadBalancer", "CreateTargetGroup", "DeleteTargetGroup", "CreateVolume", "DeleteVolume", "CreateVpc", "DeleteVpc", "CreateApp", "DeleteApp", "CreateWebACL", "DeleteWebACL", "CreateWorkspace", "DeleteWorkspace", "CreateEmailIdentity", "DeleteEmailIdentity", "CreateSnapshot", "DeleteSnapshot", "CreateStateMachine", "DeleteStateMachine", "CreateAccelerator", "DeleteAccelerator", "CreateApp", "DeleteApp", "CreateDeliveryStream", "DeleteDeliveryStream", "CreateKey", "DeleteKey", "CreateTable", "DeleteTable", "CreateNamedQuery", "DeleteNamedQuery", "RequestCertificate", "DeleteCertificate"] } }

  • please accept the answer if it was helpful

asked 2 years ago549 views
2 Answers
1

Hello,

AWS EventBridge can record some AWS service events natively, eliminating the requirement for CloudTrail. However, the range of services and events available may be limited. For example, EventBridge can collect EC2 instance state changes or S3 bucket actions.

If the specific events you need (e.g., resource creation/deletion for all services) are not supported natively by EventBridge, you would need to use CloudTrail to capture these events.

Global accelerator can't send events to Event bridge, you would have to use Cloud trail logs to capture the events and Athena can emit events to Event bridge only for query state change natively.

EXPERT
answered 2 years ago
EXPERT
reviewed 2 years ago
  • I have to check for all these resources. APIGateway Cloud-Formation CloudFront CloudTrail CodePipeline Cognito Config EC2 Elastic IP Amazon EventBridge Lambda Function Load Balancer Pinpoint Secret Manager Security Group SNS SQS Subnet S3 Target Group Volume VPC SES Verified Identities Snapshot DynamoDB State-Machines Certificate Manager Directory Service Route-53 Global Accelerator Amplify Kinesis-Deliverystreams KMS Athena WAF Amazon Workspace

    is there any alternative way like aws config?

0

Q1. Is it possible to create an event bridge rule without creating a cloud trail as it will incur some cost for multiple resources.

  • Yes, it is possible

Q2. is it possible to invoke these services (Global accelerator, athena) using eventbridge as on this url it is not showing me these services.

  • even if some services can not be called directly, you can invoke a Lambda function, which will do whatever you want
EXPERT
answered 2 years ago
EXPERT
reviewed 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.