Automate creation of AWS support case

0

Hello,

I want to automate whole things as described below:-

If any resources get down or anything happens to resources(Eg:- High CPU Utilization, Memory Utilization) then a support case needs to be created automatically.

Shubham
質問済み 2年前534ビュー
2回答
0

I believe this is possible since AWS Support has an API of its own.[1]

References: [1] Programming an AWS Support case - https://docs.aws.amazon.com/awssupport/latest/user/Case_Life_Cycle.html

AWS
回答済み 2年前
  • Thanks for the quick response. I have seen it but there we have to enter some of the things manually. For Eg:- I want that if an EC2 Instance is above Cpu Utilization limit then CloudWatch trigger AWS lambda function and we have some function which will create AWS support case automatically.. no need to enter manually anything.

  • Yes, that's the correct way to go about it with an event triggering a Lambda function. Can you provide more context around what information it is asking for manually? Secondly, is there a specific use case you are trying to resolve? eg. It would be a good to create a support case for when something goes does, but not necessarily high usage which could be due to workload and would need initial troubleshooting.

  • Hello @Shivam_G, My use-case is that if any AWS resource misbehaves (eg:- Not working as expected) then there should be a trigger or something which can auto-generate an AWS support case..

0

Hi,

I understand that you want to create an automated case creation when the resources reaches a certain limit. You can follow the below steps to configure:

  •   Create a cloudwatch alarm for a metric [1]
    
  •   Trigger a lambda function
    
  •   Configure lambda with this API - https://docs.aws.amazon.com/awssupport/latest/APIReference/API_CreateCase.html
    

Supports all of these:

  •   AWS Command Line Interface
    
  •   AWS SDK for .NET
    
  •   AWS SDK for C++
    
  •   AWS SDK for Go
    
  •   AWS SDK for Java V2
    
  •   AWS SDK for JavaScript
    
  •   AWS SDK for PHP V3
    
  •   AWS SDK for Python
    
  •   AWS SDK for Ruby V3
    

I hope this helps

Resources:-

[1] https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/US_AlarmAtThresholdEC2.html

回答済み 2年前
  • Thanks for the help mate! I will go through this and will try to create one.

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ