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.

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

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

질문 답변하기에 대한 가이드라인