// awsSessionFromRequest creates an AWS Session from credentials in the POST Body.
awsSessionFromRequest creates an AWS Session from credentials in the POST Body.
// awsSessionFromRequest creates an AWS Session from credentials in the POST Body .
func awsSessionFromRequest(req *http.Request) (*session.Session, error) {
	credentials := credentials.NewStaticCredentials(
		req.Header.Get("Tectonic-AccessKeyID"),
		req.Header.Get("Tectonic-SecretAccessKey"),
		req.Header.Get("Tectonic-SessionToken"),
	)
	awsConfig := aws.NewConfig().
		WithCredentials(credentials).
		WithRegion(req.Header.Get("Tectonic-Region")).
		WithCredentialsChainVerboseErrors(true)
	return session.NewSession(awsConfig)
}
func awsSessionFromRequest ( req * http . Request ) ( * session . Session , error ) { credentials := credentials . NewStaticCredentials ( req . Header . Get ( " " ) , req . Header . Get ( " " ) , req . Header . Get ( " " ) , ) awsConfig := aws . NewConfig ( ) . WithCredentials ( credentials ) . WithRegion ( req . Header . Get ( " " ) ) . WithCredentialsChainVerboseErrors ( true ) return session . NewSession ( awsConfig ) }
awsSessionFromRequest creates an AWS Session from credentials in the POST Body.
awsSessionFromRequest creates an AWS Session from credentials in the POST Body .