I am deploying a aws stack using gitlab -- using the below code in .gitlab-ci.yml file.
script:
- |
aws cloudformation create-change-set \
--change-set-type UPDATE \
--template-body file://./abc.yaml \
--change-set-name abcdef \
--stack-name $STACKNAME \
--parameters file://./params.json \
--capabilities CAPABILITY_IAM
I want to use gitlab user defined variables in params.json file
Below is my params.json file.
[
{
"ParameterKey": "someparameter",
"ParameterValue": "$ABC",
},
{
"ParameterKey": "otherparameter",
"ParameterValue": "$DEF"
}]
I want to add gitlab user defined variables in place of $DEF and $ABC. What is the correct way of doing so?