fix new session error when creating cred chain.
fix new session error when creating cred chain.

the old and deprecated method won't error and so is safe to use
even if we're not in amazon.

smaato/packer,youhong316/packer,mkuzmin/packer,routelastresort/packer,atlassian/packer,rickard-von-essen/packer,legal90/packer,sean-/packer,quantang/packer,paulmey/packer,mitchellh/packer,taliesins/packer,timsutton/packer,jen20/packer,jen20/packer,tas50/packer,arizvisa/packer,c22/packer,pieter-lazzaro/packer,p1-nico/packer,ricardclau/packer,sneal/packer,KohlsTechnology/packer,pieter-lazzaro/packer,p1-nico/packer,legal90/packer,smaato/packer,tsmolka/packer,ChrisLundquist/packer,rnaveiras/packer,zhuzhih2017/packer,pvandervelde/packer,c22/packer,grubernaut/packer,timsutton/packer,dayglojesus/packer,life360/packer,mitchellh/packer,ricardclau/packer,c22/packer,jen20/packer,ricardclau/packer,life360/packer,legal90/packer,tb3088/packer,smaato/packer,markpeek/packer,pvanbuijtene/packer,dayglojesus/packer,rickard-von-essen/packer,pvandervelde/packer,sean-/packer,zhuzhih2017/packer,routelastresort/packer,paulmey/packer,rickard-von-essen/packer,pvandervelde/packer,pvandervelde/packer,mkuzmin/packer,KohlsTechnology/packer,sean-/packer,pvanbuijtene/packer,rnaveiras/packer,ricardclau/packer,tb3088/packer,quantang/packer,routelastresort/packer,life360/packer,pecigonzalo/packer,ChrisLundquist/packer,ChrisLundquist/packer,jen20/packer,KohlsTechnology/packer,boumenot/packer,jen20/packer,smaato/packer,smaato/packer,atlassian/packer,pieter-lazzaro/packer,mwhooker/packer,taliesins/packer,pvanbuijtene/packer,pvanbuijtene/packer,legal90/packer,grubernaut/packer,KohlsTechnology/packer,tsmolka/packer,paulmey/packer,arizvisa/packer,sneal/packer,sean-/packer,mafrosis/packer,p1-nico/packer,bryson/packer,timsutton/packer,youhong316/packer,dave2/packer,life360/packer,ricardclau/packer,jen20/packer,youhong316/packer,c22/packer,arizvisa/packer,grubernaut/packer,tb3088/packer,mkuzmin/packer,bryson/packer,atlassian/packer,pieter-lazzaro/packer,hashicorp/packer,tas50/packer,dave2/packer,mwhooker/packer,tsmolka/packer,rnaveiras/packer,quantang/packer,taliesins/packer,rnaveiras/packer,mafrosis/packer,mwhooker/packer,ChrisLundquist/packer,youhong316/packer,smaato/packer,youhong316/packer,rnaveiras/packer,boumenot/packer,boumenot/packer,bryson/packer,mwhooker/packer,pieter-lazzaro/packer,zhuzhih2017/packer,tas50/packer,quantang/packer,arizvisa/packer,dave2/packer,grubernaut/packer,ChrisLundquist/packer,mafrosis/packer,tb3088/packer,KohlsTechnology/packer,grubernaut/packer,mafrosis/packer,hashicorp/packer,mwhooker/packer,mitchellh/packer,p1-nico/packer,tsmolka/packer,bryson/packer,hashicorp/packer,ricardclau/packer,p1-nico/packer,timsutton/packer,mkuzmin/packer,dave2/packer,routelastresort/packer,paulmey/packer,sneal/packer,mkuzmin/packer,mitchellh/packer,tas50/packer,atlassian/packer,rnaveiras/packer,mkuzmin/packer,tas50/packer,quantang/packer,tb3088/packer,c22/packer,taliesins/packer,KohlsTechnology/packer,tsmolka/packer,timsutton/packer,jimmythedog/packer,jimmythedog/packer,tas50/packer,tsmolka/packer,zhuzhih2017/packer,ChrisLundquist/packer,dayglojesus/packer,rickard-von-essen/packer,zhuzhih2017/packer,markpeek/packer,atlassian/packer,legal90/packer,arizvisa/packer,life360/packer,routelastresort/packer,sneal/packer,c22/packer,sneal/packer,markpeek/packer,grubernaut/packer,jimmythedog/packer,jimmythedog/packer,pvandervelde/packer,arizvisa/packer,hashicorp/packer,mafrosis/packer,youhong316/packer,sean-/packer,bryson/packer,sean-/packer,markpeek/packer,atlassian/packer,taliesins/packer,jimmythedog/packer,boumenot/packer,pecigonzalo/packer,pvandervelde/packer,rickard-von-essen/packer,timsutton/packer,taliesins/packer,dayglojesus/packer,pecigonzalo/packer,pecigonzalo/packer,paulmey/packer,p1-nico/packer,paulmey/packer,dave2/packer,dayglojesus/packer,markpeek/packer,bryson/packer,pvanbuijtene/packer,markpeek/packer,tb3088/packer,dave2/packer,zhuzhih2017/packer,pieter-lazzaro/packer,mitchellh/packer,boumenot/packer