Hi,
Thanks for the reply. Adding space before and after fixed one part but i want the corresponding value in double quotes. With the suggested change my script looks like this,
HTML Code:
sudo ./setupscript -u http://www.test.sid.com -f Test -l RTM-5 -e s.khavnekar@gmail.com -p 12345qwer -c US -s CA -t IRVINE -o TestCustomer -r ec2-35-164-172-109.us-west-2.compute.amazonaws.com -d magentodb -a magento -b magento123 -h magentodb.cvjxzqrkxoho.us-west-2.rds.amazonaws.com
expected output is
HTML Code:
sudo ./setupscript -u "http://www.test.sid.com" -f "Test" -l "RTM-5" -e "s.khavnekar@gmail.com" -p "12345qwer" -c "US" -s "CA" -t "IRVINE" -o "TestCustomer" -r "ec2-35-164-172-109.us-west-2.compute.amazonaws.com" -d "magentodb" -a "magento" -b "magento123" -h "magentodb.cvjxzqrkxoho.us-west-2.rds.amazonaws.com"
This is what my json code looks like now,
HTML Code:
"sudo sh /var/www/html/app/bin/setupscript \n",
" -u ", {"Ref" : "URL"},
" -f ", {"Ref" : "FirstName"},
" -l ", {"Ref" : "LastName"},
" -e ", {"Ref" : "Email"},
" -p ", {"Ref" : "Password"},
" -c ", {"Ref" : "CountryCode"},
" -s ", {"Ref" : "StateCode"},
" -t ", {"Ref" : "City"},
" -o ", {"Ref" : "OrgName"},
" -r ", {"Fn::GetAtt" : [ "ElasticLoadBalancer", "DNSName" ]},
" -d ", {"Ref" : "DBName"},
" -a ", {"Ref" : "DBUser"},
" -b ", {"Ref" : "DBPassword"},
" -h ", { "Fn::GetAtt" : [ "DBInstance", "Endpoint.Address" ] }