You've already forked golang-saas-starter-kit
mirror of
https://github.com/raseels-repos/golang-saas-starter-kit.git
synced 2025-07-01 00:55:01 +02:00
Working on cleaning up deployment code to add support for deploying a lambda function to ship logs from AWS cloudwatch to datadog. WIP
25 lines
674 B
Go
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
|
|
}
|
|
|