generated from dabble-of-devops-bioanalyze/terraform-example-module
-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
97 changed files
with
29,079 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,3 +24,6 @@ test.log | |
.kube | ||
|
||
_templates/test/tests/__pycache__/ | ||
|
||
examples/**/tests/__pycache__/ | ||
pre-commit-terraform |
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Sphinx build info version 1 | ||
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. | ||
config: 85cfab65d0883ed4cd1004173b204fd1 | ||
tags: 645f666f9bcd5a90fca523b33c5a78b7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
_templates/examples/nginx/{{cookiecutter.project_name}}/_html/backend.tf.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<div class="highlight"><pre><span></span><span class="nb">terraform</span> <span class="p">{</span> | ||
<span class="na">required_version</span> <span class="o">=</span> <span class="s2">">= 0.12.2"</span> | ||
|
||
<span class="kr">backend</span> <span class="nv">"s3"</span> <span class="p">{</span> | ||
<span class="na">region</span> <span class="o">=</span> <span class="s2">"us-east-1"</span> | ||
<span class="na">bucket</span> <span class="o">=</span> <span class="s2">"bioanalyze-test-terraform-state"</span> | ||
<span class="na">key</span> <span class="o">=</span> <span class="s2">"bioanalyze-test-helm-nginx"</span> | ||
<span class="na">dynamodb_table</span> <span class="o">=</span> <span class="s2">"bioanalyze-test-terraform-state-lock"</span> | ||
<span class="na">profile</span> <span class="o">=</span> <span class="s2">""</span> | ||
<span class="na">role_arn</span> <span class="o">=</span> <span class="s2">""</span> | ||
<span class="na">encrypt</span> <span class="o">=</span> <span class="s2">"true"</span> | ||
<span class="p">}</span> | ||
<span class="p">}</span> | ||
</pre></div> |
280 changes: 280 additions & 0 deletions
280
_templates/examples/nginx/{{cookiecutter.project_name}}/_html/context.tf.html
Large diffs are not rendered by default.
Oops, something went wrong.
220 changes: 220 additions & 0 deletions
220
_templates/examples/nginx/{{cookiecutter.project_name}}/_html/main.tf.html
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 2 additions & 0 deletions
2
_templates/examples/nginx/{{cookiecutter.project_name}}/_html/outputs.tf.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<div class="highlight"><pre><span></span> | ||
</pre></div> |
158 changes: 158 additions & 0 deletions
158
_templates/examples/nginx/{{cookiecutter.project_name}}/_html/variables.tf.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,158 @@ | ||
<div class="highlight"><pre><span></span><span class="c1">##################################################</span> | ||
<span class="c1"># Variables</span> | ||
<span class="c1"># This file has various groupings of variables</span> | ||
<span class="c1">##################################################</span> | ||
|
||
<span class="c1">##################################################</span> | ||
<span class="c1"># AWS</span> | ||
<span class="c1">##################################################</span> | ||
|
||
<span class="kr">variable</span> <span class="nv">"region"</span> <span class="p">{</span> | ||
<span class="na">type</span> <span class="o">=</span> <span class="kt">string</span> | ||
<span class="na">default</span> <span class="o">=</span> <span class="s2">"us-east-1"</span> | ||
<span class="na">description</span> <span class="o">=</span> <span class="s2">"AWS Region"</span> | ||
<span class="p">}</span> | ||
|
||
<span class="kr">variable</span> <span class="nv">"aws_availability_zones_exclude"</span> <span class="p">{</span> | ||
<span class="na">description</span> <span class="o">=</span> <span class="s2">"availability zones to exclude"</span> | ||
<span class="na">type</span> <span class="o">=</span> <span class="nf">list</span><span class="p">(</span><span class="err">any</span><span class="p">)</span> | ||
<span class="na">default</span> <span class="o">=</span> <span class="p">[]</span> | ||
<span class="p">}</span><span class="c1"></span> | ||
|
||
<span class="c1">##################################################</span> | ||
<span class="c1"># AWS EKS</span> | ||
<span class="c1">##################################################</span> | ||
|
||
<span class="kr">variable</span> <span class="nv">"eks_node_groups"</span> <span class="p">{</span> | ||
<span class="na">type</span> <span class="o">=</span> <span class="nf">list</span><span class="p">(</span><span class="kt">object</span><span class="p">({</span> | ||
<span class="na">instance_types</span> <span class="o">=</span> <span class="nf">list</span><span class="p">(</span><span class="kt">string</span><span class="p">)</span> | ||
<span class="na">desired_size</span> <span class="o">=</span> <span class="kt">number</span> | ||
<span class="na">min_size</span> <span class="o">=</span> <span class="kt">number</span> | ||
<span class="na">max_size</span> <span class="o">=</span> <span class="kt">number</span> | ||
<span class="na">disk_size</span> <span class="o">=</span> <span class="kt">number</span> | ||
<span class="na">name</span> <span class="o">=</span> <span class="kt">string</span> | ||
<span class="p">}))</span> | ||
<span class="na">description</span> <span class="o">=</span> <span class="s2">"EKS Node Groups"</span> | ||
<span class="na">default</span> <span class="o">=</span> <span class="p">[</span> | ||
<span class="p">{</span> | ||
<span class="na">name</span> <span class="o">=</span> <span class="s2">"node-group-1"</span> | ||
<span class="na">instance_types</span> <span class="o">=</span> <span class="p">[</span><span class="s2">"t3a.medium", "t3a.large", "t3a.2xlarge", "m4.10xlarge"</span><span class="p">]</span> | ||
<span class="na">desired_size</span> <span class="o">=</span> <span class="m">1</span> | ||
<span class="na">min_size</span> <span class="o">=</span> <span class="m">0</span> | ||
<span class="na">max_size</span> <span class="o">=</span> <span class="m">450</span> | ||
<span class="na">disk_size</span> <span class="o">=</span> <span class="m">50</span> | ||
<span class="p">}</span> | ||
<span class="p">]</span> | ||
<span class="p">}</span><span class="c1"></span> | ||
|
||
<span class="c1">##################################################</span> | ||
<span class="c1"># Helm Release Variables</span> | ||
<span class="c1"># corresponds to input to resource "helm_release"</span> | ||
<span class="c1">##################################################</span> | ||
|
||
<span class="c1"># name = var.helm_release_name</span> | ||
<span class="c1"># repository = "https://charts.bitnami.com/bitnami"</span> | ||
<span class="c1"># chart = "helm"</span> | ||
<span class="c1"># version = "11.0.8"</span> | ||
<span class="c1"># namespace = var.helm_namespace</span> | ||
<span class="c1"># create_namespace = true</span> | ||
<span class="c1"># wait = false</span> | ||
<span class="c1"># values = [file("helm_charts/helm/values.yaml")]</span> | ||
|
||
<span class="kr">variable</span> <span class="nv">"helm_release_name"</span> <span class="p">{</span> | ||
<span class="na">type</span> <span class="o">=</span> <span class="kt">string</span> | ||
<span class="na">description</span> <span class="o">=</span> <span class="s2">"helm release name"</span> | ||
<span class="na">default</span> <span class="o">=</span> <span class="s2">"helm"</span> | ||
<span class="p">}</span> | ||
|
||
<span class="kr">variable</span> <span class="nv">"helm_release_repository"</span> <span class="p">{</span> | ||
<span class="na">type</span> <span class="o">=</span> <span class="kt">string</span> | ||
<span class="na">description</span> <span class="o">=</span> <span class="s2">"helm release chart repository"</span> | ||
<span class="na">default</span> <span class="o">=</span> <span class="s2">"https://charts.bitnami.com/bitnami"</span> | ||
<span class="p">}</span> | ||
|
||
<span class="kr">variable</span> <span class="nv">"helm_release_chart"</span> <span class="p">{</span> | ||
<span class="na">type</span> <span class="o">=</span> <span class="kt">string</span> | ||
<span class="na">description</span> <span class="o">=</span> <span class="s2">"helm release chart"</span> | ||
<span class="na">default</span> <span class="o">=</span> <span class="s2">"airflow"</span> | ||
<span class="p">}</span> | ||
|
||
<span class="kr">variable</span> <span class="nv">"helm_release_namespace"</span> <span class="p">{</span> | ||
<span class="na">type</span> <span class="o">=</span> <span class="kt">string</span> | ||
<span class="na">description</span> <span class="o">=</span> <span class="s2">"helm release namespace"</span> | ||
<span class="na">default</span> <span class="o">=</span> <span class="s2">"default"</span> | ||
<span class="p">}</span> | ||
|
||
<span class="kr">variable</span> <span class="nv">"helm_release_version"</span> <span class="p">{</span> | ||
<span class="na">type</span> <span class="o">=</span> <span class="kt">string</span> | ||
<span class="na">description</span> <span class="o">=</span> <span class="s2">"helm release version"</span> | ||
<span class="na">default</span> <span class="o">=</span> <span class="s2">"11.0.8"</span> | ||
<span class="p">}</span> | ||
|
||
<span class="kr">variable</span> <span class="nv">"helm_release_wait"</span> <span class="p">{</span> | ||
<span class="na">description</span> <span class="o">=</span> <span class="s2">"Tell terraform to wait until the service comes up."</span> | ||
<span class="na">type</span> <span class="o">=</span> <span class="kt">bool</span> | ||
<span class="na">default</span> <span class="o">=</span> <span class="no">true</span> | ||
<span class="p">}</span> | ||
|
||
<span class="kr">variable</span> <span class="nv">"helm_release_create_namespace"</span> <span class="p">{</span> | ||
<span class="na">description</span> <span class="o">=</span> <span class="s2">"Create namespace if it does not exist"</span> | ||
<span class="na">type</span> <span class="o">=</span> <span class="kt">bool</span> | ||
<span class="na">default</span> <span class="o">=</span> <span class="no">true</span> | ||
<span class="p">}</span> | ||
|
||
<span class="kr">variable</span> <span class="nv">"helm_release_values_dir"</span> <span class="p">{</span> | ||
<span class="na">type</span> <span class="o">=</span> <span class="kt">string</span> | ||
<span class="na">description</span> <span class="o">=</span> <span class="s2">"Directory to put rendered values template files or additional keys. Should be helm_charts/{helm_release_name}"</span> | ||
<span class="na">default</span> <span class="o">=</span> <span class="s2">"helm_charts"</span> | ||
<span class="p">}</span> | ||
|
||
<span class="kr">variable</span> <span class="nv">"helm_release_values_files"</span> <span class="p">{</span> | ||
<span class="na">type</span> <span class="o">=</span> <span class="nf">list</span><span class="p">(</span><span class="kt">string</span><span class="p">)</span> | ||
<span class="na">description</span> <span class="o">=</span> <span class="s2">"helm release values files - paths values files to add to helm install --values {}"</span> | ||
<span class="na">default</span> <span class="o">=</span> <span class="p">[]</span> | ||
<span class="p">}</span> | ||
|
||
<span class="kr">variable</span> <span class="nv">"helm_release_merged_values_file"</span> <span class="p">{</span> | ||
<span class="na">type</span> <span class="o">=</span> <span class="kt">string</span> | ||
<span class="na">description</span> <span class="o">=</span> <span class="s2">"Path to merged helm files. This path must exist before the module is invoked."</span> | ||
<span class="na">default</span> <span class="o">=</span> <span class="s2">""</span> | ||
<span class="p">}</span><span class="c1"></span> | ||
|
||
<span class="c1">##################################################</span> | ||
<span class="c1"># Helm Release Variables - Enable SSL</span> | ||
<span class="c1"># corresponds to input to resource "helm_release"</span> | ||
<span class="c1">##################################################</span> | ||
|
||
<span class="kr">variable</span> <span class="nv">"enable_ssl"</span> <span class="p">{</span> | ||
<span class="na">description</span> <span class="o">=</span> <span class="s2">"Enable SSL Support?"</span> | ||
<span class="na">type</span> <span class="o">=</span> <span class="kt">bool</span> | ||
<span class="na">default</span> <span class="o">=</span> <span class="no">true</span> | ||
<span class="p">}</span><span class="c1"></span> | ||
|
||
<span class="c1"># these variables are only needed if enable_ssl == true</span> | ||
|
||
<span class="kr">variable</span> <span class="nv">"letsencrypt_email"</span> <span class="p">{</span> | ||
<span class="na">type</span> <span class="o">=</span> <span class="kt">string</span> | ||
<span class="na">description</span> <span class="o">=</span> <span class="s2">"Email to use for https setup. Not needed unless enable_ssl"</span> | ||
<span class="na">default</span> <span class="o">=</span> <span class="s2">"hello@gmail.com"</span> | ||
<span class="p">}</span> | ||
|
||
<span class="kr">variable</span> <span class="nv">"aws_route53_zone_name"</span> <span class="p">{</span> | ||
<span class="na">type</span> <span class="o">=</span> <span class="kt">string</span> | ||
<span class="na">description</span> <span class="o">=</span> <span class="s2">"Name of the zone to add records. Do not forget the trailing '.' - 'test.com.'"</span> | ||
<span class="na">default</span> <span class="o">=</span> <span class="s2">"test.com."</span> | ||
<span class="p">}</span> | ||
|
||
<span class="kr">variable</span> <span class="nv">"aws_route53_record_name"</span> <span class="p">{</span> | ||
<span class="na">type</span> <span class="o">=</span> <span class="kt">string</span> | ||
<span class="na">description</span> <span class="o">=</span> <span class="s2">"Record name to add to aws_route_53. Must be a valid subdomain - www,app,etc"</span> | ||
<span class="na">default</span> <span class="o">=</span> <span class="s2">"www"</span> | ||
<span class="p">}</span> | ||
|
||
<span class="kr">variable</span> <span class="nv">"run_tests"</span> <span class="p">{</span> | ||
<span class="na">type</span> <span class="o">=</span> <span class="kt">bool</span> | ||
<span class="na">description</span> <span class="o">=</span> <span class="s2">"Run pytests after install"</span> | ||
<span class="na">default</span> <span class="o">=</span> <span class="no">true</span> | ||
<span class="p">}</span> | ||
</pre></div> |
15 changes: 15 additions & 0 deletions
15
_templates/examples/nginx/{{cookiecutter.project_name}}/_html/versions.tf.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<div class="highlight"><pre><span></span><span class="nb">terraform</span> <span class="p">{</span> | ||
<span class="na">required_version</span> <span class="o">=</span> <span class="s2">">= 0.12.26"</span> | ||
|
||
<span class="nb">required_providers</span> <span class="p">{</span> | ||
<span class="nb">local</span> <span class="o">=</span> <span class="p">{</span> | ||
<span class="na">source</span> <span class="o">=</span> <span class="s2">"hashicorp/local"</span> | ||
<span class="na">version</span> <span class="o">=</span> <span class="s2">">= 1.2"</span> | ||
<span class="p">}</span> | ||
<span class="nb">http</span> <span class="o">=</span> <span class="p">{</span> | ||
<span class="na">source</span> <span class="o">=</span> <span class="s2">"hashicorp/http"</span> | ||
<span class="na">version</span> <span class="o">=</span> <span class="s2">">= 2.1.0"</span> | ||
<span class="p">}</span> | ||
<span class="p">}</span> | ||
<span class="p">}</span> | ||
</pre></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.