Skip to content

Commit

Permalink
Debugging Codepipeline Support
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisPates committed Sep 23, 2022
1 parent 284fe0a commit ad3a482
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
18 changes: 11 additions & 7 deletions cicd/cloudformation/dev-account.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ Resources:
InputArtifacts:
- Name: Built
- Name: Source
- Name: Staging
- Name: Deploy
Actions:
- Name: PublishRC
Namespace: RC
Expand Down Expand Up @@ -275,34 +275,38 @@ Resources:
- Name: ChangeSet
InputArtifacts:
- Name: Source
- Name: E2ELambda
- Name: TestsEnd2End
Actions:
- Name: TestLambda
ActionTypeId:
Category: Test
Owner: AWS
Version: 1
Provider: CodeBuild
RunOrder: 3
RunOrder: 1
Configuration:
ProjectName: !Ref CodeBuildE2ETest
PrimarySource: Source
OutputArtifacts:
- Name: E2ELambda
InputArtifacts:
- Name: Source
- Name: E2ECodePipeline
- Name: TestCodePipeline
ActionTypeId:
Category: Invoke
Owner: AWS
Version: 1
Provider: Lambda
RunOrder: 4
RunOrder: 2
Configuration:
FunctionName: SSOSyncFunction
OutputArtifacts:
- Name: E2ECodePipeline
InputArtifacts:
- Name: Source
- Name: CleanUp
- Name: CleanUp
Actions:
- Name: DeleteStack
ActionTypeId:
Category: Deploy
Owner: AWS
Expand All @@ -314,7 +318,7 @@ Resources:
RoleArn: !Sub arn:aws:iam::${AWS::AccountId}:role/CloudFormationDeployerRole
InputArtifacts:
- Name: Source
RunOrder: 5
RunOrder: 1
RoleArn: !Sub arn:aws:iam::${AWS::AccountId}:role/CodePipelineCloudFormationRole

GitMetadata:
Expand Down
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func Handler(ctx context.Context, event events.CodePipelineEvent) (string, error
if err != nil {
// notify codepipeline and mark its job execution as Failure
s := session.Must(session.NewSession())
cpl := codepipeline.New(s)
//cpl := codepipeline.New(s)
log.Fatal("Notifying CodePipeline and mark its job execution as Failure")
jobID := event.CodePipelineJob.ID
if len(jobID) == 0 {
Expand Down

0 comments on commit ad3a482

Please sign in to comment.