Skip to content

Commit

Permalink
feat: adding child platform management groups (#67)
Browse files Browse the repository at this point in the history
* feat: adding child platform management groups

* terraform fmt

* Skip alz module version check in e2e tests

* Add missing flag

* Fix GitHub deprecated task versions

---------

Co-authored-by: sdeguchi <[email protected]>
Co-authored-by: Jared Holgate <[email protected]>
  • Loading branch information
3 people authored Jan 23, 2025
1 parent c4fe147 commit b07866a
Show file tree
Hide file tree
Showing 7 changed files with 177 additions and 243 deletions.
2 changes: 1 addition & 1 deletion .github/tests/scripts/destroy.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ do {
if($infrastructureAsCode -eq "terraform") {
$starterModuleOverrideFolderPath = "$starterModuleOverrideFolderPath/templates"
}
Deploy-Accelerator -output "$($env:TARGET_FOLDER)" -inputs "./inputs.json" -bootstrapModuleOverrideFolderPath "$($env:BOOTSTRAP_MODULE_FOLDER)" -starterModuleOverrideFolderPath $starterModuleOverrideFolderPath -starterRelease "$($env.ALZ_ON_DEMAND_FOLDER_RELEASE_TAG)" -autoApprove -destroy -ErrorAction Stop
Deploy-Accelerator -output "$($env:TARGET_FOLDER)" -inputs "./inputs.json" -bootstrapModuleOverrideFolderPath "$($env:BOOTSTRAP_MODULE_FOLDER)" -starterModuleOverrideFolderPath $starterModuleOverrideFolderPath -starterRelease "$($env.ALZ_ON_DEMAND_FOLDER_RELEASE_TAG)" -autoApprove -skipAlzModuleVersionRequirementsCheck -destroy -ErrorAction Stop
if ($LastExitCode -eq 0) {
$success = $true
} else {
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/end-to-end-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ jobs:
if($infrastructureAsCode -eq "terraform") {
$starterModuleOverrideFolderPath = "$starterModuleOverrideFolderPath/templates"
}
Deploy-Accelerator -output "${{ env.TARGET_FOLDER }}" -inputs "./inputs.json" -bootstrapModuleOverrideFolderPath "${{ env.BOOTSTRAP_MODULE_FOLDER }}" -starterModuleOverrideFolderPath $starterModuleOverrideFolderPath -starterRelease "${{ env.ALZ_ON_DEMAND_FOLDER_RELEASE_TAG }}" -autoApprove -ErrorAction Stop -Verbose
Deploy-Accelerator -output "${{ env.TARGET_FOLDER }}" -inputs "./inputs.json" -bootstrapModuleOverrideFolderPath "${{ env.BOOTSTRAP_MODULE_FOLDER }}" -starterModuleOverrideFolderPath $starterModuleOverrideFolderPath -starterRelease "${{ env.ALZ_ON_DEMAND_FOLDER_RELEASE_TAG }}" -autoApprove -skipAlzModuleVersionRequirementsCheck -ErrorAction Stop -Verbose
if ($LastExitCode -eq 0) {
$success = $true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
shell: pwsh

- name: Publish Module Artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: module
path: ./staging/
Expand Down Expand Up @@ -105,7 +105,7 @@ jobs:

steps:
- name: Download a Build Artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: module

Expand Down
221 changes: 160 additions & 61 deletions modules/template_architecture_definition/locals.tf

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "${architecture_definition_name}",
"management_groups": [
%{ for management_group in management_groups }{
"archetypes": ${management_group.archetypes},
"display_name": ${management_group.display_name},
"id": ${management_group.id},
"exists": ${management_group.exists},
"parent_id": ${management_group.parent_id}
}%{ if management_group != management_groups[length(management_groups) - 1] && length(management_groups) != 0},
%{ endif }%{ endfor }
]
}

This file was deleted.

This file was deleted.

0 comments on commit b07866a

Please sign in to comment.