Skip to content

Commit 8543cea

Browse files
authored
Merge pull request #3 from kolosovpetro/AZ400-314
AZ400-314. Update Terraform template
2 parents 3f17ce3 + e1a0907 commit 8543cea

18 files changed

+590
-391
lines changed

.github/workflows/terraform-ci.yml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,39 +28,36 @@ jobs:
2828
- ubuntu-latest
2929

3030
env:
31-
DOTNET_NOLOGO: 1
32-
DOTNET_CLI_TELEMETRY_OPTOUT: 1
33-
ACTIONS_RUNNER_DEBUG: true
31+
ACTIONS_RUNNER_DEBUG: false
3432
TF_LOG: INFO
3533
ARM_CLIENT_ID: ""
3634
ARM_CLIENT_SECRET: ${{ secrets.TF_ARM_CLIENT_SECRET }}
3735
ARM_SUBSCRIPTION_ID: ""
3836
ARM_TENANT_ID: ""
39-
WORKING_DIR: "./"
4037

4138
steps:
4239
- name: Fetch Sources
43-
uses: actions/checkout@v3
40+
uses: actions/checkout@v4
4441
with:
4542
fetch-depth: 0
4643

4744
- name: Setup Terraform
48-
uses: hashicorp/setup-terraform@v2
45+
uses: hashicorp/setup-terraform@v3
4946
with:
5047
terraform_version: latest
5148

5249
- name: Terraform Version
5350
run: terraform -v
54-
working-directory: ${{ env.WORKING_DIR }}
51+
52+
- name: Verify encoding
53+
shell: pwsh
54+
run: ./scripts/verify-encoding.ps1
5555

5656
- name: Terraform Init
5757
run: terraform init -backend=false
58-
working-directory: ${{ env.WORKING_DIR }}
5958

6059
- name: Terraform Validate
6160
run: terraform validate
62-
working-directory: ${{ env.WORKING_DIR }}
6361

6462
- name: Terraform Format
65-
run: terraform fmt -check
66-
working-directory: ${{ env.WORKING_DIR }}
63+
run: terraform fmt -check

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,7 @@
55
*.tfstate
66
*.lock.info
77
*.tfstate.backup
8-
*.lock.hcl
98
azure.sas.conf
9+
*.txt
10+
id_rsa
11+
id_rsa.pub

.terraform.lock.hcl

Lines changed: 22 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6+
and this project adheres to [Semantic Versioning v2.0.0](https://semver.org/spec/v2.0.0.html).
7+
8+
## v1.0.0 - In Progress
9+
10+
### Changed
11+
12+
- Update gitignore
13+
- Commit lock file
14+
- Move variable from locals
15+
- Git ignore txt files
16+
- Git ignore ssh keys
17+
- Update GitHub actions CI
18+
- Fix encoding and BOM characters
19+
- Azure pipelines for terraform

COMMANDS.md

Lines changed: 0 additions & 30 deletions
This file was deleted.

azure-pipelines/azdo-terraform-apply.yml

Lines changed: 0 additions & 140 deletions
This file was deleted.

azure-pipelines/azdo-terraform-ci.yml

Lines changed: 0 additions & 55 deletions
This file was deleted.

0 commit comments

Comments
 (0)