func (infra *Infrastructure) removeSQSQueue() { svc := sqs.New(session.New(), infra.config) svc.DeleteQueue(&sqs.DeleteQueueInput{ QueueUrl: aws.String(infra.queueURL), }) }
func (infra *Infrastructure) createSQSQueue() (url string, err error) { svc := sqs.New(session.New(), infra.config) resp, err := svc.CreateQueue(&sqs.CreateQueueInput{ QueueName: aws.String("goad-" + uuid.NewV4().String()), }) if err != nil { return "", err } return *resp.QueueUrl, nil }
func getClient(awsConfig *aws.Config) *sqs.SQS { client := sqs.New(session.New(), awsConfig) return client }