[SPARK-10532][EC2] Added --profile option to specify the name of profile
[SPARK-10532][EC2] Added --profile option to specify the name of profile

"profiles" give us the way that you can specify the set of credentials you want to use when you initialize a connection to AWS.

You can keep multiple sets of credentials in the same credentials files using different profile names.
For example, you can use --profile option to do that when you use "aws cli tool".

http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html

Author: teramonagi <teramonagi@gmail.com>

Closes #8696 from teramonagi/SPARK-10532.

debugger87/spark,kissmetrics/spark,taroplus/spark,mzl9039/spark,vinodkc/spark,ron8hu/spark,poffuomo/spark,bdrillard/spark,aosagie/spark,ptkool/spark,loneknightpy/spark,SnappyDataInc/spark,yanboliang/spark,wzhfy/spark,UndeadBaneGitHub/spark,SHASHANKB/spark,szhem/spark,kissmetrics/spark,SHASHANKB/spark,highfei2011/spark,HyukjinKwon/spark,jlopezmalla/spark,loneknightpy/spark,techaddict/spark,gengliangwang/spark,kiszk/spark,eyalfa/spark,ericvandenbergfb/spark,jkbradley/spark,byakuinss/spark,dongjoon-hyun/spark,saturday-shi/spark,narahari92/spark,yanboliang/spark,zhouyejoe/spark,brad-kaiser/spark,hvanhovell/spark,wangmiao1981/spark,jrshust/spark,tejasapatil/spark,SnappyDataInc/spark,dhruve/spark,zero323/spark,Aegeaner/spark,spark-test/spark,tengpeng/spark,saturday-shi/spark,Aegeaner/spark,wzhfy/spark,nchammas/spark,zzcclp/spark,adrian-ionescu/apache-spark,rezasafi/spark,tejasapatil/spark,xflin/spark,szhem/spark,ajaysaini725/spark,xuanyuanking/spark,hhbyyh/spark,ajaysaini725/spark,chuckchen/spark,MLnick/spark,ConeyLiu/spark,huang1900/spark,lxsmnv/spark,minixalpha/spark,facaiy/spark,kissmetrics/spark,nilsgrabbert/spark,SnappyDataInc/spark,rednaxelafx/apache-spark,kevinyu98/spark,aray/spark,skonto/spark,zzcclp/spark,Panos-Bletsos/spark-cost-model-optimizer,markhamstra/spark,ericvandenbergfb/spark,rekhajoshm/spark,jkbradley/spark,patrick-nicholson/spark,xflin/spark,kimoonkim/spark,mdespriee/spark,Aegeaner/spark,huang1900/spark,stanzhai/spark,srowen/spark,HyukjinKwon/spark,narahari92/spark,milliman/spark,xuanyuanking/spark,saltstar/spark,holdenk/spark,lxsmnv/spark,nilsgrabbert/spark,lvdongr/spark,jrshust/spark,rekhajoshm/spark,hvanhovell/spark,narahari92/spark,jrshust/spark,wangyum/spark,shaneknapp/spark,rikima/spark,xflin/spark,eyalfa/spark,liutang123/spark,janewangfb/spark,wangyum/spark,metamx/spark,spark-test/spark,Aegeaner/spark,pgandhi999/spark,ConeyLiu/spark,chuckchen/spark,bOOm-X/spark,brad-kaiser/spark,dhruve/spark,Panos-Bletsos/spark-cost-model-optimizer,zero323/spark,facaiy/spark,hhbyyh/spark,chuckchen/spark,vinodkc/spark,markhamstra/spark,kiszk/spark,dhruve/spark,ron8hu/spark,zzcclp/spark,huang1900/spark,highfei2011/spark,skonto/spark,JoshRosen/spark,liutang123/spark,mike0sv/spark,MLnick/spark,mdespriee/spark,pgandhi999/spark,holdenk/spark,huang1900/spark,spark-test/spark,rekhajoshm/spark,janewangfb/spark,skonto/spark,shuangshuangwang/spark,patrick-nicholson/spark,chuckchen/spark,milliman/spark,shuangshuangwang/spark,apache/spark,bOOm-X/spark,1haodian/spark,LantaoJin/spark,zzcclp/spark,aosagie/spark,maropu/spark,techaddict/spark,wangyum/spark,metamx/spark,1haodian/spark,kevinyu98/spark,UndeadBaneGitHub/spark,byakuinss/spark,map222/spark,eyalfa/spark,brad-kaiser/spark,jkbradley/spark,tengpeng/spark,alunarbeach/spark,loneknightpy/spark,tejasapatil/spark,jrshust/spark,dhruve/spark,aray/spark,kevinyu98/spark,zuotingbing/spark,LantaoJin/spark,tejasapatil/spark,pgandhi999/spark,kimoonkim/spark,ddna1021/spark,ron8hu/spark,liutang123/spark,mahak/spark,UndeadBaneGitHub/spark,minixalpha/spark,huang1900/spark,Panos-Bletsos/spark-cost-model-optimizer,setjet/spark,liyichao/spark,hhbyyh/spark,kissmetrics/spark,rezasafi/spark,srowen/spark,skonto/spark,lxsmnv/spark,yanboliang/spark,guoxiaolongzte/spark,saturday-shi/spark,apache-spark-on-k8s/spark,gioenn/xSpark,bravo-zhang/spark,UndeadBaneGitHub/spark,saturday-shi/spark,patrick-nicholson/spark,map222/spark,Aegeaner/spark,saltstar/spark,ibm-research-ireland/sparkoscope,jianran/spark,aosagie/spark,jlopezmalla/spark,debugger87/spark,highfei2011/spark,dbtsai/spark,esi-mineset/spark,mzl9039/spark,map222/spark,nchammas/spark,saturday-shi/spark,andrewor14/spark,cin/spark,saltstar/spark,esi-mineset/spark,JoshRosen/spark,rednaxelafx/apache-spark,ptkool/spark,goldmedal/spark,facaiy/spark,holdenk/spark,nlalevee/spark,map222/spark,bravo-zhang/spark,saltstar/spark,darionyaphet/spark,guoxiaolongzte/spark,eyalfa/spark,jlopezmalla/spark,poffuomo/spark,holdenk/spark,mdespriee/spark,JoshRosen/spark,apache/spark,JoshRosen/spark,hvanhovell/spark,LantaoJin/spark,rednaxelafx/apache-spark,aokolnychyi/spark,zuotingbing/spark,dbtsai/spark,apache-spark-on-k8s/spark,someorz/spark,caneGuy/spark,actuaryzhang/spark,zzcclp/spark,jkbradley/spark,hhbyyh/spark,zhouyejoe/spark,hvanhovell/spark,ueshin/apache-spark,nlalevee/spark,markhamstra/spark,JoshRosen/spark,rednaxelafx/apache-spark,shubhamchopra/spark,ddna1021/spark,Aegeaner/spark,JerryLead/spark,shaneknapp/spark,zuotingbing/spark,dongjoon-hyun/spark,saltstar/spark,witgo/spark,patrick-nicholson/spark,xuanyuanking/spark,publicRoman/spark,rednaxelafx/apache-spark,HyukjinKwon/spark,vinodkc/spark,WindCanDie/spark,actuaryzhang/spark,liutang123/spark,rezasafi/spark,ericvandenbergfb/spark,debugger87/spark,jrshust/spark,JerryLead/spark,big-pegasus/spark,mike0sv/spark,zhouyejoe/spark,rednaxelafx/apache-spark,liutang123/spark,cloud-fan/spark,ConeyLiu/spark,taroplus/spark,esi-mineset/spark,taroplus/spark,minixalpha/spark,minixalpha/spark,akopich/spark,tengpeng/spark,aokolnychyi/spark,ericvandenbergfb/spark,sachintyagi22/spark,ibm-research-ireland/sparkoscope,ahnqirage/spark,ahnqirage/spark,big-pegasus/spark,michalsenkyr/spark,caneGuy/spark,poffuomo/spark,zero323/spark,srowen/spark,aosagie/spark,guoxiaolongzte/spark,rekhajoshm/spark,cin/spark,yanboliang/spark,ioana-delaney/spark,BryanCutler/spark,ahnqirage/spark,metamx/spark,lvdongr/spark,haowu80s/spark,kissmetrics/spark,liyichao/spark,goldmedal/spark,UndeadBaneGitHub/spark,Aegeaner/spark,tengpeng/spark,JerryLead/spark,someorz/spark,cin/spark,aray/spark,JoshRosen/spark,akopich/spark,mike0sv/spark,WeichenXu123/spark,ajaysaini725/spark,kimoonkim/spark,ron8hu/spark,actuaryzhang/spark,jlopezmalla/spark,matthewfranglen/spark,sureshthalamati/spark,debugger87/spark,wangmiao1981/spark,hvanhovell/spark,apache-spark-on-k8s/spark,janewangfb/spark,ioana-delaney/spark,spark-test/spark,jianran/spark,kissmetrics/spark,tengpeng/spark,jiangxb1987/spark,darionyaphet/spark,ioana-delaney/spark,JerryLead/spark,icexelloss/spark,WeichenXu123/spark,panfengfeng/spark,rikima/spark,joseph-torres/spark,wangmiao1981/spark,minixalpha/spark,mdespriee/spark,joseph-torres/spark,rezasafi/spark,highfei2011/spark,shaneknapp/spark,liutang123/spark,bOOm-X/spark,LantaoJin/spark,jkbradley/spark,zhouyejoe/spark,sureshthalamati/spark,WeichenXu123/spark,michalsenkyr/spark,ueshin/apache-spark,kevinyu98/spark,markhamstra/spark,techaddict/spark,nchammas/spark,adrian-ionescu/apache-spark,SHASHANKB/spark,taroplus/spark,gengliangwang/spark,maropu/spark,goldmedal/spark,SnappyDataInc/spark,xflin/spark,mahak/spark,joseph-torres/spark,srowen/spark,milliman/spark,maropu/spark,mzl9039/spark,zhouyejoe/spark,caneGuy/spark,BryanCutler/spark,icexelloss/spark,vinodkc/spark,facaiy/spark,alunarbeach/spark,MLnick/spark,lvdongr/spark,aokolnychyi/spark,narahari92/spark,loneknightpy/spark,akopich/spark,wangmiao1981/spark,ajaysaini725/spark,adrian-ionescu/apache-spark,kevinyu98/spark,akopich/spark,alunarbeach/spark,someorz/spark,xuanyuanking/spark,techaddict/spark,milliman/spark,SHASHANKB/spark,wzhfy/spark,caneGuy/spark,tejasapatil/spark,ueshin/apache-spark,sachintyagi22/spark,panfengfeng/spark,nilsgrabbert/spark,andrewor14/spark,bOOm-X/spark,witgo/spark,gengliangwang/spark,nchammas/spark,dbtsai/spark,metamx/spark,witgo/spark,gioenn/xSpark,hhbyyh/spark,loneknightpy/spark,WindCanDie/spark,cloud-fan/spark,gengliangwang/spark,rikima/spark,ddna1021/spark,ahnqirage/spark,mzl9039/spark,sureshthalamati/spark,Panos-Bletsos/spark-cost-model-optimizer,wzhfy/spark,zuotingbing/spark,jianran/spark,aokolnychyi/spark,bOOm-X/spark,stanzhai/spark,panfengfeng/spark,debugger87/spark,kiszk/spark,sahilTakiar/spark,adrian-ionescu/apache-spark,zuotingbing/spark,facaiy/spark,joseph-torres/spark,sureshthalamati/spark,zero323/spark,kiszk/spark,haowu80s/spark,SnappyDataInc/spark,esi-mineset/spark,loneknightpy/spark,ConeyLiu/spark,shubhamchopra/spark,dbtsai/spark,ibm-research-ireland/sparkoscope,alunarbeach/spark,map222/spark,sureshthalamati/spark,wangyum/spark,mike0sv/spark,liutang123/spark,apache/spark,JoshRosen/spark,HyukjinKwon/spark,mzl9039/spark,guoxiaolongzte/spark,sureshthalamati/spark,jiangxb1987/spark,bdrillard/spark,darionyaphet/spark,zero323/spark,brad-kaiser/spark,liyichao/spark,liyichao/spark,MLnick/spark,sahilTakiar/spark,techaddict/spark,sachintyagi22/spark,goldmedal/spark,yanboliang/spark,SHASHANKB/spark,jiangxb1987/spark,kimoonkim/spark,brad-kaiser/spark,alunarbeach/spark,byakuinss/spark,panfengfeng/spark,techaddict/spark,ron8hu/spark,1haodian/spark,mahak/spark,jiangxb1987/spark,patrick-nicholson/spark,ddna1021/spark,cloud-fan/spark,shuangshuangwang/spark,ericvandenbergfb/spark,panfengfeng/spark,wzhfy/spark,caneGuy/spark,lvdongr/spark,narahari92/spark,kimoonkim/spark,ibm-research-ireland/sparkoscope,ajaysaini725/spark,panfengfeng/spark,stanzhai/spark,ptkool/spark,darionyaphet/spark,aokolnychyi/spark,ueshin/apache-spark,metamx/spark,apache/spark,alunarbeach/spark,jiangxb1987/spark,MLnick/spark,dongjoon-hyun/spark,apache-spark-on-k8s/spark,zuotingbing/spark,1haodian/spark,aosagie/spark,icexelloss/spark,ConeyLiu/spark,ron8hu/spark,cin/spark,someorz/spark,bdrillard/spark,setjet/spark,sachintyagi22/spark,zero323/spark,WeichenXu123/spark,haowu80s/spark,kiszk/spark,JerryLead/spark,setjet/spark,gioenn/xSpark,gengliangwang/spark,saltstar/spark,shubhamchopra/spark,gengliangwang/spark,ibm-research-ireland/sparkoscope,gengliangwang/spark,techaddict/spark,big-pegasus/spark,bravo-zhang/spark,spark-test/spark,joseph-torres/spark,shubhamchopra/spark,shuangshuangwang/spark,ajaysaini725/spark,setjet/spark,WindCanDie/spark,nlalevee/spark,wangmiao1981/spark,Panos-Bletsos/spark-cost-model-optimizer,chuckchen/spark,zzcclp/spark,highfei2011/spark,saturday-shi/spark,holdenk/spark,kissmetrics/spark,debugger87/spark,byakuinss/spark,andrewor14/spark,jlopezmalla/spark,bOOm-X/spark,dhruve/spark,lxsmnv/spark,dhruve/spark,setjet/spark,dongjoon-hyun/spark,ioana-delaney/spark,big-pegasus/spark,andrewor14/spark,hhbyyh/spark,publicRoman/spark,xuanyuanking/spark,alunarbeach/spark,apache/spark,bravo-zhang/spark,narahari92/spark,HyukjinKwon/spark,bravo-zhang/spark,brad-kaiser/spark,haowu80s/spark,zuotingbing/spark,ibm-research-ireland/sparkoscope,shuangshuangwang/spark,sachintyagi22/spark,jianran/spark,tejasapatil/spark,byakuinss/spark,milliman/spark,aokolnychyi/spark,joseph-torres/spark,rezasafi/spark,apache/spark,wangyum/spark,akopich/spark,1haodian/spark,chuckchen/spark,bdrillard/spark,szhem/spark,WindCanDie/spark,zzcclp/spark,esi-mineset/spark,jiangxb1987/spark,markhamstra/spark,ahnqirage/spark,mahak/spark,loneknightpy/spark,michalsenkyr/spark,UndeadBaneGitHub/spark,taroplus/spark,rikima/spark,apache-spark-on-k8s/spark,sahilTakiar/spark,bravo-zhang/spark,dongjoon-hyun/spark,ajaysaini725/spark,joseph-torres/spark,liyichao/spark,MLnick/spark,pgandhi999/spark,ddna1021/spark,BryanCutler/spark,rikima/spark,tengpeng/spark,dbtsai/spark,dbtsai/spark,nlalevee/spark,taroplus/spark,shaneknapp/spark,eyalfa/spark,szhem/spark,darionyaphet/spark,jiangxb1987/spark,cin/spark,rezasafi/spark,skonto/spark,LantaoJin/spark,aokolnychyi/spark,wangyum/spark,setjet/spark,caneGuy/spark,aosagie/spark,jianran/spark,someorz/spark,apache/spark,rezasafi/spark,BryanCutler/spark,gioenn/xSpark,Panos-Bletsos/spark-cost-model-optimizer,lvdongr/spark,ddna1021/spark,aray/spark,wzhfy/spark,icexelloss/spark,guoxiaolongzte/spark,publicRoman/spark,mike0sv/spark,liyichao/spark,spark-test/spark,shaneknapp/spark,publicRoman/spark,someorz/spark,witgo/spark,cloud-fan/spark,poffuomo/spark,actuaryzhang/spark,taroplus/spark,poffuomo/spark,MLnick/spark,stanzhai/spark,srowen/spark,cloud-fan/spark,cloud-fan/spark,gioenn/xSpark,aray/spark,rekhajoshm/spark,maropu/spark,jlopezmalla/spark,stanzhai/spark,actuaryzhang/spark,michalsenkyr/spark,huang1900/spark,haowu80s/spark,eyalfa/spark,gioenn/xSpark,LantaoJin/spark,cloud-fan/spark,saltstar/spark,ptkool/spark,facaiy/spark,jianran/spark,haowu80s/spark,tejasapatil/spark,BryanCutler/spark,UndeadBaneGitHub/spark,patrick-nicholson/spark,cin/spark,ptkool/spark,apache-spark-on-k8s/spark,eyalfa/spark,actuaryzhang/spark,BryanCutler/spark,markhamstra/spark,WeichenXu123/spark,kimoonkim/spark,nchammas/spark,sachintyagi22/spark,ptkool/spark,HyukjinKwon/spark,witgo/spark,nilsgrabbert/spark,byakuinss/spark,lvdongr/spark,maropu/spark,shaneknapp/spark,milliman/spark,jrshust/spark,highfei2011/spark,SHASHANKB/spark,poffuomo/spark,adrian-ionescu/apache-spark,big-pegasus/spark,mahak/spark,srowen/spark,andrewor14/spark,lvdongr/spark,ConeyLiu/spark,map222/spark,saturday-shi/spark,stanzhai/spark,jlopezmalla/spark,guoxiaolongzte/spark,someorz/spark,big-pegasus/spark,xflin/spark,michalsenkyr/spark,witgo/spark,shubhamchopra/spark,icexelloss/spark,ron8hu/spark,1haodian/spark,WindCanDie/spark,mahak/spark,HyukjinKwon/spark,aray/spark,vinodkc/spark,WindCanDie/spark,sahilTakiar/spark,wangmiao1981/spark,shubhamchopra/spark,pgandhi999/spark,patrick-nicholson/spark,aosagie/spark,holdenk/spark,akopich/spark,icexelloss/spark,nlalevee/spark,yanboliang/spark,mike0sv/spark,nlalevee/spark,jkbradley/spark,kiszk/spark,hvanhovell/spark,goldmedal/spark,tengpeng/spark,lxsmnv/spark,wangyum/spark,highfei2011/spark,ericvandenbergfb/spark,poffuomo/spark,pgandhi999/spark,facaiy/spark,Panos-Bletsos/spark-cost-model-optimizer,BryanCutler/spark,SnappyDataInc/spark,adrian-ionescu/apache-spark,xuanyuanking/spark,janewangfb/spark,janewangfb/spark,nlalevee/spark,minixalpha/spark,1haodian/spark,brad-kaiser/spark,szhem/spark,zhouyejoe/spark,cin/spark,rednaxelafx/apache-spark,mdespriee/spark,ptkool/spark,michalsenkyr/spark,jkbradley/spark,actuaryzhang/spark,ahnqirage/spark,ueshin/apache-spark,lxsmnv/spark,ueshin/apache-spark,witgo/spark,icexelloss/spark,wangmiao1981/spark,aray/spark,janewangfb/spark,big-pegasus/spark,nchammas/spark,bravo-zhang/spark,minixalpha/spark,mzl9039/spark,sachintyagi22/spark,jianran/spark,ibm-research-ireland/sparkoscope,nilsgrabbert/spark,skonto/spark,panfengfeng/spark,goldmedal/spark,ueshin/apache-spark,dongjoon-hyun/spark,sahilTakiar/spark,sahilTakiar/spark,xuanyuanking/spark,JerryLead/spark,dhruve/spark,liyichao/spark,publicRoman/spark,shuangshuangwang/spark,michalsenkyr/spark,nilsgrabbert/spark,shaneknapp/spark,stanzhai/spark,narahari92/spark,JerryLead/spark,bdrillard/spark,markhamstra/spark,vinodkc/spark,rikima/spark,apache-spark-on-k8s/spark,dongjoon-hyun/spark,mzl9039/spark,gioenn/xSpark,vinodkc/spark,huang1900/spark,bdrillard/spark,bOOm-X/spark,rekhajoshm/spark,pgandhi999/spark,debugger87/spark,publicRoman/spark,xflin/spark,ioana-delaney/spark,nilsgrabbert/spark,chuckchen/spark,spark-test/spark,nchammas/spark,WeichenXu123/spark,SnappyDataInc/spark,lxsmnv/spark,zero323/spark,metamx/spark,LantaoJin/spark,ddna1021/spark,xflin/spark,mdespriee/spark,holdenk/spark,mike0sv/spark,darionyaphet/spark,ioana-delaney/spark,rekhajoshm/spark,hhbyyh/spark,mahak/spark,shuangshuangwang/spark,guoxiaolongzte/spark,metamx/spark,srowen/spark,bdrillard/spark,skonto/spark,janewangfb/spark,SHASHANKB/spark,yanboliang/spark,caneGuy/spark,byakuinss/spark,ericvandenbergfb/spark,szhem/spark,esi-mineset/spark,kiszk/spark,wzhfy/spark,WindCanDie/spark,goldmedal/spark,akopich/spark,kevinyu98/spark,jrshust/spark,zhouyejoe/spark,publicRoman/spark,setjet/spark,kevinyu98/spark,kimoonkim/spark,darionyaphet/spark,map222/spark,hvanhovell/spark,esi-mineset/spark,maropu/spark,ahnqirage/spark,szhem/spark,sureshthalamati/spark,adrian-ionescu/apache-spark,andrewor14/spark,ioana-delaney/spark,ConeyLiu/spark,mdespriee/spark,andrewor14/spark,WeichenXu123/spark,shubhamchopra/spark,dbtsai/spark,milliman/spark,maropu/spark,sahilTakiar/spark,rikima/spark