Skip to content

Commit

Permalink
improve testing for singleStack - unnamed function
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisPates committed Jan 4, 2024
1 parent 8ef5768 commit 6fd228f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 12 deletions.
20 changes: 16 additions & 4 deletions cicd/cloudformation/testing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Parameters:
- Delegated
- NonDelegated
DelegatedAccount:
Description: The test account type
Description: The account id of the account setup as delegated admin
Default: "622987834645"
Type: String
DelegatedBucket:
Expand All @@ -42,6 +42,7 @@ Metadata:
- TestAccount
- Label:
default: Delegated Account
description: Only required for when deploying in the management account
Parameters:
- DelegatedAccount
- DelegatedBucket
Expand Down Expand Up @@ -483,6 +484,19 @@ Resources:
- Name: ExecuteSingleStack
InputArtifacts:
- Name: Tests
- Name: RemoveStack
ActionTypeId:
Category: Deploy
Owner: AWS
Version: 1
Provider: CloudFormation
Configuration:
ActionMode: DELETE_ONLY
StackName: TestSingleStack
RoleArn: !GetAtt [CloudFormationDeployerRole, Arn]
InputArtifacts:
- Name: Tests
RunOrder: 3
- Name: UnNamedFunction
Actions:
- Name: Deploy
Expand All @@ -501,8 +515,6 @@ Resources:
InputArtifacts:
- Name: Tests
RunOrder: 1
- Name: CleanUp
Actions:
- Name: RemoveStack
ActionTypeId:
Category: Deploy
Expand All @@ -515,7 +527,7 @@ Resources:
RoleArn: !GetAtt [CloudFormationDeployerRole, Arn]
InputArtifacts:
- Name: Tests
RunOrder: 1
RunOrder: 2

CodePipelineSplitStack:
Type: AWS::CodePipeline::Pipeline
Expand Down
13 changes: 5 additions & 8 deletions cicd/deploy_patterns/singlestack/unnamedfunction.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,10 @@ Resources:
LogFormat: json

Outputs:
FunctionArn:
Condition: OutputFunction
SSOSyncArn:
Description: "The Arn of the deployed lambda function"
Value:
Fn::GetAtt:
- SARApp
- Outputs.FunctionArn
Export:
Name: FunctionARN
Value:
Fn::GetAtt:
- SARApp
- Outputs.FunctionArn

0 comments on commit 6fd228f

Please sign in to comment.