Skip to content
This repository was archived by the owner on Jan 17, 2023. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
157 commits
Select commit Hold shift + click to select a range
87302ac
support multiple ssh keys (#147)
sudoapt-getclean Nov 19, 2020
869704f
support defining sku for public ip (#151)
AliAllomani Nov 20, 2020
f38e05f
update (#154)
yupwei68 Nov 23, 2020
9afddd7
Create pull_request_template.md (#156)
yupwei68 Nov 25, 2020
a4358f0
support os_profile_secrets (#150)
AliAllomani Nov 26, 2020
3032f5e
Integration of Terramodtest 0.8.0 (#157)
yupwei68 Dec 1, 2020
c6987b3
Adding support for the 'extra_disks' parameter (#152)
juan-acevedo-ntt Dec 2, 2020
08cf99e
Docker fix (#158)
yupwei68 Dec 14, 2020
1c6986b
support raw value for ssh keys in addition to paths (#159)
AliAllomani Dec 15, 2020
f54ab6e
Allow to make ssh_key optional (#162)
jtyr Mar 4, 2021
c130793
Fix fixture test (#163)
yupwei68 Mar 8, 2021
01fee36
Fix fixture test (#165)
yupwei68 Apr 29, 2021
97dc8ac
Fixed deprecated list method (#168)
stgrace May 20, 2021
ce71f7e
Add variable `delete_data_disks_on_termination` (#170)
yupwei68 May 24, 2021
484fdb9
Microsoft mandatory file (#181)
microsoft-github-policy-service[bot] Oct 9, 2022
d706a23
ci, half way
lonegunmanb Oct 20, 2022
2df6908
add github action files. fix acc tests
lonegunmanb Nov 1, 2022
926d002
add CHANGELOG, update readme
lonegunmanb Nov 2, 2022
acaba7d
refactor code to pass pr-check
lonegunmanb Nov 2, 2022
e0fad5d
upgrade github action ci files
lonegunmanb Nov 11, 2022
68f0d36
Rollback module code, we won't change module code in this release.
lonegunmanb Nov 11, 2022
6136adf
Leave CHANGELOG.md to auto changelog updater to generate.
lonegunmanb Nov 11, 2022
d675f0a
Add MSI_ID to version upgrade test.
lonegunmanb Nov 11, 2022
f430640
Change KeyVault properties, move `provider` block to `providers.tf` file
lonegunmanb Nov 11, 2022
f4a34be
turn off `terraform_sensitive_variable_no_default` for now.
lonegunmanb Nov 11, 2022
3bc2405
bumpt tflint plugin version, remove .tflint_exmaple_alt.hcl because w…
lonegunmanb Nov 14, 2022
b9864f3
update changelog updater
lonegunmanb Nov 15, 2022
08abfee
Merge pull request #185 from jiaweitao001/ci
lonegunmanb Nov 15, 2022
cbf2db8
Update changelog
github-actions[bot] Nov 15, 2022
9eadd5c
Update changelog
github-actions[bot] Nov 15, 2022
d7b537b
Allow custom OS disk size (#183)
yatzek Nov 15, 2022
b8afe35
Update changelog
github-actions[bot] Nov 15, 2022
76e4b34
add CodeQL to pre-pr check step
lonegunmanb Nov 18, 2022
1ef2b6b
Removing depends_on in examples (#195)
jiaweitao001 Nov 23, 2022
6df5e3a
Update changelog
github-actions[bot] Nov 23, 2022
6c38be8
Repacing location and resource_group_name with local variables (#196)
jiaweitao001 Nov 23, 2022
6925e48
Update changelog
github-actions[bot] Nov 23, 2022
3387964
add override file so we can run version upgrade test
lonegunmanb Nov 22, 2022
abe41c5
use env to set variable so if we'd like to add an example without thi…
lonegunmanb Nov 22, 2022
184a06c
Remove push notification, ignore error when there's no breaking change.
lonegunmanb Nov 23, 2022
94169e2
Merge pull request #194 from lonegunmanb/override
jiaweitao001 Nov 23, 2022
6fb8f84
Update changelog
github-actions[bot] Nov 23, 2022
75fb201
rename some resources to snake case to solve #192
lonegunmanb Nov 22, 2022
3ac3ec5
Merge pull request #193 from lonegunmanb/e-192
jiaweitao001 Nov 24, 2022
658ee14
refactor code to meet tflint's requirements
lonegunmanb Nov 15, 2022
7849eea
Fix missing variable
lonegunmanb Nov 24, 2022
1e196f5
update readme, turn off terraform_unused_declarations check, remove u…
lonegunmanb Nov 24, 2022
d0fdaf5
Merge pull request #189 from lonegunmanb/e-186
jiaweitao001 Nov 24, 2022
43ab0bb
Update changelog
github-actions[bot] Nov 24, 2022
2c8519e
convert legacy splat syntax into bracket syntax
lonegunmanb Nov 24, 2022
dba338d
Merge pull request #198 from lonegunmanb/e-190
jiaweitao001 Nov 24, 2022
2d5004b
Update changelog
github-actions[bot] Nov 24, 2022
bb69543
Add support for zones
lonegunmanb Nov 24, 2022
bbb0162
add comment to describe why we add ar.zone not ar.zones.
lonegunmanb Nov 24, 2022
7366041
Merge pull request #199 from lonegunmanb/e-187
jiaweitao001 Nov 25, 2022
aa0ad1c
fix unused variable issue, add the missing argument back to fix the b…
lonegunmanb Nov 25, 2022
efe8afe
make `azurerm_availability_set`'s `platform_fault_domain_count` and `…
lonegunmanb Nov 25, 2022
2211cc7
Merge pull request #200 from lonegunmanb/f-197
jiaweitao001 Nov 25, 2022
626d6d4
Update changelog
github-actions[bot] Nov 25, 2022
841230e
output vm names
lonegunmanb Nov 25, 2022
43d28fa
fix incorrect example code
lonegunmanb Nov 25, 2022
1c6b701
Solve #107 by adding `create_before_destroy = true` to defer public i…
lonegunmanb Nov 25, 2022
156188a
Merge pull request #202 from lonegunmanb/e-146
jiaweitao001 Nov 25, 2022
1a53973
Update changelog
github-actions[bot] Nov 25, 2022
ce4b701
Merge pull request #201 from lonegunmanb/e-191
jiaweitao001 Nov 25, 2022
592eb04
Update changelog
github-actions[bot] Nov 25, 2022
fe7a357
add support for network security group injection
lonegunmanb Nov 25, 2022
ce0e7be
Merge pull request #203 from lonegunmanb/f-107
jiaweitao001 Nov 28, 2022
645f836
Update changelog
github-actions[bot] Nov 28, 2022
a496764
Merge pull request #205 from lonegunmanb/e-204
jiaweitao001 Nov 28, 2022
0e930cd
Update changelog
github-actions[bot] Nov 28, 2022
634363e
Add new variable `external_boot_diagnostics_storage` so we can use ex…
lonegunmanb Nov 28, 2022
5c54b6f
update readme
lonegunmanb Nov 28, 2022
fdf75cb
update comment for newly added variable
lonegunmanb Nov 28, 2022
830746c
Merge pull request #208 from lonegunmanb/e-206
jiaweitao001 Nov 29, 2022
7b168b9
Update changelog
github-actions[bot] Nov 29, 2022
c8ac9ba
add support for `plan` block
lonegunmanb Nov 28, 2022
9909a6c
regenerate readme
lonegunmanb Nov 29, 2022
5740824
Merge pull request #209 from lonegunmanb/e-180
jiaweitao001 Nov 29, 2022
ce54480
Update changelog
github-actions[bot] Nov 29, 2022
f091f4e
Add support for `azurerm_virtual_machine_extension` resource.
lonegunmanb Nov 28, 2022
b6b282e
regenerate readme
lonegunmanb Nov 29, 2022
5f71f9b
Merge pull request #210 from lonegunmanb/e-175
jiaweitao001 Nov 29, 2022
cce70ca
Update changelog
github-actions[bot] Nov 29, 2022
dcbc2ae
Update changelog
github-actions[bot] Nov 29, 2022
c201803
Bump `terraform-module-test-helper` version to get rid of override file.
lonegunmanb Dec 2, 2022
c85e62e
bump tflint plugin version, add new checking rule
lonegunmanb Dec 6, 2022
ff58fe5
Merge pull request #213 from lonegunmanb/bump-tflint-config
jiaweitao001 Dec 7, 2022
ec7a387
Update changelog
github-actions[bot] Dec 7, 2022
42597c4
Merge pull request #212 from lonegunmanb/no-override
jiaweitao001 Dec 7, 2022
c15ff97
Update changelog
github-actions[bot] Dec 7, 2022
cceaf35
update changelog updater
lonegunmanb Dec 13, 2022
c654fc7
Update changelog
github-actions[bot] Dec 13, 2022
fbaac04
bump terraform-module-test-helper version
lonegunmanb Dec 13, 2022
8ae45cd
update go.sum
lonegunmanb Dec 14, 2022
5914c13
prepare for dependabot
lonegunmanb Dec 15, 2022
8f0d1b3
remove go.sum
lonegunmanb Dec 15, 2022
2b38e3c
sync github action with tfmod-scaffold
lonegunmanb Dec 15, 2022
af1192b
fix indentation in yaml file
lonegunmanb Dec 16, 2022
ae5582b
use reusable workflow
lonegunmanb Dec 22, 2022
5f98e15
fix acc test
lonegunmanb Dec 22, 2022
e34628c
Changed var.location default value from "" to null (#214)
juanjojulian Dec 22, 2022
6735c19
Update changelog
github-actions[bot] Dec 22, 2022
bc1c0de
Update changelog
github-actions[bot] Dec 22, 2022
79593d0
Bump github.com/gruntwork-io/terratest from 0.41.6 to 0.41.7 in /test…
dependabot[bot] Dec 27, 2022
1a93788
add devcontainer
lonegunmanb Dec 28, 2022
bef7064
Update changelog
github-actions[bot] Dec 28, 2022
c75cbc2
Bump github.com/Azure/terraform-module-test-helper in /test (#216)
dependabot[bot] Jan 3, 2023
7b73365
Update changelog
github-actions[bot] Jan 3, 2023
ca91ba3
Add support for multiple virtual machine extensions. (#217)
lonegunmanb Jan 16, 2023
f8b9354
Update changelog
github-actions[bot] Jan 16, 2023
f570ab6
Adjust the dynamic plan variable to properly set the name and product…
AWSmith0216 Jan 16, 2023
9df2871
Update changelog
github-actions[bot] Jan 16, 2023
018f03d
Update changelog
github-actions[bot] Jan 16, 2023
f54ac4e
update readme, prepare for 5.0.0
lonegunmanb Jan 16, 2023
a3d6f7f
Update changelog
github-actions[bot] Jan 16, 2023
e38a9e5
Update changelog
github-actions[bot] Jan 16, 2023
a6e8602
Bump github.com/gruntwork-io/terratest from 0.41.7 to 0.41.9 in /test…
dependabot[bot] Jan 17, 2023
970ae9e
Bump github.com/Azure/terraform-module-test-helper in /test (#221)
dependabot[bot] Jan 24, 2023
afe9909
Update changelog
github-actions[bot] Jan 24, 2023
9bfc5ec
update readme to recommend new virtual machine module
lonegunmanb Jan 29, 2023
ff43a4d
Merge pull request #225 from lonegunmanb/virtual-machine
jiaweitao001 Jan 29, 2023
c89d2ed
Update changelog
github-actions[bot] Jan 29, 2023
efa8deb
Update `README.md` with Powershell error resolution. (#226)
DatsloJRel Jan 31, 2023
5cb083c
Update changelog
github-actions[bot] Jan 31, 2023
99193ca
Optionally create an availability set (#228)
DatsloJRel Feb 6, 2023
0d183c0
Update changelog
github-actions[bot] Feb 6, 2023
0e184b4
Update changelog
github-actions[bot] Feb 6, 2023
e1efc3a
Update changelog
github-actions[bot] Feb 6, 2023
51e20f4
pin the iterator variable to avoid concurrent test error (#232)
lonegunmanb Feb 7, 2023
946442f
Update changelog
github-actions[bot] Feb 7, 2023
0878fec
Bump github.com/gruntwork-io/terratest from 0.41.9 to 0.41.10 in /tes…
dependabot[bot] Feb 7, 2023
415cc5e
Update changelog
github-actions[bot] Feb 7, 2023
c0390a9
Bump github.com/Azure/terraform-module-test-helper in /test (#230)
dependabot[bot] Feb 7, 2023
9f7b4af
Update changelog
github-actions[bot] Feb 7, 2023
bb17330
Create data disks and attach after VM creation by azurerm_virtual_mac…
DatsloJRel Feb 8, 2023
282a724
Update changelog
github-actions[bot] Feb 8, 2023
c452d0c
ignore TestRecord temp file
lonegunmanb Feb 9, 2023
384cfb5
Improve separate data disk resource logic (#233)
lonegunmanb Feb 9, 2023
c3d534b
Update changelog
github-actions[bot] Feb 9, 2023
eafc0d0
update github action files
lonegunmanb Feb 9, 2023
d00d0b0
Use name template variables to customize the name of each resource (#…
DatsloJRel Feb 13, 2023
d1b9c5c
Update changelog
github-actions[bot] Feb 13, 2023
992338e
Bump github.com/hashicorp/go-getter/v2 from 2.1.1 to 2.2.0 in /test (…
dependabot[bot] Feb 17, 2023
28f8e56
Update TestVersionSnapshot
github-actions[bot] Feb 17, 2023
ac57881
Bump github.com/hashicorp/go-getter from 1.6.1 to 1.7.0 in /test (#235)
dependabot[bot] Feb 17, 2023
f2b125a
Update TestVersionSnapshot
github-actions[bot] Feb 17, 2023
c17b68c
Bump golang.org/x/net from 0.1.0 to 0.7.0 in /test (#237)
dependabot[bot] Feb 20, 2023
2848aaa
Update TestVersionSnapshot
github-actions[bot] Feb 20, 2023
f174c8f
fix #222 by upgrading Terraform required version to >= 1.3
lonegunmanb Feb 20, 2023
45fd4a7
Merge pull request #238 from lonegunmanb/f-222
jiaweitao001 Feb 21, 2023
cda4139
Update TestVersionSnapshot
github-actions[bot] Feb 21, 2023
45219e6
Bump github.com/gruntwork-io/terratest from 0.41.10 to 0.41.11 in /te…
dependabot[bot] Feb 22, 2023
1fcea86
Update TestVersionSnapshot
github-actions[bot] Feb 22, 2023
a9e5f7e
Bump github.com/Azure/terraform-module-test-helper in /test (#240)
dependabot[bot] Feb 27, 2023
ce45a78
Update TestVersionSnapshot
github-actions[bot] Feb 27, 2023
25469f2
fix cron test pool name
lonegunmanb Feb 27, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .checkov_config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
block-list-secret-scan: []
branch: master
directory:
- ./
download-external-modules: false
evaluate-variables: true
external-modules-download-path: .external_modules
framework:
- all
quiet: true
secrets-scan-file-type: []
skip-check:
- CKV_GHA_3
- CKV_AZURE_119
# Check following rules after v4.0
- CKV2_AZURE_18
- CKV2_AZURE_1
- CKV2_AZURE_10
- CKV2_AZURE_12
skip-framework:
- dockerfile
summary-position: top
26 changes: 26 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"image": "mcr.microsoft.com/azterraform:latest",

"runArgs": [
"--cap-add=SYS_PTRACE",
"--security-opt",
"seccomp=unconfined",
"--init",
"--network=host"
],

"mounts": [ "source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind" ],
"customizations": {
"vscode": {
"settings": {
"go.toolsManagement.checkForUpdates": "local",
"go.useLanguageServer": true,
"go.goroot": "/usr/local/go"
},
"extensions": [
"hashicorp.terraform",
"golang.Go"
]
}
}
}
3 changes: 0 additions & 3 deletions .github/CODEOWNERS

This file was deleted.

120 changes: 120 additions & 0 deletions .github/ISSUE_TEMPLATE/Bug_Report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
name: Bug Report
description: If something isn't working as expected.
labels: [bug]
body:
- type: markdown
attributes:
value: |
Thank you for taking the time to fill out a bug report.

If you are not running the latest version of this module, please try to reproduce your bug with the latest version before opening an issue.
- type: checkboxes
attributes:
label: Is there an existing issue for this?
description: Please search to see if an issue already exists for the bug you encountered.
options:
- label: I have searched the existing issues
required: true
- type: dropdown
attributes:
label: Greenfield/Brownfield provisioning
description: Do you reproduce the bug with a new infrastructure provisioning (greenfield) or you need an existing infrastructure with an existing terraform state (brownfield) to reproduce the bug ?
multiple: false
options:
- greenfield
- brownfield
validations:
required: true
- type: input
id: terraform
attributes:
label: Terraform Version
description: Which Terraform version are you using?
placeholder: Example value, 1.2.8
validations:
required: true
- type: input
id: module
attributes:
label: Module Version
description: Which module version are you using?
placeholder: Example value, 6.0.0
validations:
required: true
- type: input
id: azurerm
attributes:
label: AzureRM Provider Version
description: Which AzureRM Provider version are you using?
placeholder: Example value, 3.21.1
validations:
required: true
- type: input
id: resource
attributes:
label: Affected Resource(s)/Data Source(s)
description: Please list the affected resources and/or data sources.
placeholder: azurerm_XXXXX
validations:
required: true
- type: textarea
id: config
attributes:
label: Terraform Configuration Files
description: |
Please provide a minimal Terraform configuration that can reproduce the issue.
render: hcl
validations:
required: true
- type: textarea
id: tfvars
attributes:
label: tfvars variables values
description: |
Please provide the necessary tfvars variables values to reproduce the issue. Do not share secrets or sensitive information.
render: hcl
validations:
required: true
- type: textarea
id: debug
attributes:
label: Debug Output/Panic Output
description: |
For long debug logs please provide a link to a GitHub Gist containing the complete debug output. Please do NOT paste the debug output in the issue; just paste a link to the Gist.

To obtain the debug output, see the [Terraform documentation on debugging](https://www.terraform.io/docs/internals/debugging.html).
render: shell
validations:
required: true
- type: textarea
id: expected
attributes:
label: Expected Behaviour
description: What should have happened?
- type: textarea
id: actual
attributes:
label: Actual Behaviour
description: What actually happened?
- type: textarea
id: reproduce
attributes:
label: Steps to Reproduce
description: |
Please list the steps required to reproduce the issue, e.g.

1. `terraform apply`
- type: input
id: facts
attributes:
label: Important Factoids
description: |
Are there anything atypical about your accounts that we should know? For example: Running in a Azure China/Germany/Government?
- type: textarea
id: references
attributes:
label: References
description: |
Information about referencing Github Issues: https://help.github.com/articles/basic-writing-and-formatting-syntax/#referencing-issues-and-pull-requests

Are there any other GitHub issues (open or closed) or pull requests that should be linked here? Such as vendor documentation?
42 changes: 42 additions & 0 deletions .github/ISSUE_TEMPLATE/Feature_Request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Feature Request
description: I have a suggestion (and might want to implement myself)!
title: "Support for [thing]"
body:
- type: checkboxes
attributes:
label: Is there an existing issue for this?
description: Please search to see if an issue already exists for the feature you are requesting.
options:
- label: I have searched the existing issues
required: true
- type: textarea
id: description
attributes:
label: Description
description: Please leave a helpful description of the feature request here.
validations:
required: true
- type: input
id: resource
attributes:
label: New or Affected Resource(s)/Data Source(s)
description: Please list the new or affected resources and/or data sources.
placeholder: azurerm_XXXXX
validations:
required: true
- type: textarea
id: config
attributes:
label: Potential Terraform Configuration
description: Please provide an example of what the enhancement could look like on this Terraform module.
render: hcl
- type: textarea
id: references
attributes:
label: References
description: |
Information about referencing Github Issues: https://help.github.com/articles/basic-writing-and-formatting-syntax/#referencing-issues-and-pull-requests

Are there any other GitHub issues (open or closed) or pull requests that should be linked here? Vendor blog posts or documentation? For example:

* https://azure.microsoft.com/en-us/roadmap/virtual-network-service-endpoint-for-azure-cosmos-db/
19 changes: 0 additions & 19 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
blank_issues_enabled: false
9 changes: 0 additions & 9 deletions .github/ISSUE_TEMPLATE/feature_request.md

This file was deleted.

27 changes: 0 additions & 27 deletions .github/autoAssignees.yml

This file was deleted.

6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "gomod"
directory: "/test"
schedule:
interval: "weekly"
7 changes: 0 additions & 7 deletions .github/labeler.yml

This file was deleted.

13 changes: 13 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
## Describe your changes

## Issue number

#000

## Checklist before requesting a review
- [ ] The pr title can be used to describe what this pr did in `CHANGELOG.md` file
- [ ] I have executed pre-commit on my machine
- [ ] I have passed pr-check on my machine

Thanks for your cooperation!

35 changes: 35 additions & 0 deletions .github/workflows/acc-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: E2E Test
on:
pull_request:
types: [ 'opened', 'synchronize' ]
paths:
- '.github/**'
- '**.go'
- '**.tf'
- '.github/workflows/**'
- '**.md'
- '**/go.mod'

jobs:
acc-tests:
runs-on: [self-hosted, 1ES.Pool=terraform-azurerm-compute]
environment:
name: acctests
steps:
- uses: actions/checkout@v3
- name: init
run: |
docker run --rm -v $(pwd):/src -w /src mcr.microsoft.com/azterraform:latest make generate
- name: e2e test
run: |
sh scripts/ci-e2e.sh
- name: upload test version snapshots
uses: actions/upload-artifact@v3
with:
name: TestRecord-${{ github.event.number }}
retention-days: 60
path: |
examples/**/TestRecord.md.tmp
- name: version-upgrade test
run: |
sh scripts/ci-version-upgrade.sh
11 changes: 11 additions & 0 deletions .github/workflows/breaking-change-detect.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: 'Comment on PR'

on:
workflow_run:
workflows: ["Pre Pull Request Check"]
types:
- completed

jobs:
comment:
uses: Azure/tfmod-scaffold/.github/workflows/breaking-change-detect.yaml@main
15 changes: 15 additions & 0 deletions .github/workflows/pr-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Pre Pull Request Check
on:
pull_request:
types: ['opened', 'synchronize']
paths:
- '.github/**'
- '**.go'
- '**.tf'
- '.github/workflows/**'
- '**.md'
- '**/go.mod'

jobs:
prepr-check:
uses: Azure/tfmod-scaffold/.github/workflows/pr-check.yaml@main
10 changes: 10 additions & 0 deletions .github/workflows/pr-merged.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: Pr Merged
on:
push:
branches:
- main
- master

jobs:
pr-merged:
uses: Azure/tfmod-scaffold/.github/workflows/pr-merged.yaml@main
Loading