Skip to content

Commit ed6a9ef

Browse files
committed
Update release.yaml
1 parent 2fbfe60 commit ed6a9ef

File tree

1 file changed

+69
-0
lines changed

1 file changed

+69
-0
lines changed

cicd/cloudformation/release.yaml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,24 @@ Resources:
330330
InputArtifacts:
331331
- Name: Source
332332
- Name: Tests
333+
- Name: Test-Deploy_Patterns
334+
Actions:
335+
- Name: SingleStack
336+
ActionTypeId:
337+
Category: Build
338+
Owner: AWS
339+
Version: 1
340+
Provider: CodeBuild
341+
RunOrder: 1
342+
Configuration:
343+
ProjectName: !Ref CodeBuildTestingSingleStack
344+
PrimarySource: Source
345+
EnvironmentVariables: '[{"name":"GitTag","value":"#{Git.Tag}","type":"PLAINTEXT"},{"name":"GitVersionHash","value":"#{Git.CommitHash}","type":"PLAINTEXT"}]'
346+
InputArtifacts:
347+
- Name: Source
348+
OutputArtifacts:
349+
- Name: SingleStack
350+
333351
- Name: Release-Publicly
334352
Actions:
335353
- Name: Does_this_commit_have_a_release_tag
@@ -607,6 +625,57 @@ Resources:
607625
StreamName: !Ref CodeBuildTestingLogs
608626
Status: ENABLED
609627

628+
CodeBuildTestingSingleStack:
629+
Type: AWS::CodeBuild::Project
630+
Properties:
631+
Name: "SSOSync-Testing-SingleStack"
632+
Description: "Deploy and execute a single stack deployment of ssosync into the Delegated account"
633+
ServiceRole: !Ref CodeBuildPublishRole
634+
Source:
635+
Type: CODEPIPELINE
636+
BuildSpec: "cicd/deploy_patterns/singlestack/buildspec.yml"
637+
Environment:
638+
ComputeType: BUILD_GENERAL1_SMALL
639+
Image: aws/codebuild/standard:7.0
640+
Type: LINUX_CONTAINER
641+
EnvironmentVariables:
642+
- Name: ARTIFACT_S3_BUCKET
643+
Value: !Sub ${ArtifactBucket}
644+
- Name: AppArn
645+
Value: !Sub "arn:aws:serverlessrepo:${AWS::Region}:${AWS::AccountId}:applications/SSOSync-Staging"
646+
- Name: SecretSCIMEndpoint
647+
Value: !Select [0, !Split [',', !Ref SecretsConfig]]
648+
- Name: SecretSCIMAccessToken
649+
Value: !Select [1, !Split [',', !Ref SecretsConfig]]
650+
- Name: SecretRegion
651+
Value: !Select [2, !Split [',', !Ref SecretsConfig]]
652+
- Name: SecretIdentityStoreID
653+
Value: !Select [3, !Split [',', !Ref SecretsConfig]]
654+
- Name: SecretGoogleCredentials
655+
Value: !Select [4, !Split [',', !Ref SecretsConfig]]
656+
- Name: SecretGoogleAdminEmail
657+
Value: !Select [5, !Split [',', !Ref SecretsConfig]]
658+
- Name: SecretWIFClientLibraryConfig
659+
Value: !Select [6, !Split [',', !Ref SecretsConfig]]
660+
- Name: SecretWIFServiceAccountEmail
661+
Value: !Select [7, !Split [',', !Ref SecretsConfig]]
662+
- Name: KeyForSecrets
663+
Value: !Select [8, !Split [',', !Ref SecretsConfig]]
664+
- Name: TARGETS3BUCKET
665+
Value: !Sub ${DelegatedBucket}
666+
- Name: StagingRole
667+
Value: !Sub "arn:aws:iam::${DelegatedAccount}:role/SSOSync-ProdAccount-${AWS::Region}"
668+
- Name: pipeline
669+
Value: "SSOSync-Test-Account_Execution"
670+
Artifacts:
671+
Name: SSOSync-Build
672+
Type: CODEPIPELINE
673+
LogsConfig:
674+
CloudWatchLogs:
675+
GroupName: !Ref CodePipelineLogGroup
676+
StreamName: !Ref CodeBuildTestingLogs
677+
Status: ENABLED
678+
610679
CodeBuildTestingLogs:
611680
Type: AWS::Logs::LogStream
612681
Properties:

0 commit comments

Comments
 (0)