SHARE
TWEET

Untitled

a guest Jun 18th, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [
  2.     {
  3.         "ParameterKey": "XYZ",
  4.         "ParameterValue": "{someval}{index}"
  5.     },
  6.     {
  7.         "ParameterKey": "ABC",
  8.         "ParameterValue": "staticval-{suffix}"
  9.     }
  10. ]
  11.      
  12. #! /bin/bash
  13.  
  14. # create output file from template
  15. cp templates/parameters.json.template generated/parameters.json
  16.  
  17. # merge dynamic values into templated file
  18. sed -i "s/{someval}/$SOME_VAL/g" generated/parameters.json
  19. sed -i "s/{index}/$INDEX/g" generated/parameters.json
  20. sed -i "s/{suffix}/$SUFFIX/g" generated/parameters.json
  21.  
  22. aws cloudformation create-stack ... --parameters generated/parameters.json ...
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top