org-formation / org-formation-cli

Better than landingzones!
MIT License
1.41k stars 131 forks source link

Feature request: a function to get data from a rest API #486

Open zaro0508 opened 1 year ago

zaro0508 commented 1 year ago

I would like to have an generic org-formation function that I could use to make a request to any REST API and pass the response data into either a cloudformation or a TemplatingContext parameter.

Example of get data from a REST API endpoint then pass it into a hounds parameter:

DogsExample:
  Type: update-stacks
  Template: dogs.yaml
  StackName: DogsExample
  Parameters:
    cfn-hounds:  !Request "https://dog.ceo/api/breed/hound/list"
  TemplatingContext:
    tc-hounds:  !Request "https://dog.ceo/api/breed/hound/list"