Below is my taskdef.json and want to update few values dynamically using shell script, I'm trying to use JQ but doesn't seem to work as expected.
{
"containerDefinitions": [{
"logConfiguration": [{
"logDriver": "fluentd",
"options": {
"tag": "fluentd demo"
},
"secretOptions": [{
"name": "fluentd-address",
"valueFrom": "arn:aws:ssm:region:aws_account_id:parameter:parameter_name"
},
{
"name": "fluentd-name",
"valueFrom": "arn:aws:ssm:region:aws_account_id:parameter:parameter_name"
}
]
}]
}]
}
I want the region and aws_account_id to be updated dynamically instead of hardcoding the value directly inside the taskdef.json.Is there a way to update these value?