예제 #1
0
func TestInterface(t *testing.T) {
	assert.Implements(t, (*autoscalingiface.AutoScalingAPI)(nil), autoscaling.New(nil))
}
예제 #2
0
func AutoScaling() *autoscaling.AutoScaling {
	return autoscaling.New(&aws.Config{
		Credentials: credentials.NewCredentials(&AwsCredentials{}),
		Region:      os.Getenv("AWS_REGION"),
	})
}