-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This should make managing the stack in the management account easier
- Loading branch information
Showing
10 changed files
with
561 additions
and
641 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
Metadata: | ||
GhaStack: | ||
localTemplateFile: &gha_stackset_body ./stacksets/gha-build/stackset.yaml | ||
SamStack: | ||
localTemplateFile: &sam_template_body ./stacksets/gha-build/sam-deployment.yaml | ||
|
||
AWSTemplateFormatVersion: '2010-09-09' | ||
Transform: | ||
- 'AWS::Serverless-2016-10-31' | ||
Description: GitHib Actions integration stacks | ||
|
||
Parameters: | ||
TargetOuIds: | ||
Type: CommaDelimitedList | ||
Description: Comma separated list of OUs | ||
TargetRegions: | ||
Type: CommaDelimitedList | ||
Description: Comma separated list of regions | ||
AwsOrganizationId: | ||
Type: String | ||
Description: AWS Organization ID | ||
|
||
Resources: | ||
OrgCiCdSamArtifacts: | ||
Type: AWS::CloudFormation::StackSet | ||
Properties: | ||
StackSetName: CiCdSamArtifacts | ||
Description: AWS SAM Deployment | ||
Parameters: | ||
- ParameterKey: AwsOrganizationId | ||
ParameterValue: !Ref AwsOrganizationId | ||
- ParameterKey: BuildAccount | ||
ParameterValue: 'true' | ||
StackInstancesGroup: | ||
- DeploymentTargets: | ||
OrganizationalUnitIds: !Ref TargetOuIds | ||
Regions: !Ref TargetRegions | ||
AutoDeployment: | ||
Enabled: true | ||
RetainStacksOnAccountRemoval: false | ||
ManagedExecution: | ||
Active: true | ||
OperationPreferences: | ||
RegionConcurrencyType: PARALLEL | ||
FailureToleranceCount: 1 | ||
MaxConcurrentCount: 5 | ||
PermissionModel: SERVICE_MANAGED | ||
TemplateBody: *sam_template_body | ||
|
||
|
||
OrgCiCdGhaBuild: | ||
Type: AWS::CloudFormation::StackSet | ||
DependsOn: OrgCiCdSamArtifacts | ||
Properties: | ||
StackSetName: CiCdGhaBuild | ||
Description: GHA CI/CD Deployment Build | ||
Parameters: | ||
- ParameterKey: DeployBucketArn | ||
ParameterValue: '/org/cicd/SamDeployBucketArn' | ||
- ParameterKey: AwsOrganizationId | ||
ParameterValue: !Ref AwsOrganizationId | ||
StackInstancesGroup: | ||
- DeploymentTargets: | ||
OrganizationalUnitIds: !Ref TargetOuIds | ||
Regions: !Ref TargetRegions | ||
Capabilities: | ||
- CAPABILITY_NAMED_IAM | ||
AutoDeployment: | ||
Enabled: true | ||
RetainStacksOnAccountRemoval: false | ||
ManagedExecution: | ||
Active: true | ||
OperationPreferences: | ||
RegionConcurrencyType: PARALLEL | ||
FailureToleranceCount: 1 | ||
MaxConcurrentCount: 5 | ||
PermissionModel: SERVICE_MANAGED | ||
TemplateBody: *gha_stackset_body |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
Metadata: | ||
localTemplateFile: &template_body stacksets/gha-deploy/template.yaml | ||
|
||
AWSTemplateFormatVersion: '2010-09-09' | ||
Transform: AWS::Serverless-2016-10-31 | ||
Description: AWS account infrastructure stackset (GHA Deployments) | ||
|
||
Parameters: | ||
TargetOuIds: | ||
Type: CommaDelimitedList | ||
Description: List of OUs | ||
TargetRegions: | ||
Type: CommaDelimitedList | ||
Description: Regions to deploy to | ||
CicdAwsAccountId: | ||
Type: String | ||
Description: AWS Account ID for CI/CD | ||
DeployBucketArn: | ||
Type: String | ||
Description: S3 bucket ARN for deployment | ||
|
||
Resources: | ||
OrgCiCdGhaDeploy: | ||
Type: AWS::CloudFormation::StackSet | ||
Properties: | ||
StackSetName: CiCdGhaDeploy | ||
Description: GHA CI/CD Deployment | ||
Parameters: | ||
- ParameterKey: CicdAwsAccountId | ||
ParameterValue: !Ref CicdAwsAccountId | ||
- ParameterKey: DeployBucketArn | ||
ParameterValue: !Ref DeployBucketArn | ||
Capabilities: | ||
- CAPABILITY_NAMED_IAM | ||
StackInstancesGroup: | ||
- DeploymentTargets: | ||
OrganizationalUnitIds: !Ref TargetOuIds | ||
Regions: !Ref TargetRegions | ||
AutoDeployment: | ||
Enabled: true | ||
RetainStacksOnAccountRemoval: false | ||
ManagedExecution: | ||
Active: true | ||
OperationPreferences: | ||
RegionConcurrencyType: PARALLEL | ||
FailureToleranceCount: 1 | ||
MaxConcurrentCount: 5 | ||
PermissionModel: SERVICE_MANAGED | ||
TemplateBody: *template_body |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.