conteh
conteh

Reputation: 1614

Generate a list of AWS products available in cloudformation

Is there a way to generate a list programmatically of all aws resource types available in CloudFormation?

A resource type being ec2, s3...

Regards Conteh

Upvotes: 2

Views: 178

Answers (2)

Pat Myron
Pat Myron

Reputation: 4648

CloudFormation Resource Specifications can be parsed using something like jq:

curl -s --compressed https://d1uauaxba7bl26.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json | jq '.ResourceTypes | keys'

Upvotes: 4

Marcin
Marcin

Reputation: 238957

I think you are looking for list-types:

aws cloudformation list-types --visibility PUBLIC --type RESOURCE 

Since there is a lot of resources, you will probably need to execute the command multiple times to account for pagination.

Upvotes: 4

Related Questions