Reputation: 1614
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
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
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