Граф коммитов

131 Коммитов

Автор SHA1 Сообщение Дата
microsoft-github-policy-service[bot] 98af053ac4
Microsoft mandatory file (#53)
Co-authored-by: microsoft-github-policy-service[bot] <77245923+microsoft-github-policy-service[bot]@users.noreply.github.com>
2022-08-09 14:15:23 +02:00
Julie Ng 521cea9b0c
feat(pipelines): refactor separate pipelines per environment into single deployment pipeline (#52)
* import existing pipeline changes

* try refactoring steps, splitting plan and apply permissions

* refactor more

* fix syntax

* fix tf apply step

* ci: use ubuntu-latest

* more cleanup, remove unused code

* cd: add prod stage

* relative paths, adjust PR

* pr-syntax: adjust, test later

* feat: add makefile with all local tf commands

* chore: use main branch again
2022-05-05 13:34:01 +02:00
Julie Ng b4401bb0f2
fix: even more resource dependencies 2022-05-01 19:12:48 +02:00
Julie Ng 2078884fc9
fix(aad): provider must be specified. cd fails otherwise 2022-05-01 19:12:16 +02:00
Julie Ng c35b967205
feat(storage-account): ignore arm auto adjustments 2022-05-01 19:11:27 +02:00
Julie Ng e3989c6b0f
feat(setup): output sp client_id 2022-05-01 19:10:35 +02:00
Julie Ng de4a824d9a
fix(ado): prefer project id over name to prevent weird tf config drifts 2022-05-01 19:10:05 +02:00
Julie Ng 6ca40c7e57
fix(deploy): remove key vaults, reduce time by minutes 2022-05-01 19:08:40 +02:00
Julie Ng 80ebe22b05
fix: specify more resource dependencies 2022-05-01 15:36:33 +02:00
Julie Ng e3a2c9557c
feat(tags): merge custom and default tags per environment 2022-05-01 15:35:32 +02:00
Julie Ng efda638343
chore: cleanup comments, newline 2022-05-01 15:32:32 +02:00
Julie Ng f1bc8acb25
fix(providers): upgrade versions, esp. aad should fix various issues when creating new projects 2022-05-01 15:32:15 +02:00
Julie Ng 81be5a5950
fix(variables): make clearer why 2 admin object ID types needed. misc text adjustments 2022-05-01 15:29:31 +02:00
Julie Ng db7c525f75
style(comments): prefer '=' over '-' as separator 2022-05-01 15:28:04 +02:00
Julie Ng 32014efca7
fix(service-principals): adjust for graph and provider v2 2022-05-01 15:25:14 +02:00
Julie Ng 2c34ebb871
feat(setup): iac for initial owners sp and aad group 2022-05-01 15:19:26 +02:00
Julie Ng 108fbbdfb6
chore: rename backend config 2022-04-29 13:59:42 +02:00
Julie Ng 40af28611a
chore(release): 0.4.0 2022-01-27 14:38:00 +01:00
Julie Ng 92524c4e14
Merge pull request #51 from Azure/feat/app-owners
Add owners to AAD applications
2022-01-21 12:49:28 +01:00
Julie Ng c8b43c9547
feat(devops): mask tenant and user principal ids 2022-01-13 10:08:24 +01:00
Julie Ng 712e2362d9
feat(aad): add owners to application objects #49 2022-01-13 10:07:29 +01:00
Julie Ng ad5c238daa
Merge pull request #48 from Azure/feat/docs-env
docs(deploy): describe .env contention, closes #33
2022-01-13 09:30:59 +01:00
Julie Ng b85fa8aa5d
Merge pull request #50 from Azure/feat/upgrade-azuread-provider
Upgrade azuread Terraform provider from v1 to v2, which uses MSFT Graph API
2022-01-12 14:07:37 +01:00
Julie Ng cd60de7186
docs(deploy): update to use microsoft graph api #49 2022-01-11 16:51:41 +01:00
Julie Ng fd7a1e6152
feat(azuread-provider): upgrade to v2 #49 2022-01-11 07:03:32 +01:00
Julie Ng 3a82a5f189
chore(deps): upgrade terraform provider versions #49 2022-01-11 06:41:48 +01:00
Julie Ng 3ae11146b8
docs(deploy): describe .env contention, closes #33 2022-01-10 13:27:08 +01:00
Julie Ng 7322197f56
feat(terraform): enable local deployment, closes #35 (#44) 2021-11-04 15:38:23 +01:00
Julie Ng 9710795e86
docs(deployment): explain optional 'superadmins' aad group, closes #34 (#41) 2021-11-04 15:35:07 +01:00
Julie Ng 1582aff254
fix(pipelines): readonly property does not exist for var groups (#43) 2021-11-04 15:26:17 +01:00
Julie Ng c02d2d0909
feat(pipelines): more debugging output, update docs (#42)
* make key-vault vars read-only

* add more variable debugging, bring back kv confirm step

* docs(pipelines): update table, headings
2021-11-04 15:12:54 +01:00
Julie Ng 8045ea4f2a
fix(pipelines): var group conditioal must use compile time syntax (#40) 2021-11-04 12:33:48 +01:00
Julie Ng 7ba5c659ee
fix(pipelines): remove broken bash step, clean up vars (#39) 2021-11-03 16:48:55 +01:00
Julie Ng f5c50025ab
fix(pipeline-debug): backticks in bash is command substitution (#32) 2021-06-29 11:16:42 +02:00
Julie Ng 65f7bb4495
fix(pipeline): load kv based on branch in scheduled drift detection (#31) 2021-06-29 08:38:38 +02:00
Julie Ng 3b29b3e0ba
pipelines: try fix, move vars to stage, debug vars (#30)
This code needs to be on `main` or `production` branch to be properly tested. 

* cd-pipeline: try fix, move vars to stage, debug vars
* drift-pipeline: debug why key vaults (var groups) are not being loaded
* drift-pipeilne: confirm if key vault loaded
* drift-pipeline: exit 1 if key vault check fails
* pipelines: more debugging code
2021-06-23 11:41:08 +02:00
Julie Ng 81904ac0ca
pipelines: refactor out more steps (#29)
* pipelines: refactor out more steps

* pipeline-templates: maybe different relative path syntax

* pipeline: rename pr template

* vars: surface github vars

* Revert "vars: surface github vars" - doesn't work 🤷‍♀️

This reverts commit bc850025d5.
2021-06-22 18:49:33 +02:00
Julie Ng 3e4906bcb5
fix(pipeline): scheduled drift detection (#28)
* pipeline(drift-detection): scheduled run does not comment on PR

* temp: enable drift pipeline for this fix/ branch

* pipeline-vars: remove unused/broken

* pipeline(drift): rename step appropriately

* pipeline: remove temp testing code

* drift-pipeline: do not run scheduled version for PRs
2021-06-22 17:11:53 +02:00
Julie Ng 54fb1cefeb
feat(ci-cd): enable automation for multiple environments (#27)
* chore(deps): update terraform providers
* fix(terraform): backend type azurerm must be set. -backend-config is for key/val pairs only
* docs(terraform): update AAD permissions requirements
* feat(pipeline): config depending on branch name aka environment
* pipeline: rename comment stage
* pipeline: also need to set env for pull requests
* pipeline-vars: branch names start with refs/heads
* pipeline: more debugging
* pipeline: fix typo
* pipelines: debug built in variables too
* pipeline: try again after re-configuring git branch protection
* pipelines: completely refactor since PR target branch var not available for GitHub Repos
* stage(detect-draft): remove debugging conditionals
* drift: fix pipeline output filename
* pipelines: pr-only for PR pipelines
* pipeline(ci): ignore docs changes
* pipelines: errors if state file locked
* docs(pipelines): update
2021-06-18 19:55:58 +02:00
Julie Ng a1357ad37d
docs(backends): managing multiple terraform state files (#25) 2021-06-16 15:16:58 +02:00
Julie Ng 0a063b6d02
chore(release): 0.3.0 2021-06-14 12:56:06 +02:00
Julie Ng 9326616690
chore(tf): remove duplicate '#' in comment 2021-06-14 12:53:37 +02:00
Julie Ng d2f14b2882
feat(concept): remove drafts, link to now published official AAC and CAF docs, closes #24 2021-06-14 12:49:01 +02:00
Julie Ng fd3b08cb6e
docs(terraform): rename to deploy, move backends to folder 2021-06-14 12:47:15 +02:00
Julie Ng f302e6135c
doc(backends): move samples to own folder, describe 2021-06-11 15:54:18 +02:00
Julie Ng fcff295a57
feat(naming): clean up variable name and output schema, improve conventions 2021-06-11 15:45:10 +02:00
Julie Ng f4c68ebee2
fix: ado permissions errors by specifying dependency, closes #24 2021-06-11 15:38:09 +02:00
Julie Ng c2d3d9570e
feat(terraform): simplify for single plan and deploy, #22
- key-vault: use RBAC authZ, which has since GA'd
- service connections are set directly from terraform
  instead of indirectly via key vault because:
  - terraform released 'sensitive=true' feature for outputs
  - key vault RBAC propagation can take up to 10 minutes,
    which breaks terraform runs
2021-06-11 15:34:42 +02:00
Julie Ng 2a2ab95094
feat(terraform): default to local backend for lower barrier to entry 2021-06-11 15:13:10 +02:00
Julie Ng ebf58ee40d
chore(terraform): lock depdencies 2021-06-11 15:09:21 +02:00