As supported regions for AWS services and its resources are not always the same, I want to fetch the supported regions for resources programatically. Is there any available command to do so?
I can find for the service but not for resource:
For example,
aws ssm get-parameters-by-path --path /aws/service/global-infrastructure/services/ec2/regions --output json
Reference: New – Query for AWS Regions, Endpoints, and More Using AWS Systems Manager Parameter Store