https://github.com/RichieBzzzt/terraform-azure-sql-pester
https://github.com/RichieBzzzt/terraform-azure-sql-pester
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/RichieBzzzt/terraform-azure-sql-pester
- Owner: RichieBzzzt
- Created: 2019-02-22T14:44:52.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-02-22T16:28:26.000Z (about 6 years ago)
- Last Synced: 2024-08-03T22:19:31.506Z (9 months ago)
- Language: HCL
- Size: 4.88 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- jimsghstars - RichieBzzzt/terraform-azure-sql-pester - (HCL)
README
# terraform-azure-sql-pester
Project is a terraform-based project.
## To Build/Deploy Project
* You will need to specify the values yourself for anything not in double quotes in the ```terraform.tfvars``` -
```text
subscription_id = ""
subscription_name = ""
environment_suffix = ""
tenant_id = ""
```Some variables are sensitive and need to be added to a secrets.auto.tfvars file which will not be added to the repo as it is included in the gitignore file.
* At root directory create a ```secrets.auto.tfvars``` and enter the following parameters. You will need to specify the values yourself.
```text
sqladminpassword = password of sql admin account on box
sqladminuser = username of sql admin
```* Make sure you have [terraform](https://learn.hashicorp.com/terraform/getting-started/install.html) installed and added to path.
* Make sure you have [az cli](https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-windows?view=azure-cli-latest) installed.
* Should you have more than one subscription, specify it ```az account set --subscription="SUBSCRIPTION_ID"```
* Open shell at root of directory (ie PowerShell)
* Login using az commands
* Run ```terraform init```
* If successful, run ```terraform apply```Pester Tests are run as ```null_resource``` resource via the ```local_exec``` provider, and have triggers so that they are always run.