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

11 Коммитов

Автор SHA1 Сообщение Дата
Jin Lee bc612eaae8
Feature/terraform (#82)
* adding initial terraform ci/cd

* adding the initial file

* adding workflow dispatch

* Adding the working directory

* Updating authentication to use spn

Updating authentication to use spn as auth via az cli only supported when using an user account

* updating to use remote backend

* adding vars as secrets in plan

* Update terraform-es-apim.yml

* Fixes to TF branch

* fix jumpbox resource names

* fix apim private dns zone record

* Fix NSG naming and network rules to bicep rules

* Fix conflicting key vault access policies

* Run terraform fmt.

* Fix typos.

* Correct the resource_suffix construction.

* Unify comment case.

* Explain where publisher_email is used.

* terraform gh action enhancements/oidc refactoring

* terraform gh action enhancements/oidc refactoring

* checking out feature/terraform from within the action

* wflow debug

* wflow debug

* wflow debug

* wflow debug

* wflow debug

* wflow debug

* wflow debug

* configuring remote backend to reflect storage account in CSU

* testing with v3.1 azurerm for OIDC compatibility

* wflow debug

* removing azurerm login parameters from required vars since OIDC will be leveraged in CICD

* wflow debug

* wflow debug

* azurerm 3.0 upgrade, formatting fixes, precommit

* setting defaults for account_name and cicd_agent_type

* wflow formatting

* fixing secrets

* fixing secrets

* fixing secrets

* fixing github pat secret

* removing the pr comment for now

* wflow debug...

* artifact debug

* artifact debug

* artifact debug

* artifact debug

* artifact debug

* artifact debug

* artifact debug

* artifact debug

* artifact debug

* artifact debug

* artifact debug

* minor cleanup

* Change Azure Functions runtime version from 3 to 4 in tf.

* Change TF app service plan and function resources to new versions.

Some resource types have been deprecated in version 3.0 of the AzureRM
provider and will be removed in version 4.0. These are replaced as follows:
azurerm_app_service_plan -> azurerm_service_plan
azurerm_function_app     -> azurerm_linux_function_app

* Set the priority of the request AppGW routing rule.

The priority setting is required for *_v2 tier azurerm_application_gateway
resources, see the documentation here:

https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/application_gateway#priority

Without this setting, the AppGW creation fails with an error message like:

Priority for the request routing rule ... cannot be empty. All request routing
rules should have a priority defined starting from api-version 2021-08-01.

* Adding a secondary workflow to initialize tf state container/sa via actions secrets

* exec'ing workflow

* adding token perms

* commenting out the init params in provider.tf to pass in at runtime

* workflow debug

* setting workload name through action's env vars

* setting workload name through action's env vars

* cleanup + minor wflow fix

* Updated docs + cleanup

* typo

* test

* configuring automated trigger conditions to only pull requests to main

* clean

* testing the pr trigger to feature/terraform

* adding token perms to write on prs

* cleanup

* adding custom logic to allow for production client ID to be injected into the pre-configured tfplan file to grant access to shared key vault

* refactoring additional_client_ids var to cicd_spn_client_id to simplify deployment

* cleanup/precommit

* conditional to capture null val

* typo

* fixing wflow

* adding in depends on for shared module

* adding in depends on for shared module

* fixing oidc env for the bicep wflow

* updating main documentation to incorporate terraform

Co-authored-by: Paromita Roy <paromita.roy@outlook.com>
Co-authored-by: Paromita Roy <55242088+paromitaroy@users.noreply.github.com>
Co-authored-by: aionic <anevico@microsoft.com>
Co-authored-by: Nabeel Prior <nabeelp@users.noreply.github.com>
Co-authored-by: lp-code <lp-code@users.noreply.github.com>
Co-authored-by: Anthony Nevico <aionic@users.noreply.github.com>
Co-authored-by: Jin @ Microsoft <jinle@Jins-MacBook-Pro.local>
Co-authored-by: Pete Messina <petermessina@microsoft.com>
2022-12-14 07:39:31 -08:00
Jin Lee 53dbafc71c merging changes from the OIDC refactor into the es-apim.yml gh action 2022-11-10 08:54:23 -06:00
Cenk Caglar d1574923dd
removed arm generation part 2022-07-27 10:29:37 -04:00
Cynthia Kreng 7b58f968d4 update to use location as param not var 2022-04-07 16:40:06 -07:00
Cenk Caglar d58b057b36
ARM Generation
Updated ARM generation steps and also added job dependency.
2022-03-23 13:21:33 -04:00
Cynthia Kreng e6145e23f5 changing trigger on PR just for main 2022-01-28 13:35:41 -08:00
Cynthia Kreng bed716b994 line breaks 2022-01-27 18:05:04 -08:00
Cynthia Kreng c6014c1c5e still path changes 2022-01-27 18:03:17 -08:00
Cynthia Kreng ff6e5a5da2 more path changes 2022-01-27 17:59:54 -08:00
Cynthia Kreng 76f6f99dcb changed path 2022-01-27 17:57:24 -08:00
Cynthia Kreng 78adde7d72 new file structure + workflow 2022-01-27 17:55:25 -08:00