ddps-lab / cloud-usage

MIT License
1 stars 1 forks source link

eventbridge 분석 #21

Open Kim-Yul opened 11 months ago

Kim-Yul commented 11 months ago

불필요한 eventbridge 로 인해 실행되는 lambda function이 있는지 조사합니다.

Kim-Yul commented 10 months ago

리전 별로 event bridge 내용 확인

image

ap-northeast-2 (Seoul)

  1. No Targets Rules : 2
    • EveryDay : 매일 9시마다 알림
    • test : 정확한 알림 없음
  2. Using Rules : 8
    • awscodestarnotifications-rule : arn:aws:codestar-notifications:ap-northeast-2::: (*)
    • DailyMorning : usage-report (매일 9시마다 알림)
    • FirstDayOfMonth : spot-instance-all-history & ec2-instance-price (매월 1일 9시마다 알림)
    • usage_report_s3_archiving : usage_s3_archiving_report (짝수월 1일, 5일 10시 5분마다 알림)
    • usage_report_s3_bucket : usage_s3_standard_report (매월 1일 10시마다 알림)
    • usage_run_auto_archiving : usage_created_archiving_instance (짝수월 6일 10시마다 알림)
    • usage-EC2-morning : usage_ec2_report (매일 8시 32분마다 알림)
    • usage-EC2-night : usage_ec2_report (매일 22시마다 알림)

us-east-1 (N.Virginia)

  1. No Targets Rules : 1
    • every1minute : 1분마다 알림
  2. Using Rules : 1
    • auto_all_with_event_json : ys_profet_container (매일 1분마다 알림)

us-east-2 (Ohio)

  1. No Targets Rules : 2
    • cron_testing : 15분마다 알림 (15, 30, 45, 0)
    • gcp-billing-to-slack : 30분마다 알림 (30, 0)
  2. Using Rules : 2
    • daily_posting : gcp_posting (매일 19시마다 알림)
    • to_DDPS-Lab : gcp_posting (매일 11시 30분마다 알림)

us-west-2 (Oregon)

  1. No Targets Rules : 7
    • EveryThirtyMinutes : 30분마다 알림 (30, 0) [Disabled]
    • invoke-every-5minutes : 5분마다 알림 [Disabled]
    • kkh-test : 5분마다 알림 [Disabled]
    • kkh-timestream-dailycount-lambda : 매일 9시 10분마다 알림
    • sungjae-sps-1d : 하루마다 알림
    • sungjae-sps-30m : 30분마다 알림
    • td : 1분마다 알림 [Disabled]
  2. Using Rules : 5
    • AutoScalingManagedRule : arn:aws:autoscaling:us-west-2::: (*)
    • DeepSpotCloud-TriggerLambda : DeepSpotCloud-TriggerWhenLaunchingInstances (*)
    • ExDeepSpotCloud-EC2Status : DeepSpotCloud-EC2StatusChange (*)
    • StepFunctionsGetEventsForStepFunctionsExecutionRule : arn:aws:states:us-west-2::: (*)
    • sungjae-spotinfo-event : sungjae-sps-multiprofile & sungjae-sps-capacity (10분마다 알림)

(*) 으로 표시된 것은 이벤트 브릿지를 사용하는 타겟은 존재하나 타겟이 무엇인지 판명하지 않아 적어두었습니다.


확인해보았을 때 어떤 것인지 제가 파악하지 못하는 것 외에는 전부 사용 중이라고 판단됩니다. 그래도 혹시 모르니 실제 사용 중인지 Using Rules 에 있는 내용을 한 번 확인해보아 불필요하게 이용되는 것이 있는지 확인이 필요할 듯합니다. 또한 다시 이용할 가능성이 있는 것을 제외하고 현재 사용하지 않는 것들은 Disabled 상태가 아닌 삭제하는 것이 좋다고 판단됩니다. 확인 후 이슈 클로즈 하겠습니다.

Kim-Yul commented 10 months ago

위의 사용 자원이 실제로 사용되는지 슬랙으로 확인 후, 자원을 정리하겠습니다. 이후 이슈 클로즈하겠습니다.