示例#1
0
func KMS(c *Crypt) *kms.KMS {
	return kms.New(&aws.Config{
		Credentials: credentials.NewCredentials(&Credentials{Crypt: c}),
	})
}
示例#2
0
func RDS() *rds.RDS {
	return rds.New(&aws.Config{
		Credentials: credentials.NewCredentials(&AwsCredentials{}),
		Region:      os.Getenv("AWS_REGION"),
	})
}
示例#3
0
func S3() *s3.S3 {
	return s3.New(&aws.Config{
		Credentials: credentials.NewCredentials(&AwsCredentials{}),
		Region:      os.Getenv("AWS_REGION"),
	})
}
示例#4
0
func ECS() *ecs.ECS {
	return ecs.New(&aws.Config{
		Credentials: credentials.NewCredentials(&AwsCredentials{}),
		Region:      os.Getenv("AWS_REGION"),
	})
}
示例#5
0
func Kinesis() *kinesis.Kinesis {
	return kinesis.New(&aws.Config{
		Credentials: credentials.NewCredentials(&AwsCredentials{}),
		Region:      os.Getenv("AWS_REGION"),
	})
}
示例#6
0
func DynamoDB() *dynamodb.DynamoDB {
	return dynamodb.New(&aws.Config{
		Credentials: credentials.NewCredentials(&AwsCredentials{}),
		Region:      os.Getenv("AWS_REGION"),
	})
}
示例#7
0
func CloudWatch() *cloudwatch.CloudWatch {
	return cloudwatch.New(&aws.Config{
		Credentials: credentials.NewCredentials(&AwsCredentials{}),
		Region:      os.Getenv("AWS_REGION"),
	})
}
示例#8
0
func CloudFormation() *cloudformation.CloudFormation {
	return cloudformation.New(&aws.Config{
		Credentials: credentials.NewCredentials(&AwsCredentials{}),
		Region:      os.Getenv("AWS_REGION"),
	})
}
示例#9
0
func AutoScaling() *autoscaling.AutoScaling {
	return autoscaling.New(&aws.Config{
		Credentials: credentials.NewCredentials(&AwsCredentials{}),
		Region:      os.Getenv("AWS_REGION"),
	})
}
示例#10
0
func SQS() *sqs.SQS {
	return sqs.New(&aws.Config{
		Credentials: credentials.NewCredentials(&AwsCredentials{}),
		Region:      os.Getenv("AWS_REGION"),
	})
}