-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.rst.j2
81 lines (61 loc) · 3.11 KB
/
README.rst.j2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
{#- README.rst -#}
.. image:: https://github.com/gofrontier-com/azurerm-terraform-modules/actions/workflows/ci.yml/badge.svg
:target: https://github.com/gofrontier-com/azurerm-terraform-modules/actions/workflows/ci.yml
=========================
azurerm-terraform-modules
=========================
.. contents:: Table of Contents
:local:
-----
About
-----
This repository contains a collection of Terraform modules based on the
`Azure Provider <https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs>`_.
They're intended to be used as part of a
`module composition <https://developer.hashicorp.com/terraform/language/modules/develop/composition>`_
approach to Terraform use. The modules implement a standardised approach to naming and tagging,
are written to be `secure by default <https://www.ncsc.gov.uk/information/secure-default>`_
and include `Azure Monitor Diagnostic Setting <https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/monitor_diagnostic_setting>`_
resources where appropriate.
-----
Usage
-----
This repository maintains independent `semver <https://semver.org/>`_ versioning for each module,
and produces module-specific `releases <https://github.com/gofrontier-com/azurerm-terraform-modules/releases>`_.
This approach enables modules to be consumed independently of one another, and without the need for
Terraform to clone the entire repository.
To use a module, add a `module block <https://www.terraform.io/docs/language/modules/syntax.html>`_
and specify the source as a `module archive <https://developer.hashicorp.com/terraform/language/modules/sources#fetching-archives-over-http>`_
URL. The URL should be in the format:
``https://github.com/gofrontier-com/azurerm-terraform-modules/releases/download/[module-name]/[version]/module.tar.gz//src``
For example:
.. code:: hcl
module "resource_group" {
source = "https://github.com/gofrontier-com/azurerm-terraform-modules/releases/download/resource-group/1.0.0/module.tar.gz//src"
environment = "dev"
identifier = "k8s"
location = "uksouth"
zone = "shd"
tags = {
WorkloadType = "CustomerBankingLZ/container-platform"
}
}
See `Modules Overview <https://developer.hashicorp.com/terraform/language/modules>`_ for more information on Terraform Modules.
-------
Modules
-------
.. list-table::
:widths: 25 25 50
:header-rows: 1
* - Module name
- Latest version
- Source URL
{%- for module in modules %}
* - `{{ module.name }} <https://github.com/gofrontier-com/azurerm-terraform-modules/tree/main/modules/{{ module.name }}>`__
- `{{ module.version }} <https://github.com/gofrontier-com/azurerm-terraform-modules/releases/tag/{{ module.name }}%2F{{ module.version }}>`__
- ``https://github.com/gofrontier-com/azurerm-terraform-modules/releases/download/{{ module.name }}/{{ module.version }}/module.tar.gz//src``
{%- endfor %}
------------
Contributing
------------
We welcome contributions to this repository. Please see `CONTRIBUTING.md <https://github.com/gofrontier-com/azurerm-terraform-modules/tree/main/CONTRIBUTING.md>`_ for more information.