Programmatically list Current AWS Support Plan? (AWSPowerShell or AWS CLI 1/2)

Viewed 213

I am looking to programmatically List my Current Support Plan that is active in AWS (Basic, Business, Enterprise On-Ramp, Enterprise). I cannot find this anywhere in AWS's AWSPowerShell Help or AWS CLI Help.

Is this possible to find this value programmatically using AWS CLI or AWSPowerShell? Requested call and output would be similar to:

C:\> Get-CurrentPremiumSupportPlan

Output: "Business"

Reference:

1 Answers

From this post: https://aws.amazon.com/blogs/mt/aws-partners-determine-aws-support-plans-in-organization/

Seems that it can not be done directly (does not exist some API Call to get the Support plan) but you can use the describe-severity-levels API and based on the response determine which Support plan you have.

  • If an AWS account has an Enterprise support plan, the highest severity levels returned are critical and urgent.
  • If an account has a Business support plan, the highest severity level returned is urgent.
  • For the Developer support plan, the severity levels returned are low and normal.
  • If a premium AWS Support plan is not currently enabled, the following error is returned: "An error occurred (SubscriptionRequiredException) when calling the DescribeSeverityLevels operation: AWS Premium Support Subscription is required to use this service."
Related