내용으로 건너뛰기

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

질문됨 2년 전584회 조회
2개 답변
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.

전문가
답변함 2년 전
전문가
검토됨 2년 전
  • 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
전문가
답변함 2년 전
전문가
검토됨 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

관련 콘텐츠