1
0
mirror of https://github.com/raseels-repos/golang-saas-starter-kit.git synced 2025-07-01 00:55:01 +02:00
Files
golang-saas-starter-kit/tools/devops/cmd/cicd/deploy.go
Lee Brown 7cf95bb35e issue#8 datadog ECS logs
Working on cleaning up deployment code to add support for deploying a
lambda function to ship logs from AWS cloudwatch to datadog. WIP
2019-08-08 13:58:24 -08:00

25 lines
674 B
Go

package cicd
import "github.com/aws/aws-sdk-go/service/ec2"
// deployRequest defines the details needed to execute a service deployment.
type deployRequest struct {
*serviceRequest
EcrRepositoryName string `validate:"required"`
Ec2SecurityGroupName string `validate:"required"`
Ec2SecurityGroup *ec2.CreateSecurityGroupInput
GitlabRunnerEc2SecurityGroupName string `validate:"required"`
S3BucketTempPrefix string `validate:"required_with=S3BucketPrivateName S3BucketPublicName"`
S3BucketPrivateName string `validate:"omitempty"`
S3Buckets []S3Bucket
EcsService *deployEcsServiceRequest
LambdaFunction *deployLambdaFuncRequest
}