Exemple #1
0
func EC2(req Request) *ec2.EC2 {
	return ec2.New(&aws.Config{
		Credentials: Credentials(&req),
		Region:      Region(&req),
	})
}
func TestInterface(t *testing.T) {
	assert.Implements(t, (*ec2iface.EC2API)(nil), ec2.New(nil))
}
Exemple #3
0
func EC2() *ec2.EC2 {
	return ec2.New(&aws.Config{
		Credentials: credentials.NewCredentials(&AwsCredentials{}),
		Region:      os.Getenv("AWS_REGION"),
	})
}