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