Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelamattes authored Jun 8, 2023
0 parents commit 2d39e83
Show file tree
Hide file tree
Showing 22 changed files with 761 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"repos": {
"description": "A Terraform module that manages the tpl_resources resources from the azurerm provider.",
"visibility": "public",
"default_branch": "main",
"topics": [
"terraform",
"azure"
]
}
}
12 changes: 12 additions & 0 deletions .github/workflows/codespell.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
name: codespell

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
call-codespell:
uses: telekom-mms/.github/.github/workflows/codespell.yml@main
12 changes: 12 additions & 0 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
name: linting

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
call-linting:
uses: telekom-mms/.github/.github/workflows/terraform_linting.yml@main
19 changes: 19 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: release

on:
push:
branches: [main]

env:
TEMPLATE_REPOSITORY: telekom-mms/terraform-template

jobs:
call-readme:
if: github.repository != '$TEMPLATE_REPOSITORY'
uses: telekom-mms/.github/.github/workflows/terraform_docs.yml@main
call-release:
if: github.repository != '$TEMPLATE_REPOSITORY'
uses: telekom-mms/.github/.github/workflows/release.yml@main
with:
files: README.md
18 changes: 18 additions & 0 deletions .github/workflows/settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
name: settings

on:
push:
branches: [main]
schedule:
- cron: '0 10 * * *'

env:
TEMPLATE_REPOSITORY: telekom-mms/terraform-template

jobs:
call-settings:
if: github.repository != '$TEMPLATE_REPOSITORY'
uses: telekom-mms/.github/.github/workflows/github_repository.yml@main
secrets:
GH_APP_CREDENTIALS_TOKEN: ${{ secrets.GH_APP_CREDENTIALS_TOKEN }}
18 changes: 18 additions & 0 deletions .github/workflows/terrascan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
name: terrascan

on:
pull_request:
branches: [main]

env:
TEMPLATE_REPOSITORY: telekom-mms/terraform-template

jobs:
call-terrascan:
if: github.repository != '$TEMPLATE_REPOSITORY'
uses: telekom-mms/.github/.github/workflows/terrascan.yml@main
with:
iac_type: terraform
policy_type: all
non_recursive: true
21 changes: 21 additions & 0 deletions .github/workflows/terratest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
name: terratest

on:
pull_request:
branches: [main]

env:
TEMPLATE_REPOSITORY: telekom-mms/terraform-template

jobs:
call-terratest:
if: github.repository != '$TEMPLATE_REPOSITORY'
uses: telekom-mms/.github/.github/workflows/terratest.yml@main
with:
test: azure
secrets:
azure_client_id: ${{ secrets.AZURE_CLIENT_ID }}
azure_client_secret: ${{ secrets.AZURE_CLIENT_SECRET }}
azure_subscription_id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
azure_tenant_id: ${{ secrets.AZURE_TENANT_ID }}
63 changes: 63 additions & 0 deletions .terraform-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
formatter: template

sections:
show:
- header
- requirements
- providers
- data-sources
- resources
- modules
- inputs
- outputs
- footer

content: |-
{{ .Header }}
_<-- This file is autogenerated, please do not change. -->_
{{ .Requirements }}
{{ .Providers }}
{{ .Resources }}
{{ .Inputs }}
{{ .Outputs }}
## Examples
Minimal configuration to install the desired resources with the module
```hcl
{{ include "examples/min_main.tf" }}
```
Advanced configuration to install the desired resources with the module
```hcl
{{ include "examples/full_main.tf" }}
```
output:
mode: replace
template: |-
<!-- BEGIN_TF_DOCS -->
{{ .Content }}
<!-- END_TF_DOCS -->
sort:
enabled: true
by: required

settings:
anchor: false
escape: false
hide-empty: true
html: true
indent: 2
read-comments: true
required: true
type: true
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Changelog



\* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*
Loading

0 comments on commit 2d39e83

Please sign in to comment.