Documentation
¶
Index ¶
- Constants
- func BuildStage(buildArtifact pipeline.Artifact, buildImage codebuild.IProject) *pipeline.StageProps
- func CustomLambdaTrigger(scope constructs.Construct, id string, props *LambdaTriggerProps) custom.AwsCustomResource
- func DeployStage(buildArtifact pipeline.Artifact, ...) *pipeline.StageProps
- func NewAlb(scope constructs.Construct, id string, props *AlbProps) elb.ApplicationLoadBalancer
- func NewAlbSecurityGroup(scope constructs.Construct, id string, props *SecurityGroupProps) ec2.SecurityGroup
- func NewDeployPipelineStack(scope constructs.Construct, id string, props *PipelineNestedStackProps) awscdk.Stack
- func NewDeploymentGroup(scope constructs.Construct, id string, props *DeploymentGroupProps) codedeploy.EcsDeploymentGroup
- func NewEcrRepository(scope constructs.Construct, id string, props *EcrRepositoryProps) ecr.Repository
- func NewEcsCluster(scope constructs.Construct, id string, props *EcsClusterProps) ecs.ICluster
- func NewFargateService(scope constructs.Construct, id string, props *FargateServiceProps) ecs.FargateService
- func NewFargateTaskDefinition(scope constructs.Construct, id string, props *FargateTaskDefinitionProps) ecs.FargateTaskDefinition
- func NewLambda(scope constructs.Construct, id string, props *LambdaProps) lambda.Function
- func NewLogDriver(scope constructs.Construct, props *LogDriverProps) ecs.LogDriver
- func NewProject(scope constructs.Construct, id string, props *ProjectProps) codebuild.Project
- func NewRepository(scope constructs.Construct, id string, props *RepositoryProps) codecommit.Repository
- func NewTargetGroup(scope constructs.Construct, id string, props *TargetGroupProps) elb.ApplicationTargetGroup
- func NewVpc(scope constructs.Construct, id string, props *VpcProps) ec2.Vpc
- func SourceStage(source pipeline.Artifact, codeRepo codecommit.IRepository) *pipeline.StageProps
- type AlbProps
- type DeploymentGroupProps
- type EcrRepositoryProps
- type EcsClusterProps
- type FargateServiceProps
- type FargateTaskDefinitionProps
- type LambdaProps
- type LambdaTriggerProps
- type LogDriverProps
- type PipelineNestedStackProps
- type ProjectProps
- type RepositoryProps
- type SecurityGroupProps
- type TargetGroupProps
- type VpcProps
Constants ¶
View Source
const ( InvokeAction string = "invoke" InvokeLambdaAction string = "lambda:InvokeFunction" LambdaService string = "Lambda" PhysicalResourceId string = "id" EventInvocation string = "Event" )
View Source
const ( BuildArtifactName string = "BuildArtifact" BuildStageName string = "Build" BuildActionName string = "DockerBuildPush" BuildImageSpec string = "buildspec.yaml" BuildImageTag string = "latest" BuildLambdaAsset string = "../scripts/trigger-build.mjs" BuildLambdaHandler string = "trigger-build.handler" SourceArtifactName string = "SourceArtifact" SourceStageName string = "Source" SourceActionName string = "CodeCommit" DeployStageName string = "Deploy" DeployActionName string = "EcsFargateDeploy" DeployFilePath string = "./deployment.zip" DeployBranch string = "main" CodeBuildStartBuildAction string = "codebuild:StartBuild" PrivilegedBuildEnv bool = true UseLatestSdk bool = true )
Variables ¶
This section is empty.
Functions ¶
func BuildStage ¶
func CustomLambdaTrigger ¶
func CustomLambdaTrigger(scope constructs.Construct, id string, props *LambdaTriggerProps) custom.AwsCustomResource
CustomLambdaTrigger triggers a Lambda function using AWS SDK
func DeployStage ¶
func DeployStage(buildArtifact pipeline.Artifact, deploymentGroup codedeploy.IEcsDeploymentGroup) *pipeline.StageProps
func NewAlb ¶
func NewAlb(scope constructs.Construct, id string, props *AlbProps) elb.ApplicationLoadBalancer
func NewAlbSecurityGroup ¶
func NewAlbSecurityGroup(scope constructs.Construct, id string, props *SecurityGroupProps) ec2.SecurityGroup
func NewDeployPipelineStack ¶
func NewDeployPipelineStack(scope constructs.Construct, id string, props *PipelineNestedStackProps) awscdk.Stack
func NewDeploymentGroup ¶
func NewDeploymentGroup(scope constructs.Construct, id string, props *DeploymentGroupProps) codedeploy.EcsDeploymentGroup
func NewEcrRepository ¶
func NewEcrRepository(scope constructs.Construct, id string, props *EcrRepositoryProps) ecr.Repository
func NewEcsCluster ¶
func NewEcsCluster(scope constructs.Construct, id string, props *EcsClusterProps) ecs.ICluster
func NewFargateService ¶
func NewFargateService(scope constructs.Construct, id string, props *FargateServiceProps) ecs.FargateService
func NewFargateTaskDefinition ¶
func NewFargateTaskDefinition(scope constructs.Construct, id string, props *FargateTaskDefinitionProps) ecs.FargateTaskDefinition
func NewLambda ¶
func NewLambda(scope constructs.Construct, id string, props *LambdaProps) lambda.Function
func NewLogDriver ¶
func NewLogDriver(scope constructs.Construct, props *LogDriverProps) ecs.LogDriver
func NewProject ¶
func NewProject(scope constructs.Construct, id string, props *ProjectProps) codebuild.Project
func NewRepository ¶
func NewRepository(scope constructs.Construct, id string, props *RepositoryProps) codecommit.Repository
func NewTargetGroup ¶
func NewTargetGroup(scope constructs.Construct, id string, props *TargetGroupProps) elb.ApplicationTargetGroup
func SourceStage ¶
func SourceStage(source pipeline.Artifact, codeRepo codecommit.IRepository) *pipeline.StageProps
Types ¶
type AlbProps ¶
type AlbProps struct { Vpc ec2.Vpc SecurityGroups ec2.ISecurityGroup InternetFacing bool }
type DeploymentGroupProps ¶
type DeploymentGroupProps struct { Service ecs.IBaseService DeploymentConfig *codedeploy.EcsBlueGreenDeploymentConfig }
type EcrRepositoryProps ¶
type EcrRepositoryProps struct {
RemovalPolicy awscdk.RemovalPolicy
}
type EcsClusterProps ¶
type FargateServiceProps ¶
type LambdaProps ¶
type LambdaTriggerProps ¶
type LogDriverProps ¶
type LogDriverProps struct { StreamPrefix string Mode ecs.AwsLogDriverMode }
type PipelineNestedStackProps ¶
type PipelineNestedStackProps struct { awscdk.NestedStackProps PipelineName string AppName string FargateService ecs.FargateService TaskDefinition ecs.FargateTaskDefinition Repository ecr.Repository Vpc ec2.Vpc LoadBalancer elb.ApplicationLoadBalancer Listener elb.ApplicationListener TargetGroupB elb.ApplicationTargetGroup TargetGroupG elb.ApplicationTargetGroup }
type ProjectProps ¶
type ProjectProps struct { BuildSpec codebuild.BuildSpec Source codebuild.ISource CodeRepo codecommit.IRepository ImageRepo ecr.IRepository TaskDef ecs.FargateTaskDefinition BuildEnv *codebuild.BuildEnvironment Environment *map[string]*codebuild.BuildEnvironmentVariable }
type RepositoryProps ¶
type SecurityGroupProps ¶
type TargetGroupProps ¶
Click to show internal directories.
Click to hide internal directories.