Relative Content

Tag Archive for jsonbashjq

Edit JSON property file for use in bash script

I have a .sh script and a .json properties file for use with AWS CLI v2 to create a CF Stack. I have a parameters file in JSON that I need to substitute one value, but all th key/value pairs are the same and I cannot figure out how to get it to pick the right one, the variable ENV in defined in the script and the line below is what I need to pass the edited JSON file into. I believe it will also take it s a full String Blob instead of file if that is easier. I was trying jq with no luck but maybe there’s an even easier solution