Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pagopa-archive/template-devops-azure
https://github.com/pagopa-archive/template-devops-azure
azure-devops infrastructure template terraform
Last synced: about 9 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/pagopa-archive/template-devops-azure
- Owner: pagopa-archive
- Archived: true
- Created: 2022-02-14T19:28:14.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-05-09T10:31:47.000Z (over 2 years ago)
- Last Synced: 2025-02-05T02:18:53.456Z (about 9 hours ago)
- Topics: azure-devops, infrastructure, template, terraform
- Language: HCL
- Homepage:
- Size: 39.1 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# your-project-name
This repo template allows you to create a repo for your project pipelines
## How to use this template
You need to create before in infra this resources:
* vm agent
* key vaultYou need to add to the key vault at least this secrets:
* azure-devops-github-ro-TOKEN
* azure-devops-github-pr-TOKEN
* azure-devops-github-EMAIL
* azure-devops-github-USERNAME
* TENANTID
* DEV-SUBSCRIPTION-ID
* UAT-SUBSCRIPTION-ID
* PROD-SUBSCRIPTION-ID
* le-private-key-json
* le-regr-json## Github bot
Use your github bot to generate the token to interact with your repo.
And don't forgot to associate to your repo as ADMIN, without this is impossibile to use the pipelines
## Change values in this files
Change the values in this files
### azure-devops/.env/prod-backend.ini
Put the name of your production subscription
### azure-devops/.env/terraform.tfvars
Change the project prefix and the names of your subscriptions
### azure-devops/.env/(app | iac)_state.tfvars
Change the information about the state, changed the `prefix` with the prefix of your project used into the infra project.
(e.g. selc or dvopla)## terraform.sh
To be able to launch terraform scripts you can use the script called `terraform.sh`
To launch the app pipelines use
```sh
sh terraform.sh apply app
```To launch the iac pipelines use
```sh
sh terraform.sh apply iac
```## Precommit check
Check your code before commit.
```sh
pre-commit run -a
```