├── .editorconfig
├── .github
├── CODEOWNERS
├── ISSUE_TEMPLATE
│ ├── bug_report.md
│ ├── bug_report.yml
│ ├── config.yml
│ ├── feature_request.md
│ ├── feature_request.yml
│ └── question.md
├── PULL_REQUEST_TEMPLATE.md
├── auto-release.yml
├── mergify.yml
├── renovate.json
└── workflows
│ ├── feature-branch-chatops.yml
│ ├── feature-branch.yml
│ ├── release-branch.yml
│ ├── release-published.yml
│ └── scheduled.yml
├── .gitignore
├── .pre-commit-config.yaml
├── LICENSE
├── Makefile
├── README.md
├── README.yaml
├── context.tf
├── docs
├── targets.md
└── terraform.md
├── examples
└── complete
│ ├── config
│ ├── gbl-root.yaml
│ ├── ue2-testing.yaml
│ └── uw2-testing.yaml
│ ├── context.tf
│ ├── fixtures.us-east-2.tfvars
│ ├── main.tf
│ ├── outputs.tf
│ ├── projects
│ ├── example1
│ │ └── main.tf
│ ├── example2
│ │ └── main.tf
│ └── example3
│ │ └── main.tf
│ ├── variables.tf
│ └── versions.tf
├── main.tf
├── modules
├── environment
│ ├── main.tf
│ ├── outputs.tf
│ └── variables.tf
├── project
│ ├── main.tf
│ ├── outputs.tf
│ └── variables.tf
├── variables
│ ├── main.tf
│ ├── outputs.tf
│ └── variables.tf
└── workspaces
│ ├── main.tf
│ ├── outputs.tf
│ └── variables.tf
├── outputs.tf
├── test
├── .gitignore
├── Makefile
├── Makefile.alpine
└── src
│ ├── .gitignore
│ ├── Makefile
│ ├── examples_complete_test.go
│ ├── go.mod
│ └── go.sum
├── variables.tf
└── versions.tf
/.editorconfig:
--------------------------------------------------------------------------------
1 | # Unix-style newlines with a newline ending every file
2 | [*]
3 | charset = utf-8
4 | end_of_line = lf
5 | indent_size = 2
6 | indent_style = space
7 | insert_final_newline = true
8 | trim_trailing_whitespace = true
9 |
10 | [*.{tf,tfvars}]
11 | indent_size = 2
12 | indent_style = space
13 |
14 | [*.md]
15 | max_line_length = 0
16 | trim_trailing_whitespace = false
17 |
18 | # Override for Makefile
19 | [{Makefile, makefile, GNUmakefile, Makefile.*}]
20 | tab_width = 2
21 | indent_style = tab
22 | indent_size = 4
23 |
24 | [COMMIT_EDITMSG]
25 | max_line_length = 0
26 |
--------------------------------------------------------------------------------
/.github/CODEOWNERS:
--------------------------------------------------------------------------------
1 | # Use this file to define individuals or teams that are responsible for code in a repository.
2 | # Read more:
3 | #
4 | # Order is important: the last matching pattern has the highest precedence
5 |
6 | # These owners will be the default owners for everything
7 | * @cloudposse/engineering @cloudposse/contributors
8 |
9 | # Cloud Posse must review any changes to Makefiles
10 | **/Makefile @cloudposse/engineering
11 | **/Makefile.* @cloudposse/engineering
12 |
13 | # Cloud Posse must review any changes to GitHub actions
14 | .github/* @cloudposse/engineering
15 |
16 | # Cloud Posse must review any changes to standard context definition,
17 | # but some changes can be rubber-stamped.
18 | **/*.tf @cloudposse/engineering @cloudposse/contributors @cloudposse/approvers
19 | README.yaml @cloudposse/engineering @cloudposse/contributors @cloudposse/approvers
20 | README.md @cloudposse/engineering @cloudposse/contributors @cloudposse/approvers
21 | docs/*.md @cloudposse/engineering @cloudposse/contributors @cloudposse/approvers
22 |
23 | # Cloud Posse Admins must review all changes to CODEOWNERS or the mergify configuration
24 | .github/mergify.yml @cloudposse/admins
25 | .github/CODEOWNERS @cloudposse/admins
26 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/bug_report.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Bug report
3 | about: Create a report to help us improve
4 | title: ''
5 | labels: 'bug'
6 | assignees: ''
7 |
8 | ---
9 |
10 | Found a bug? Maybe our [Slack Community](https://slack.cloudposse.com) can help.
11 |
12 | [](https://slack.cloudposse.com)
13 |
14 | ## Describe the Bug
15 | A clear and concise description of what the bug is.
16 |
17 | ## Expected Behavior
18 | A clear and concise description of what you expected to happen.
19 |
20 | ## Steps to Reproduce
21 | Steps to reproduce the behavior:
22 | 1. Go to '...'
23 | 2. Run '....'
24 | 3. Enter '....'
25 | 4. See error
26 |
27 | ## Screenshots
28 | If applicable, add screenshots or logs to help explain your problem.
29 |
30 | ## Environment (please complete the following information):
31 |
32 | Anything that will help us triage the bug will help. Here are some ideas:
33 | - OS: [e.g. Linux, OSX, WSL, etc]
34 | - Version [e.g. 10.15]
35 |
36 | ## Additional Context
37 | Add any other context about the problem here.
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/bug_report.yml:
--------------------------------------------------------------------------------
1 | ---
2 | name: Bug report
3 | description: Create a report to help us improve
4 | labels: ["bug"]
5 | assignees: [""]
6 | body:
7 | - type: markdown
8 | attributes:
9 | value: |
10 | Found a bug?
11 |
12 | Please checkout our [Slack Community](https://slack.cloudposse.com)
13 | or visit our [Slack Archive](https://archive.sweetops.com/).
14 |
15 | [](https://slack.cloudposse.com)
16 |
17 | - type: textarea
18 | id: concise-description
19 | attributes:
20 | label: Describe the Bug
21 | description: A clear and concise description of what the bug is.
22 | placeholder: What is the bug about?
23 | validations:
24 | required: true
25 |
26 | - type: textarea
27 | id: expected
28 | attributes:
29 | label: Expected Behavior
30 | description: A clear and concise description of what you expected.
31 | placeholder: What happened?
32 | validations:
33 | required: true
34 |
35 | - type: textarea
36 | id: reproduction-steps
37 | attributes:
38 | label: Steps to Reproduce
39 | description: Steps to reproduce the behavior.
40 | placeholder: How do we reproduce it?
41 | validations:
42 | required: true
43 |
44 | - type: textarea
45 | id: screenshots
46 | attributes:
47 | label: Screenshots
48 | description: If applicable, add screenshots or logs to help explain.
49 | validations:
50 | required: false
51 |
52 | - type: textarea
53 | id: environment
54 | attributes:
55 | label: Environment
56 | description: Anything that will help us triage the bug.
57 | placeholder: |
58 | - OS: [e.g. Linux, OSX, WSL, etc]
59 | - Version [e.g. 10.15]
60 | - Module version
61 | - Terraform version
62 | validations:
63 | required: false
64 |
65 | - type: textarea
66 | id: additional
67 | attributes:
68 | label: Additional Context
69 | description: |
70 | Add any other context about the problem here.
71 | validations:
72 | required: false
73 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/config.yml:
--------------------------------------------------------------------------------
1 | blank_issues_enabled: false
2 |
3 | contact_links:
4 |
5 | - name: Community Slack Team
6 | url: https://cloudposse.com/slack/
7 | about: |-
8 | Please ask and answer questions here.
9 |
10 | - name: Office Hours
11 | url: https://cloudposse.com/office-hours/
12 | about: |-
13 | Join us every Wednesday for FREE Office Hours (lunch & learn).
14 |
15 | - name: DevOps Accelerator Program
16 | url: https://cloudposse.com/accelerate/
17 | about: |-
18 | Own your infrastructure in record time. We build it. You drive it.
19 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/feature_request.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Feature Request
3 | about: Suggest an idea for this project
4 | title: ''
5 | labels: 'feature request'
6 | assignees: ''
7 |
8 | ---
9 |
10 | Have a question? Please checkout our [Slack Community](https://slack.cloudposse.com) or visit our [Slack Archive](https://archive.sweetops.com/).
11 |
12 | [](https://slack.cloudposse.com)
13 |
14 | ## Describe the Feature
15 |
16 | A clear and concise description of what the bug is.
17 |
18 | ## Expected Behavior
19 |
20 | A clear and concise description of what you expected to happen.
21 |
22 | ## Use Case
23 |
24 | Is your feature request related to a problem/challenge you are trying to solve? Please provide some additional context of why this feature or capability will be valuable.
25 |
26 | ## Describe Ideal Solution
27 |
28 | A clear and concise description of what you want to happen. If you don't know, that's okay.
29 |
30 | ## Alternatives Considered
31 |
32 | Explain what alternative solutions or features you've considered.
33 |
34 | ## Additional Context
35 |
36 | Add any other context or screenshots about the feature request here.
37 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/feature_request.yml:
--------------------------------------------------------------------------------
1 | ---
2 | name: Feature Request
3 | description: Suggest an idea for this project
4 | labels: ["feature request"]
5 | assignees: [""]
6 | body:
7 | - type: markdown
8 | attributes:
9 | value: |
10 | Have a question?
11 |
12 | Please checkout our [Slack Community](https://slack.cloudposse.com)
13 | or visit our [Slack Archive](https://archive.sweetops.com/).
14 |
15 | [](https://slack.cloudposse.com)
16 |
17 | - type: textarea
18 | id: concise-description
19 | attributes:
20 | label: Describe the Feature
21 | description: A clear and concise description of what the feature is.
22 | placeholder: What is the feature about?
23 | validations:
24 | required: true
25 |
26 | - type: textarea
27 | id: expected
28 | attributes:
29 | label: Expected Behavior
30 | description: A clear and concise description of what you expected.
31 | placeholder: What happened?
32 | validations:
33 | required: true
34 |
35 | - type: textarea
36 | id: use-case
37 | attributes:
38 | label: Use Case
39 | description: |
40 | Is your feature request related to a problem/challenge you are trying
41 | to solve?
42 |
43 | Please provide some additional context of why this feature or
44 | capability will be valuable.
45 | validations:
46 | required: true
47 |
48 | - type: textarea
49 | id: ideal-solution
50 | attributes:
51 | label: Describe Ideal Solution
52 | description: A clear and concise description of what you want to happen.
53 | validations:
54 | required: true
55 |
56 | - type: textarea
57 | id: alternatives-considered
58 | attributes:
59 | label: Alternatives Considered
60 | description: Explain alternative solutions or features considered.
61 | validations:
62 | required: false
63 |
64 | - type: textarea
65 | id: additional
66 | attributes:
67 | label: Additional Context
68 | description: |
69 | Add any other context about the problem here.
70 | validations:
71 | required: false
72 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/question.md:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cloudposse-archives/terraform-tfe-cloud-infrastructure-automation/e8296fbc0911280628cffd96127ed66c8d8192c1/.github/ISSUE_TEMPLATE/question.md
--------------------------------------------------------------------------------
/.github/PULL_REQUEST_TEMPLATE.md:
--------------------------------------------------------------------------------
1 | ## what
2 |
3 |
7 |
8 | ## why
9 |
10 |
15 |
16 | ## references
17 |
18 |
22 |
--------------------------------------------------------------------------------
/.github/auto-release.yml:
--------------------------------------------------------------------------------
1 | name-template: 'v$RESOLVED_VERSION'
2 | tag-template: '$RESOLVED_VERSION'
3 | version-template: '$MAJOR.$MINOR.$PATCH'
4 | version-resolver:
5 | major:
6 | labels:
7 | - 'major'
8 | minor:
9 | labels:
10 | - 'minor'
11 | - 'enhancement'
12 | patch:
13 | labels:
14 | - 'auto-update'
15 | - 'patch'
16 | - 'fix'
17 | - 'bugfix'
18 | - 'bug'
19 | - 'hotfix'
20 | default: 'minor'
21 | filter-by-commitish: true
22 |
23 | categories:
24 | - title: '🚀 Enhancements'
25 | labels:
26 | - 'enhancement'
27 | - 'patch'
28 | - title: '🐛 Bug Fixes'
29 | labels:
30 | - 'fix'
31 | - 'bugfix'
32 | - 'bug'
33 | - 'hotfix'
34 | - title: '🤖 Automatic Updates'
35 | labels:
36 | - 'auto-update'
37 |
38 | change-template: |
39 |
40 | $TITLE @$AUTHOR (#$NUMBER)
41 |
42 | $BODY
43 |
44 |
45 | template: |
46 | $CHANGES
47 |
48 | replacers:
49 | # Remove irrelevant information from Renovate bot
50 | - search: '/(?<=---\s)\s*^#.*(Renovate configuration|Configuration)(?:.|\n)*?This PR has been generated .*/gm'
51 | replace: ''
52 | # Remove Renovate bot banner image
53 | - search: '/\[!\[[^\]]*Renovate\][^\]]*\](\([^)]*\))?\s*\n+/gm'
54 | replace: ''
55 |
--------------------------------------------------------------------------------
/.github/mergify.yml:
--------------------------------------------------------------------------------
1 | # https://docs.mergify.io/conditions.html
2 | # https://docs.mergify.io/actions.html
3 | pull_request_rules:
4 | - name: "approve automated PRs that have passed checks"
5 | conditions:
6 | - "author~=^(cloudpossebot|renovate\\[bot\\])$"
7 | - "-closed"
8 | - "head~=^(auto-update|renovate)/.*"
9 | - "check-success=test/bats"
10 | - "check-success=test/readme"
11 | - "check-success=test/terratest"
12 | - "check-success=validate-codeowners"
13 | - or:
14 | - "base=master"
15 | - "base=main"
16 | - "base~=^release/v\\d{1,2}$"
17 |
18 | actions:
19 | review:
20 | type: "APPROVE"
21 | bot_account: "cloudposse-mergebot"
22 | message: "We've automatically approved this PR because the checks from the automated Pull Request have passed."
23 |
24 | - name: "merge automated PRs when approved and tests pass"
25 | conditions:
26 | - "author~=^(cloudpossebot|renovate\\[bot\\])$"
27 | - "-closed"
28 | - "head~=^(auto-update|renovate)/.*"
29 | - "check-success=test/bats"
30 | - "check-success=test/readme"
31 | - "check-success=test/terratest"
32 | - "check-success=validate-codeowners"
33 | - "#approved-reviews-by>=1"
34 | - "#changes-requested-reviews-by=0"
35 | - "#commented-reviews-by=0"
36 | - or:
37 | - "base=master"
38 | - "base=main"
39 | - "base~=^release/v\\d{1,2}$"
40 |
41 | actions:
42 | merge:
43 | method: "squash"
44 |
45 | - name: "delete the head branch after merge"
46 | conditions:
47 | - "merged"
48 | actions:
49 | delete_head_branch: {}
50 |
51 | - name: "ask to resolve conflict"
52 | conditions:
53 | - "conflict"
54 | - "-closed"
55 | actions:
56 | comment:
57 | message: "This pull request is now in conflict. Could you fix it @{{author}}? 🙏"
58 |
59 | - name: "remove outdated reviews"
60 | conditions:
61 | - or:
62 | - "base=master"
63 | - "base=main"
64 | - "base~=^release/v\\d{1,2}$"
65 | actions:
66 | dismiss_reviews:
67 | changes_requested: true
68 | approved: true
69 | message: "This Pull Request has been updated, so we're dismissing all reviews."
70 |
71 | - name: "close Pull Requests without files changed"
72 | conditions:
73 | - "#files=0"
74 | actions:
75 | close:
76 | message: "This pull request has been automatically closed by Mergify because there are no longer any changes."
77 |
--------------------------------------------------------------------------------
/.github/renovate.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": [
3 | "config:base",
4 | ":preserveSemverRanges"
5 | ],
6 | "baseBranches": ["main", "master", "/^release\\/v\\d{1,2}$/"],
7 | "labels": ["auto-update"],
8 | "dependencyDashboardAutoclose": true,
9 | "enabledManagers": ["terraform"],
10 | "terraform": {
11 | "ignorePaths": ["**/context.tf", "examples/**"]
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/.github/workflows/feature-branch-chatops.yml:
--------------------------------------------------------------------------------
1 | ---
2 | name: feature-branch-chatops
3 | on:
4 | issue_comment:
5 | types: [created]
6 |
7 | permissions:
8 | pull-requests: write
9 | id-token: write
10 | contents: write
11 |
12 | jobs:
13 | terraform-module:
14 | uses: cloudposse/github-actions-workflows-terraform-module/.github/workflows/feature-branch-chatops.yml@main
15 | secrets:
16 | github_access_token: ${{ secrets.REPO_ACCESS_TOKEN }}
17 |
--------------------------------------------------------------------------------
/.github/workflows/feature-branch.yml:
--------------------------------------------------------------------------------
1 | ---
2 | name: feature-branch
3 | on:
4 | pull_request:
5 | branches:
6 | - main
7 | - release/**
8 | types: [opened, synchronize, reopened, labeled, unlabeled]
9 |
10 | permissions:
11 | pull-requests: write
12 | id-token: write
13 | contents: write
14 |
15 | jobs:
16 | terraform-module:
17 | uses: cloudposse/github-actions-workflows-terraform-module/.github/workflows/feature-branch.yml@main
18 | secrets:
19 | github_access_token: ${{ secrets.REPO_ACCESS_TOKEN }}
20 |
--------------------------------------------------------------------------------
/.github/workflows/release-branch.yml:
--------------------------------------------------------------------------------
1 | ---
2 | name: release-branch
3 | on:
4 | push:
5 | branches:
6 | - main
7 | - release/**
8 | paths-ignore:
9 | - '.github/**'
10 | - 'docs/**'
11 | - 'examples/**'
12 | - 'test/**'
13 |
14 | permissions:
15 | contents: write
16 | id-token: write
17 |
18 | jobs:
19 | terraform-module:
20 | uses: cloudposse/github-actions-workflows-terraform-module/.github/workflows/release-branch.yml@main
21 | secrets:
22 | github_access_token: ${{ secrets.REPO_ACCESS_TOKEN }}
23 |
--------------------------------------------------------------------------------
/.github/workflows/release-published.yml:
--------------------------------------------------------------------------------
1 | ---
2 | name: release-published
3 | on:
4 | release:
5 | types:
6 | - published
7 |
8 | permissions:
9 | contents: write
10 | id-token: write
11 |
12 | jobs:
13 | terraform-module:
14 | uses: cloudposse/github-actions-workflows-terraform-module/.github/workflows/release.yml@main
15 |
--------------------------------------------------------------------------------
/.github/workflows/scheduled.yml:
--------------------------------------------------------------------------------
1 | ---
2 | name: scheduled
3 | on:
4 | workflow_dispatch: { } # Allows manually trigger this workflow
5 | schedule:
6 | - cron: "0 3 * * *"
7 |
8 | permissions:
9 | pull-requests: write
10 | id-token: write
11 | contents: write
12 |
13 | jobs:
14 | scheduled:
15 | uses: cloudposse/github-actions-workflows-terraform-module/.github/workflows/scheduled.yml@main
16 | secrets:
17 | github_access_token: ${{ secrets.REPO_ACCESS_TOKEN }}
18 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Local .terraform directories
2 | **/.terraform/*
3 |
4 | # .tfstate files
5 | *.tfstate
6 | *.tfstate.*
7 | .terraform
8 | .terraform.tfstate.lock.info
9 |
10 | **/.idea
11 | **/*.iml
12 |
13 | # Cloud Posse Build Harness https://github.com/cloudposse/build-harness
14 | **/.build-harness
15 | **/build-harness
16 |
17 | # Crash log files
18 | crash.log
19 | test.log
20 | .DS_Store
21 |
--------------------------------------------------------------------------------
/.pre-commit-config.yaml:
--------------------------------------------------------------------------------
1 | repos:
2 | - repo: https://github.com/pre-commit/pre-commit-hooks
3 | rev: v2.3.0
4 | hooks:
5 | - id: check-yaml
6 | - repo: git://github.com/antonbabenko/pre-commit-terraform
7 | rev: v1.45.0
8 | hooks:
9 | - id: terraform_fmt
10 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Apache License
2 | Version 2.0, January 2004
3 | http://www.apache.org/licenses/
4 |
5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6 |
7 | 1. Definitions.
8 |
9 | "License" shall mean the terms and conditions for use, reproduction,
10 | and distribution as defined by Sections 1 through 9 of this document.
11 |
12 | "Licensor" shall mean the copyright owner or entity authorized by
13 | the copyright owner that is granting the License.
14 |
15 | "Legal Entity" shall mean the union of the acting entity and all
16 | other entities that control, are controlled by, or are under common
17 | control with that entity. For the purposes of this definition,
18 | "control" means (i) the power, direct or indirect, to cause the
19 | direction or management of such entity, whether by contract or
20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the
21 | outstanding shares, or (iii) beneficial ownership of such entity.
22 |
23 | "You" (or "Your") shall mean an individual or Legal Entity
24 | exercising permissions granted by this License.
25 |
26 | "Source" form shall mean the preferred form for making modifications,
27 | including but not limited to software source code, documentation
28 | source, and configuration files.
29 |
30 | "Object" form shall mean any form resulting from mechanical
31 | transformation or translation of a Source form, including but
32 | not limited to compiled object code, generated documentation,
33 | and conversions to other media types.
34 |
35 | "Work" shall mean the work of authorship, whether in Source or
36 | Object form, made available under the License, as indicated by a
37 | copyright notice that is included in or attached to the work
38 | (an example is provided in the Appendix below).
39 |
40 | "Derivative Works" shall mean any work, whether in Source or Object
41 | form, that is based on (or derived from) the Work and for which the
42 | editorial revisions, annotations, elaborations, or other modifications
43 | represent, as a whole, an original work of authorship. For the purposes
44 | of this License, Derivative Works shall not include works that remain
45 | separable from, or merely link (or bind by name) to the interfaces of,
46 | the Work and Derivative Works thereof.
47 |
48 | "Contribution" shall mean any work of authorship, including
49 | the original version of the Work and any modifications or additions
50 | to that Work or Derivative Works thereof, that is intentionally
51 | submitted to Licensor for inclusion in the Work by the copyright owner
52 | or by an individual or Legal Entity authorized to submit on behalf of
53 | the copyright owner. For the purposes of this definition, "submitted"
54 | means any form of electronic, verbal, or written communication sent
55 | to the Licensor or its representatives, including but not limited to
56 | communication on electronic mailing lists, source code control systems,
57 | and issue tracking systems that are managed by, or on behalf of, the
58 | Licensor for the purpose of discussing and improving the Work, but
59 | excluding communication that is conspicuously marked or otherwise
60 | designated in writing by the copyright owner as "Not a Contribution."
61 |
62 | "Contributor" shall mean Licensor and any individual or Legal Entity
63 | on behalf of whom a Contribution has been received by Licensor and
64 | subsequently incorporated within the Work.
65 |
66 | 2. Grant of Copyright License. Subject to the terms and conditions of
67 | this License, each Contributor hereby grants to You a perpetual,
68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69 | copyright license to reproduce, prepare Derivative Works of,
70 | publicly display, publicly perform, sublicense, and distribute the
71 | Work and such Derivative Works in Source or Object form.
72 |
73 | 3. Grant of Patent License. Subject to the terms and conditions of
74 | this License, each Contributor hereby grants to You a perpetual,
75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76 | (except as stated in this section) patent license to make, have made,
77 | use, offer to sell, sell, import, and otherwise transfer the Work,
78 | where such license applies only to those patent claims licensable
79 | by such Contributor that are necessarily infringed by their
80 | Contribution(s) alone or by combination of their Contribution(s)
81 | with the Work to which such Contribution(s) was submitted. If You
82 | institute patent litigation against any entity (including a
83 | cross-claim or counterclaim in a lawsuit) alleging that the Work
84 | or a Contribution incorporated within the Work constitutes direct
85 | or contributory patent infringement, then any patent licenses
86 | granted to You under this License for that Work shall terminate
87 | as of the date such litigation is filed.
88 |
89 | 4. Redistribution. You may reproduce and distribute copies of the
90 | Work or Derivative Works thereof in any medium, with or without
91 | modifications, and in Source or Object form, provided that You
92 | meet the following conditions:
93 |
94 | (a) You must give any other recipients of the Work or
95 | Derivative Works a copy of this License; and
96 |
97 | (b) You must cause any modified files to carry prominent notices
98 | stating that You changed the files; and
99 |
100 | (c) You must retain, in the Source form of any Derivative Works
101 | that You distribute, all copyright, patent, trademark, and
102 | attribution notices from the Source form of the Work,
103 | excluding those notices that do not pertain to any part of
104 | the Derivative Works; and
105 |
106 | (d) If the Work includes a "NOTICE" text file as part of its
107 | distribution, then any Derivative Works that You distribute must
108 | include a readable copy of the attribution notices contained
109 | within such NOTICE file, excluding those notices that do not
110 | pertain to any part of the Derivative Works, in at least one
111 | of the following places: within a NOTICE text file distributed
112 | as part of the Derivative Works; within the Source form or
113 | documentation, if provided along with the Derivative Works; or,
114 | within a display generated by the Derivative Works, if and
115 | wherever such third-party notices normally appear. The contents
116 | of the NOTICE file are for informational purposes only and
117 | do not modify the License. You may add Your own attribution
118 | notices within Derivative Works that You distribute, alongside
119 | or as an addendum to the NOTICE text from the Work, provided
120 | that such additional attribution notices cannot be construed
121 | as modifying the License.
122 |
123 | You may add Your own copyright statement to Your modifications and
124 | may provide additional or different license terms and conditions
125 | for use, reproduction, or distribution of Your modifications, or
126 | for any such Derivative Works as a whole, provided Your use,
127 | reproduction, and distribution of the Work otherwise complies with
128 | the conditions stated in this License.
129 |
130 | 5. Submission of Contributions. Unless You explicitly state otherwise,
131 | any Contribution intentionally submitted for inclusion in the Work
132 | by You to the Licensor shall be under the terms and conditions of
133 | this License, without any additional terms or conditions.
134 | Notwithstanding the above, nothing herein shall supersede or modify
135 | the terms of any separate license agreement you may have executed
136 | with Licensor regarding such Contributions.
137 |
138 | 6. Trademarks. This License does not grant permission to use the trade
139 | names, trademarks, service marks, or product names of the Licensor,
140 | except as required for reasonable and customary use in describing the
141 | origin of the Work and reproducing the content of the NOTICE file.
142 |
143 | 7. Disclaimer of Warranty. Unless required by applicable law or
144 | agreed to in writing, Licensor provides the Work (and each
145 | Contributor provides its Contributions) on an "AS IS" BASIS,
146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147 | implied, including, without limitation, any warranties or conditions
148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149 | PARTICULAR PURPOSE. You are solely responsible for determining the
150 | appropriateness of using or redistributing the Work and assume any
151 | risks associated with Your exercise of permissions under this License.
152 |
153 | 8. Limitation of Liability. In no event and under no legal theory,
154 | whether in tort (including negligence), contract, or otherwise,
155 | unless required by applicable law (such as deliberate and grossly
156 | negligent acts) or agreed to in writing, shall any Contributor be
157 | liable to You for damages, including any direct, indirect, special,
158 | incidental, or consequential damages of any character arising as a
159 | result of this License or out of the use or inability to use the
160 | Work (including but not limited to damages for loss of goodwill,
161 | work stoppage, computer failure or malfunction, or any and all
162 | other commercial damages or losses), even if such Contributor
163 | has been advised of the possibility of such damages.
164 |
165 | 9. Accepting Warranty or Additional Liability. While redistributing
166 | the Work or Derivative Works thereof, You may choose to offer,
167 | and charge a fee for, acceptance of support, warranty, indemnity,
168 | or other liability obligations and/or rights consistent with this
169 | License. However, in accepting such obligations, You may act only
170 | on Your own behalf and on Your sole responsibility, not on behalf
171 | of any other Contributor, and only if You agree to indemnify,
172 | defend, and hold each Contributor harmless for any liability
173 | incurred by, or claims asserted against, such Contributor by reason
174 | of your accepting any such warranty or additional liability.
175 |
176 | END OF TERMS AND CONDITIONS
177 |
178 | APPENDIX: How to apply the Apache License to your work.
179 |
180 | To apply the Apache License to your work, attach the following
181 | boilerplate notice, with the fields enclosed by brackets "[]"
182 | replaced with your own identifying information. (Don't include
183 | the brackets!) The text should be enclosed in the appropriate
184 | comment syntax for the file format. We also recommend that a
185 | file or class name and description of purpose be included on the
186 | same "printed page" as the copyright notice for easier
187 | identification within third-party archives.
188 |
189 | Copyright 2020 Cloud Posse, LLC
190 |
191 | Licensed under the Apache License, Version 2.0 (the "License");
192 | you may not use this file except in compliance with the License.
193 | You may obtain a copy of the License at
194 |
195 | http://www.apache.org/licenses/LICENSE-2.0
196 |
197 | Unless required by applicable law or agreed to in writing, software
198 | distributed under the License is distributed on an "AS IS" BASIS,
199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200 | See the License for the specific language governing permissions and
201 | limitations under the License.
202 |
--------------------------------------------------------------------------------
/Makefile:
--------------------------------------------------------------------------------
1 | SHELL := /bin/bash
2 |
3 | # List of targets the `readme` target should call before generating the readme
4 | export README_DEPS ?= docs/targets.md docs/terraform.md
5 |
6 | -include $(shell curl -sSL -o .build-harness "https://git.io/build-harness"; echo .build-harness)
7 |
8 | ## Lint terraform code
9 | lint:
10 | $(SELF) terraform/install terraform/get-modules terraform/get-plugins terraform/lint terraform/validate
11 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 |
2 |
3 | # terraform-tfe-cloud-infrastructure-automation
4 |
5 | [](https://github.com/cloudposse/terraform-tfe-cloud-infrastructure-automation/releases/latest) [](https://slack.cloudposse.com) [](https://ask.sweetops.com/)
6 |
7 |
8 | [![README Header][readme_header_img]][readme_header_link]
9 |
10 | [![Cloud Posse][logo]](https://cpco.io/homepage)
11 |
12 |
32 |
33 | Terraform module to provision workspaces & configurations in Terraform Cloud via YAML configuration.
34 |
35 | NOTE: Requires [Terraform Cloud or Terraform Enterprise](https://www.hashicorp.com/products/terraform/pricing).
36 |
37 | ---
38 |
39 | This project is part of our comprehensive ["SweetOps"](https://cpco.io/sweetops) approach towards DevOps.
40 | [
][share_email]
41 | [
][share_googleplus]
42 | [
][share_facebook]
43 | [
][share_reddit]
44 | [
][share_linkedin]
45 | [
][share_twitter]
46 |
47 |
48 | [][terraform_modules]
49 |
50 |
51 |
52 | It's 100% Open Source and licensed under the [APACHE2](LICENSE).
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 | We literally have [*hundreds of terraform modules*][terraform_modules] that are Open Source and well-maintained. Check them out!
61 |
62 |
63 |
64 |
65 |
66 |
67 | ## Security & Compliance [
](https://bridgecrew.io/)
68 |
69 | Security scanning is graciously provided by Bridgecrew. Bridgecrew is the leading fully hosted, cloud-native solution providing continuous Terraform security and compliance.
70 |
71 | | Benchmark | Description |
72 | |--------|---------------|
73 | | [](https://www.bridgecrew.cloud/link/badge?vcs=github&fullRepo=cloudposse%2Fterraform-tfe-cloud-infrastructure-automation&benchmark=INFRASTRUCTURE+SECURITY) | Infrastructure Security Compliance |
74 | | [](https://www.bridgecrew.cloud/link/badge?vcs=github&fullRepo=cloudposse%2Fterraform-tfe-cloud-infrastructure-automation&benchmark=CIS+KUBERNETES+V1.5) | Center for Internet Security, KUBERNETES Compliance |
75 | | [](https://www.bridgecrew.cloud/link/badge?vcs=github&fullRepo=cloudposse%2Fterraform-tfe-cloud-infrastructure-automation&benchmark=CIS+AWS+V1.2) | Center for Internet Security, AWS Compliance |
76 | | [](https://www.bridgecrew.cloud/link/badge?vcs=github&fullRepo=cloudposse%2Fterraform-tfe-cloud-infrastructure-automation&benchmark=CIS+AZURE+V1.1) | Center for Internet Security, AZURE Compliance |
77 | | [](https://www.bridgecrew.cloud/link/badge?vcs=github&fullRepo=cloudposse%2Fterraform-tfe-cloud-infrastructure-automation&benchmark=PCI-DSS+V3.2) | Payment Card Industry Data Security Standards Compliance |
78 | | [](https://www.bridgecrew.cloud/link/badge?vcs=github&fullRepo=cloudposse%2Fterraform-tfe-cloud-infrastructure-automation&benchmark=NIST-800-53) | National Institute of Standards and Technology Compliance |
79 | | [](https://www.bridgecrew.cloud/link/badge?vcs=github&fullRepo=cloudposse%2Fterraform-tfe-cloud-infrastructure-automation&benchmark=ISO27001) | Information Security Management System, ISO/IEC 27001 Compliance |
80 | | [](https://www.bridgecrew.cloud/link/badge?vcs=github&fullRepo=cloudposse%2Fterraform-tfe-cloud-infrastructure-automation&benchmark=SOC2)| Service Organization Control 2 Compliance |
81 | | [](https://www.bridgecrew.cloud/link/badge?vcs=github&fullRepo=cloudposse%2Fterraform-tfe-cloud-infrastructure-automation&benchmark=CIS+GCP+V1.1) | Center for Internet Security, GCP Compliance |
82 | | [](https://www.bridgecrew.cloud/link/badge?vcs=github&fullRepo=cloudposse%2Fterraform-tfe-cloud-infrastructure-automation&benchmark=HIPAA) | Health Insurance Portability and Accountability Compliance |
83 |
84 |
85 |
86 | ## Usage
87 |
88 |
89 | **IMPORTANT:** We do not pin modules to versions in our examples because of the
90 | difficulty of keeping the versions in the documentation in sync with the latest released versions.
91 | We highly recommend that in your code you pin the version to the exact version you are
92 | using so that your infrastructure remains stable, and update versions in a
93 | systematic way so that they do not catch you by surprise.
94 |
95 | Also, because of a bug in the Terraform registry ([hashicorp/terraform#21417](https://github.com/hashicorp/terraform/issues/21417)),
96 | the registry shows many of our inputs as required when in fact they are optional.
97 | The table below correctly indicates which inputs are required.
98 |
99 |
100 | Here's how to invoke this example module in your projects:
101 |
102 | ```hcl
103 | provider "tfe" {
104 | version = ">= 0.21.0"
105 | }
106 |
107 | module "example" {
108 | source = "https://github.com/cloudposse/terraform-tfe-cloud-infrastructure-automation.git?ref=master"
109 |
110 | # Directory containing all YAML configurations
111 | config_file_path = "config"
112 | organization = var.organization
113 |
114 | vcs_repo = {
115 | branch = "main"
116 | ingress_submodules = true
117 | # We recommend exporting the `FOOBAR` environment variable instead of passing a variable
118 | oauth_token_id = var.oauth_token_id
119 | }
120 | }
121 | ```
122 |
123 |
124 |
125 |
126 | ## Examples
127 |
128 | Here is an example of using this module:
129 | - [`examples/complete`](https://github.com/cloudposse/terraform-tfe-cloud-infrastructure-automation/) - complete example of using this module
130 |
131 | We use YAML for the configuration files in order to separate configuration settings from business logic. It's also a portable format that can be used across multiple tools. Our convention is to name files by `$env-$stage.yaml` (e.g. `ue2-testing.yaml`), so for example an `$env` could be `ue2` (for `us-east-2`) and the `$stage` might be `testing`. Workspace names are derived from the `$env-$stage-$project`, which looks like `ue2-testing-eks`.
132 |
133 | ```yaml
134 | # Projects are all the top-level root modules
135 | projects:
136 | # Globals are exported as TF_VAR_... environment variables in every workspace
137 | globals:
138 | # Used to determine the name of the workspace (e.g. the 'testing' in 'ue2-testing')
139 | stage: testing
140 | # Used to determine the name of the workspace (e.g. the 'ue2' in 'ue2-testing')
141 | environment: ue2
142 |
143 | # The configuration file format is designed to be used across multiple tools.
144 | # All terraform projects should be listed under this section.
145 | terraform:
146 | # List one or more Terraform projects here
147 | first-project:
148 | # Controls whether or not this workspace should be created
149 | # NOTE: If set to 'false', you cannot reference this workspace via `triggers` in another workspace!
150 | workspace_enabled: true
151 | # Override the version of Terraform for this workspace (defaults to the latest in Terraform Cloud/Enterprise)
152 | terraform_version: 0.13.4
153 | # Controls the `auto_apply` setting within this workspace
154 | auto_apply: true
155 | # Optional filename triggers to match (default is *.tf)
156 | filename_triggers:
157 | - "*.*"
158 | # Add extra 'Run Triggers' to this workspace, beyond the parent workspace, which is created by default
159 | # These triggers mean this project workspace will be automatically planned if any of these workspaces are applied.
160 | triggers:
161 | - uw2-testing-example2
162 | - gbl-root-example1
163 | # Set the Terraform input variable values for this project. Complex types like maps and lists are supported.
164 | vars:
165 | my_input_var: "Hello world! This is a value that needs to be passed to my `first-project` Terraform project."
166 | # Every project should be uniquely named and correspond to a folder in the `projects/` directory
167 | second-project:
168 | workspace_enabled: true
169 | # Specify a custom project folder (defalts to the project name if not specified)
170 | custom_project_folder: my-custom-project-folder
171 | vars:
172 | my_input_var: "Hello world! This is another example!"
173 | ```
174 |
175 |
176 |
177 |
178 | ## Makefile Targets
179 | ```text
180 | Available targets:
181 |
182 | help Help screen
183 | help/all Display help for all targets
184 | help/short This help short screen
185 | lint Lint terraform code
186 |
187 | ```
188 |
189 |
190 | ## Requirements
191 |
192 | | Name | Version |
193 | |------|---------|
194 | | [terraform](#requirement\_terraform) | >= 0.13.0 |
195 | | [local](#requirement\_local) | >= 1.4 |
196 | | [random](#requirement\_random) | >= 2.2 |
197 | | [tfe](#requirement\_tfe) | >= 0.23.0 |
198 |
199 | ## Providers
200 |
201 | | Name | Version |
202 | |------|---------|
203 | | [tfe](#provider\_tfe) | >= 0.23.0 |
204 |
205 | ## Modules
206 |
207 | | Name | Source | Version |
208 | |------|--------|---------|
209 | | [tfc\_config](#module\_tfc\_config) | ./modules/workspaces | n/a |
210 | | [tfc\_environment](#module\_tfc\_environment) | ./modules/environment | n/a |
211 | | [this](#module\_this) | cloudposse/label/null | 0.22.1 |
212 |
213 | ## Resources
214 |
215 | | Name | Type |
216 | |------|------|
217 | | [tfe_run_trigger.this](https://registry.terraform.io/providers/hashicorp/tfe/latest/docs/resources/run_trigger) | resource |
218 |
219 | ## Inputs
220 |
221 | | Name | Description | Type | Default | Required |
222 | |------|-------------|------|---------|:--------:|
223 | | [additional\_tag\_map](#input\_additional\_tag\_map) | Additional tags for appending to tags\_as\_list\_of\_maps. Not added to `tags`. | `map(string)` | `{}` | no |
224 | | [attributes](#input\_attributes) | Additional attributes (e.g. `1`) | `list(string)` | `[]` | no |
225 | | [config\_auto\_apply](#input\_config\_auto\_apply) | Controls Terraform Cloud workspace auto-apply feature | `bool` | `true` | no |
226 | | [config\_file\_path](#input\_config\_file\_path) | Relative path to YAML config files | `string` | `null` | no |
227 | | [config\_file\_pattern](#input\_config\_file\_pattern) | File pattern used to locate configuration files | `string` | `"*.yaml"` | no |
228 | | [context](#input\_context) | Single object for setting entire context at once.
See description of individual variables for details.
Leave string and numeric variables as `null` to use default value.
Individual variable settings (non-null) override settings in context object,
except for attributes, tags, and additional\_tag\_map, which are merged. |
object({
enabled = bool
namespace = string
environment = string
stage = string
name = string
delimiter = string
attributes = list(string)
tags = map(string)
additional_tag_map = map(string)
regex_replace_chars = string
label_order = list(string)
id_length_limit = number
})
| {
"additional_tag_map": {},
"attributes": [],
"delimiter": null,
"enabled": true,
"environment": null,
"id_length_limit": null,
"label_order": [],
"name": null,
"namespace": null,
"regex_replace_chars": null,
"stage": null,
"tags": {}
}
| no |
229 | | [delimiter](#input\_delimiter) | Delimiter to be used between `namespace`, `environment`, `stage`, `name` and `attributes`.
Defaults to `-` (hyphen). Set to `""` to use no delimiter at all. | `string` | `null` | no |
230 | | [enabled](#input\_enabled) | Set to false to prevent the module from creating any resources | `bool` | `null` | no |
231 | | [environment](#input\_environment) | Environment, e.g. 'uw2', 'us-west-2', OR 'prod', 'staging', 'dev', 'UAT' | `string` | `null` | no |
232 | | [id\_length\_limit](#input\_id\_length\_limit) | Limit `id` to this many characters.
Set to `0` for unlimited length.
Set to `null` for default, which is `0`.
Does not affect `id_full`. | `number` | `null` | no |
233 | | [label\_order](#input\_label\_order) | The naming order of the id output and Name tag.
Defaults to ["namespace", "environment", "stage", "name", "attributes"].
You can omit any of the 5 elements, but at least one must be present. | `list(string)` | `null` | no |
234 | | [name](#input\_name) | Solution name, e.g. 'app' or 'jenkins' | `string` | `null` | no |
235 | | [namespace](#input\_namespace) | Namespace, which could be your organization name or abbreviation, e.g. 'eg' or 'cp' | `string` | `null` | no |
236 | | [organization](#input\_organization) | Name of the organization. | `string` | n/a | yes |
237 | | [projects\_path](#input\_projects\_path) | Project directory path relative to the repository root | `string` | `"projects"` | no |
238 | | [regex\_replace\_chars](#input\_regex\_replace\_chars) | Regex to replace chars with empty string in `namespace`, `environment`, `stage` and `name`.
If not set, `"/[^a-zA-Z0-9-]/"` is used to remove all characters other than hyphens, letters and digits. | `string` | `null` | no |
239 | | [stage](#input\_stage) | Stage, e.g. 'prod', 'staging', 'dev', OR 'source', 'build', 'test', 'deploy', 'release' | `string` | `null` | no |
240 | | [tags](#input\_tags) | Additional tags (e.g. `map('BusinessUnit','XYZ')` | `map(string)` | `{}` | no |
241 | | [terraform\_version](#input\_terraform\_version) | The version of Terraform to use for this workspace. Defaults to the latest available version. | `string` | `null` | no |
242 | | [tfc\_project\_path](#input\_tfc\_project\_path) | Name of the working directory where the top-level Terraform Cloud project resides (e.g. within `projects_path`). | `string` | `"tfc"` | no |
243 | | [top\_level\_workspace](#input\_top\_level\_workspace) | Name of the top-level configuration workspace in Terraform Cloud | `string` | `"tfc-config"` | no |
244 | | [vcs\_repo](#input\_vcs\_repo) | The VCS repository to configure. | `map(string)` | `{}` | no |
245 |
246 | ## Outputs
247 |
248 | | Name | Description |
249 | |------|-------------|
250 | | [environment\_workspaces](#output\_environment\_workspaces) | A list of environment workspaces & their configurations. |
251 | | [global\_workspace](#output\_global\_workspace) | Configuration information for the global workspace. |
252 | | [project\_workspaces](#output\_project\_workspaces) | A list of project workspaces & their configurations. |
253 |
254 |
255 |
256 |
257 | ## Share the Love
258 |
259 | Like this project? Please give it a ★ on [our GitHub](https://github.com/cloudposse/terraform-tfe-cloud-infrastructure-automation)! (it helps us **a lot**)
260 |
261 | Are you using this project or any of our other projects? Consider [leaving a testimonial][testimonial]. =)
262 |
263 |
264 |
265 | ## Related Projects
266 |
267 | Check out these related projects.
268 |
269 | - [terraform-kubernetes-tfc-cloud-agent](https://github.com/cloudposse/terraform-kubernetes-tfc-cloud-agent) - Installs the Terraform Cloud Agent on an existing Kubernetes cluster.
270 |
271 |
272 | ## References
273 |
274 | For additional context, refer to some of these links.
275 |
276 | - [Terraform Version Pinning](https://www.terraform.io/docs/configuration/terraform.html#specifying-a-required-terraform-version) - The required_version setting can be used to constrain which versions of the Terraform CLI can be used with your configuration
277 | - [Terraform Cloud](https://app.terraform.io/signup/account) - Terraform Cloud is an application that helps teams use Terraform together.
278 | - [Terraform Enterprise/Cloud Documentation](https://registry.terraform.io/providers/hashicorp/tfe/latest/docs) -
279 |
280 |
281 | ## Help
282 |
283 | **Got a question?** We got answers.
284 |
285 | File a GitHub [issue](https://github.com/cloudposse/terraform-tfe-cloud-infrastructure-automation/issues), send us an [email][email] or join our [Slack Community][slack].
286 |
287 | [![README Commercial Support][readme_commercial_support_img]][readme_commercial_support_link]
288 |
289 | ## DevOps Accelerator for Startups
290 |
291 |
292 | We are a [**DevOps Accelerator**][commercial_support]. We'll help you build your cloud infrastructure from the ground up so you can own it. Then we'll show you how to operate it and stick around for as long as you need us.
293 |
294 | [][commercial_support]
295 |
296 | Work directly with our team of DevOps experts via email, slack, and video conferencing.
297 |
298 | We deliver 10x the value for a fraction of the cost of a full-time engineer. Our track record is not even funny. If you want things done right and you need it done FAST, then we're your best bet.
299 |
300 | - **Reference Architecture.** You'll get everything you need from the ground up built using 100% infrastructure as code.
301 | - **Release Engineering.** You'll have end-to-end CI/CD with unlimited staging environments.
302 | - **Site Reliability Engineering.** You'll have total visibility into your apps and microservices.
303 | - **Security Baseline.** You'll have built-in governance with accountability and audit logs for all changes.
304 | - **GitOps.** You'll be able to operate your infrastructure via Pull Requests.
305 | - **Training.** You'll receive hands-on training so your team can operate what we build.
306 | - **Questions.** You'll have a direct line of communication between our teams via a Shared Slack channel.
307 | - **Troubleshooting.** You'll get help to triage when things aren't working.
308 | - **Code Reviews.** You'll receive constructive feedback on Pull Requests.
309 | - **Bug Fixes.** We'll rapidly work with you to fix any bugs in our projects.
310 |
311 | ## Slack Community
312 |
313 | Join our [Open Source Community][slack] on Slack. It's **FREE** for everyone! Our "SweetOps" community is where you get to talk with others who share a similar vision for how to rollout and manage infrastructure. This is the best place to talk shop, ask questions, solicit feedback, and work together as a community to build totally *sweet* infrastructure.
314 |
315 | ## Discourse Forums
316 |
317 | Participate in our [Discourse Forums][discourse]. Here you'll find answers to commonly asked questions. Most questions will be related to the enormous number of projects we support on our GitHub. Come here to collaborate on answers, find solutions, and get ideas about the products and services we value. It only takes a minute to get started! Just sign in with SSO using your GitHub account.
318 |
319 | ## Newsletter
320 |
321 | Sign up for [our newsletter][newsletter] that covers everything on our technology radar. Receive updates on what we're up to on GitHub as well as awesome new projects we discover.
322 |
323 | ## Office Hours
324 |
325 | [Join us every Wednesday via Zoom][office_hours] for our weekly "Lunch & Learn" sessions. It's **FREE** for everyone!
326 |
327 | [][office_hours]
328 |
329 | ## Contributing
330 |
331 | ### Bug Reports & Feature Requests
332 |
333 | Please use the [issue tracker](https://github.com/cloudposse/terraform-tfe-cloud-infrastructure-automation/issues) to report any bugs or file feature requests.
334 |
335 | ### Developing
336 |
337 | If you are interested in being a contributor and want to get involved in developing this project or [help out](https://cpco.io/help-out) with our other projects, we would love to hear from you! Shoot us an [email][email].
338 |
339 | In general, PRs are welcome. We follow the typical "fork-and-pull" Git workflow.
340 |
341 | 1. **Fork** the repo on GitHub
342 | 2. **Clone** the project to your own machine
343 | 3. **Commit** changes to your own branch
344 | 4. **Push** your work back up to your fork
345 | 5. Submit a **Pull Request** so that we can review your changes
346 |
347 | **NOTE:** Be sure to merge the latest changes from "upstream" before making a pull request!
348 |
349 |
350 |
351 | ## Copyrights
352 |
353 | Copyright © 2020-2023 [Cloud Posse, LLC](https://cloudposse.com)
354 |
355 |
356 |
357 |
358 |
359 | ## License
360 |
361 | [](https://opensource.org/licenses/Apache-2.0)
362 |
363 | See [LICENSE](LICENSE) for full details.
364 |
365 | ```text
366 | Licensed to the Apache Software Foundation (ASF) under one
367 | or more contributor license agreements. See the NOTICE file
368 | distributed with this work for additional information
369 | regarding copyright ownership. The ASF licenses this file
370 | to you under the Apache License, Version 2.0 (the
371 | "License"); you may not use this file except in compliance
372 | with the License. You may obtain a copy of the License at
373 |
374 | https://www.apache.org/licenses/LICENSE-2.0
375 |
376 | Unless required by applicable law or agreed to in writing,
377 | software distributed under the License is distributed on an
378 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
379 | KIND, either express or implied. See the License for the
380 | specific language governing permissions and limitations
381 | under the License.
382 | ```
383 |
384 |
385 |
386 |
387 |
388 |
389 |
390 |
391 |
392 | ## Trademarks
393 |
394 | All other trademarks referenced herein are the property of their respective owners.
395 |
396 | ## About
397 |
398 | This project is maintained and funded by [Cloud Posse, LLC][website]. Like it? Please let us know by [leaving a testimonial][testimonial]!
399 |
400 | [![Cloud Posse][logo]][website]
401 |
402 | We're a [DevOps Professional Services][hire] company based in Los Angeles, CA. We ❤️ [Open Source Software][we_love_open_source].
403 |
404 | We offer [paid support][commercial_support] on all of our projects.
405 |
406 | Check out [our other projects][github], [follow us on twitter][twitter], [apply for a job][jobs], or [hire us][hire] to help with your cloud strategy and implementation.
407 |
408 |
409 |
410 | ### Contributors
411 |
412 |
413 | | [![Erik Osterman][osterman_avatar]][osterman_homepage]
[Erik Osterman][osterman_homepage] | [![Dan Meyers][danjbh_avatar]][danjbh_homepage]
[Dan Meyers][danjbh_homepage] |
414 | |---|---|
415 |
416 |
417 | [osterman_homepage]: https://github.com/osterman
418 | [osterman_avatar]: https://img.cloudposse.com/150x150/https://github.com/osterman.png
419 | [danjbh_homepage]: https://github.com/danjbh
420 | [danjbh_avatar]: https://img.cloudposse.com/150x150/https://github.com/danjbh.png
421 |
422 | [![README Footer][readme_footer_img]][readme_footer_link]
423 | [![Beacon][beacon]][website]
424 |
425 | [logo]: https://cloudposse.com/logo-300x69.svg
426 | [docs]: https://cpco.io/docs?utm_source=github&utm_medium=readme&utm_campaign=cloudposse/terraform-tfe-cloud-infrastructure-automation&utm_content=docs
427 | [website]: https://cpco.io/homepage?utm_source=github&utm_medium=readme&utm_campaign=cloudposse/terraform-tfe-cloud-infrastructure-automation&utm_content=website
428 | [github]: https://cpco.io/github?utm_source=github&utm_medium=readme&utm_campaign=cloudposse/terraform-tfe-cloud-infrastructure-automation&utm_content=github
429 | [jobs]: https://cpco.io/jobs?utm_source=github&utm_medium=readme&utm_campaign=cloudposse/terraform-tfe-cloud-infrastructure-automation&utm_content=jobs
430 | [hire]: https://cpco.io/hire?utm_source=github&utm_medium=readme&utm_campaign=cloudposse/terraform-tfe-cloud-infrastructure-automation&utm_content=hire
431 | [slack]: https://cpco.io/slack?utm_source=github&utm_medium=readme&utm_campaign=cloudposse/terraform-tfe-cloud-infrastructure-automation&utm_content=slack
432 | [linkedin]: https://cpco.io/linkedin?utm_source=github&utm_medium=readme&utm_campaign=cloudposse/terraform-tfe-cloud-infrastructure-automation&utm_content=linkedin
433 | [twitter]: https://cpco.io/twitter?utm_source=github&utm_medium=readme&utm_campaign=cloudposse/terraform-tfe-cloud-infrastructure-automation&utm_content=twitter
434 | [testimonial]: https://cpco.io/leave-testimonial?utm_source=github&utm_medium=readme&utm_campaign=cloudposse/terraform-tfe-cloud-infrastructure-automation&utm_content=testimonial
435 | [office_hours]: https://cloudposse.com/office-hours?utm_source=github&utm_medium=readme&utm_campaign=cloudposse/terraform-tfe-cloud-infrastructure-automation&utm_content=office_hours
436 | [newsletter]: https://cpco.io/newsletter?utm_source=github&utm_medium=readme&utm_campaign=cloudposse/terraform-tfe-cloud-infrastructure-automation&utm_content=newsletter
437 | [discourse]: https://ask.sweetops.com/?utm_source=github&utm_medium=readme&utm_campaign=cloudposse/terraform-tfe-cloud-infrastructure-automation&utm_content=discourse
438 | [email]: https://cpco.io/email?utm_source=github&utm_medium=readme&utm_campaign=cloudposse/terraform-tfe-cloud-infrastructure-automation&utm_content=email
439 | [commercial_support]: https://cpco.io/commercial-support?utm_source=github&utm_medium=readme&utm_campaign=cloudposse/terraform-tfe-cloud-infrastructure-automation&utm_content=commercial_support
440 | [we_love_open_source]: https://cpco.io/we-love-open-source?utm_source=github&utm_medium=readme&utm_campaign=cloudposse/terraform-tfe-cloud-infrastructure-automation&utm_content=we_love_open_source
441 | [terraform_modules]: https://cpco.io/terraform-modules?utm_source=github&utm_medium=readme&utm_campaign=cloudposse/terraform-tfe-cloud-infrastructure-automation&utm_content=terraform_modules
442 | [readme_header_img]: https://cloudposse.com/readme/header/img
443 | [readme_header_link]: https://cloudposse.com/readme/header/link?utm_source=github&utm_medium=readme&utm_campaign=cloudposse/terraform-tfe-cloud-infrastructure-automation&utm_content=readme_header_link
444 | [readme_footer_img]: https://cloudposse.com/readme/footer/img
445 | [readme_footer_link]: https://cloudposse.com/readme/footer/link?utm_source=github&utm_medium=readme&utm_campaign=cloudposse/terraform-tfe-cloud-infrastructure-automation&utm_content=readme_footer_link
446 | [readme_commercial_support_img]: https://cloudposse.com/readme/commercial-support/img
447 | [readme_commercial_support_link]: https://cloudposse.com/readme/commercial-support/link?utm_source=github&utm_medium=readme&utm_campaign=cloudposse/terraform-tfe-cloud-infrastructure-automation&utm_content=readme_commercial_support_link
448 | [share_twitter]: https://twitter.com/intent/tweet/?text=terraform-tfe-cloud-infrastructure-automation&url=https://github.com/cloudposse/terraform-tfe-cloud-infrastructure-automation
449 | [share_linkedin]: https://www.linkedin.com/shareArticle?mini=true&title=terraform-tfe-cloud-infrastructure-automation&url=https://github.com/cloudposse/terraform-tfe-cloud-infrastructure-automation
450 | [share_reddit]: https://reddit.com/submit/?url=https://github.com/cloudposse/terraform-tfe-cloud-infrastructure-automation
451 | [share_facebook]: https://facebook.com/sharer/sharer.php?u=https://github.com/cloudposse/terraform-tfe-cloud-infrastructure-automation
452 | [share_googleplus]: https://plus.google.com/share?url=https://github.com/cloudposse/terraform-tfe-cloud-infrastructure-automation
453 | [share_email]: mailto:?subject=terraform-tfe-cloud-infrastructure-automation&body=https://github.com/cloudposse/terraform-tfe-cloud-infrastructure-automation
454 | [beacon]: https://ga-beacon.cloudposse.com/UA-76589703-4/cloudposse/terraform-tfe-cloud-infrastructure-automation?pixel&cs=github&cm=readme&an=terraform-tfe-cloud-infrastructure-automation
455 |
456 |
--------------------------------------------------------------------------------
/README.yaml:
--------------------------------------------------------------------------------
1 | ---
2 | #
3 | # This is the canonical configuration for the `README.md`
4 | # Run `make readme` to rebuild the `README.md`
5 | #
6 |
7 | # Name of this project
8 | name: terraform-tfe-cloud-infrastructure-automation
9 |
10 | # Logo for this project
11 | #logo: docs/logo.png
12 |
13 | # License of this project
14 | license: "APACHE2"
15 |
16 | # Copyrights
17 | copyrights:
18 | - name: "Cloud Posse, LLC"
19 | url: "https://cloudposse.com"
20 | year: "2020"
21 |
22 | # Canonical GitHub repo
23 | github_repo: cloudposse/terraform-tfe-cloud-infrastructure-automation
24 |
25 | # Badges to display
26 | badges:
27 | - name: "Latest Release"
28 | image: "https://img.shields.io/github/release/cloudposse/terraform-tfe-cloud-infrastructure-automation.svg"
29 | url: "https://github.com/cloudposse/terraform-tfe-cloud-infrastructure-automation/releases/latest"
30 | - name: "Slack Community"
31 | image: "https://slack.cloudposse.com/badge.svg"
32 | url: "https://slack.cloudposse.com"
33 | - name: "Discourse Forum"
34 | image: "https://img.shields.io/discourse/https/ask.sweetops.com/posts.svg"
35 | url: "https://ask.sweetops.com/"
36 |
37 | related:
38 | - name: "terraform-kubernetes-tfc-cloud-agent"
39 | description: "Installs the Terraform Cloud Agent on an existing Kubernetes cluster."
40 | url: "https://github.com/cloudposse/terraform-kubernetes-tfc-cloud-agent"
41 |
42 | # List any resources helpful for someone to get started. For example, link to the hashicorp documentation or AWS documentation.
43 | references:
44 | - name: "Terraform Version Pinning"
45 | description: "The required_version setting can be used to constrain which versions of the Terraform CLI can be used with your configuration"
46 | url: "https://www.terraform.io/docs/configuration/terraform.html#specifying-a-required-terraform-version"
47 | - name: "Terraform Cloud"
48 | description: "Terraform Cloud is an application that helps teams use Terraform together."
49 | url: "https://app.terraform.io/signup/account"
50 | - name: "Terraform Enterprise/Cloud Documentation"
51 | description: ""
52 | url: "https://registry.terraform.io/providers/hashicorp/tfe/latest/docs"
53 |
54 | # Short description of this project
55 | description: |-
56 | Terraform module to provision workspaces & configurations in Terraform Cloud via YAML configuration.
57 |
58 | NOTE: Requires [Terraform Cloud or Terraform Enterprise](https://www.hashicorp.com/products/terraform/pricing).
59 |
60 | # Introduction to the project
61 | #introduction: |-
62 | # This is an introduction.
63 |
64 | # How to use this module. Should be an easy example to copy and paste.
65 | usage: |-
66 | Here's how to invoke this example module in your projects:
67 |
68 | ```hcl
69 | provider "tfe" {
70 | version = ">= 0.21.0"
71 | }
72 |
73 | module "example" {
74 | source = "https://github.com/cloudposse/terraform-tfe-cloud-infrastructure-automation.git?ref=master"
75 |
76 | # Directory containing all YAML configurations
77 | config_file_path = "config"
78 | organization = var.organization
79 |
80 | vcs_repo = {
81 | branch = "main"
82 | ingress_submodules = true
83 | # We recommend exporting the `FOOBAR` environment variable instead of passing a variable
84 | oauth_token_id = var.oauth_token_id
85 | }
86 | }
87 | ```
88 |
89 | # Example usage
90 | examples: |-
91 | Here is an example of using this module:
92 | - [`examples/complete`](https://github.com/cloudposse/terraform-tfe-cloud-infrastructure-automation/) - complete example of using this module
93 |
94 | We use YAML for the configuration files in order to separate configuration settings from business logic. It's also a portable format that can be used across multiple tools. Our convention is to name files by `$env-$stage.yaml` (e.g. `ue2-testing.yaml`), so for example an `$env` could be `ue2` (for `us-east-2`) and the `$stage` might be `testing`. Workspace names are derived from the `$env-$stage-$project`, which looks like `ue2-testing-eks`.
95 |
96 | ```yaml
97 | # Projects are all the top-level root modules
98 | projects:
99 | # Globals are exported as TF_VAR_... environment variables in every workspace
100 | globals:
101 | # Used to determine the name of the workspace (e.g. the 'testing' in 'ue2-testing')
102 | stage: testing
103 | # Used to determine the name of the workspace (e.g. the 'ue2' in 'ue2-testing')
104 | environment: ue2
105 |
106 | # The configuration file format is designed to be used across multiple tools.
107 | # All terraform projects should be listed under this section.
108 | terraform:
109 | # List one or more Terraform projects here
110 | first-project:
111 | # Controls whether or not this workspace should be created
112 | # NOTE: If set to 'false', you cannot reference this workspace via `triggers` in another workspace!
113 | workspace_enabled: true
114 | # Override the version of Terraform for this workspace (defaults to the latest in Terraform Cloud/Enterprise)
115 | terraform_version: 0.13.4
116 | # Controls the `auto_apply` setting within this workspace
117 | auto_apply: true
118 | # Optional filename triggers to match (default is *.tf)
119 | filename_triggers:
120 | - "*.*"
121 | # Add extra 'Run Triggers' to this workspace, beyond the parent workspace, which is created by default
122 | # These triggers mean this project workspace will be automatically planned if any of these workspaces are applied.
123 | triggers:
124 | - uw2-testing-example2
125 | - gbl-root-example1
126 | # Set the Terraform input variable values for this project. Complex types like maps and lists are supported.
127 | vars:
128 | my_input_var: "Hello world! This is a value that needs to be passed to my `first-project` Terraform project."
129 | # Every project should be uniquely named and correspond to a folder in the `projects/` directory
130 | second-project:
131 | workspace_enabled: true
132 | # Specify a custom project folder (defalts to the project name if not specified)
133 | custom_project_folder: my-custom-project-folder
134 | vars:
135 | my_input_var: "Hello world! This is another example!"
136 | ```
137 |
138 | # How to get started quickly
139 | #quickstart: |-
140 | # Here's how to get started...
141 |
142 | # Other files to include in this README from the project folder
143 | include:
144 | - "docs/targets.md"
145 | - "docs/terraform.md"
146 |
147 | # Contributors to this project
148 | contributors:
149 | - name: "Erik Osterman"
150 | github: "osterman"
151 | - name: "Dan Meyers"
152 | github: "danjbh"
153 |
--------------------------------------------------------------------------------
/context.tf:
--------------------------------------------------------------------------------
1 | #
2 | # ONLY EDIT THIS FILE IN github.com/cloudposse/terraform-null-label
3 | # All other instances of this file should be a copy of that one
4 | #
5 | #
6 | # Copy this file from https://github.com/cloudposse/terraform-null-label/blob/master/exports/context.tf
7 | # and then place it in your Terraform module to automatically get
8 | # Cloud Posse's standard configuration inputs suitable for passing
9 | # to Cloud Posse modules.
10 | #
11 | # Modules should access the whole context as `module.this.context`
12 | # to get the input variables with nulls for defaults,
13 | # for example `context = module.this.context`,
14 | # and access individual variables as `module.this.`,
15 | # with final values filled in.
16 | #
17 | # For example, when using defaults, `module.this.context.delimiter`
18 | # will be null, and `module.this.delimiter` will be `-` (hyphen).
19 | #
20 |
21 |
22 | module "this" {
23 | source = "cloudposse/label/null"
24 | version = "0.22.1" // requires Terraform >= 0.12.26
25 |
26 | enabled = var.enabled
27 | namespace = var.namespace
28 | environment = var.environment
29 | stage = var.stage
30 | name = var.name
31 | delimiter = var.delimiter
32 | attributes = var.attributes
33 | tags = var.tags
34 | additional_tag_map = var.additional_tag_map
35 | label_order = var.label_order
36 | regex_replace_chars = var.regex_replace_chars
37 | id_length_limit = var.id_length_limit
38 |
39 | context = var.context
40 | }
41 |
42 | # Copy contents of cloudposse/terraform-null-label/variables.tf here
43 |
44 | variable "context" {
45 | type = object({
46 | enabled = bool
47 | namespace = string
48 | environment = string
49 | stage = string
50 | name = string
51 | delimiter = string
52 | attributes = list(string)
53 | tags = map(string)
54 | additional_tag_map = map(string)
55 | regex_replace_chars = string
56 | label_order = list(string)
57 | id_length_limit = number
58 | })
59 | default = {
60 | enabled = true
61 | namespace = null
62 | environment = null
63 | stage = null
64 | name = null
65 | delimiter = null
66 | attributes = []
67 | tags = {}
68 | additional_tag_map = {}
69 | regex_replace_chars = null
70 | label_order = []
71 | id_length_limit = null
72 | }
73 | description = <<-EOT
74 | Single object for setting entire context at once.
75 | See description of individual variables for details.
76 | Leave string and numeric variables as `null` to use default value.
77 | Individual variable settings (non-null) override settings in context object,
78 | except for attributes, tags, and additional_tag_map, which are merged.
79 | EOT
80 | }
81 |
82 | variable "enabled" {
83 | type = bool
84 | default = null
85 | description = "Set to false to prevent the module from creating any resources"
86 | }
87 |
88 | variable "namespace" {
89 | type = string
90 | default = null
91 | description = "Namespace, which could be your organization name or abbreviation, e.g. 'eg' or 'cp'"
92 | }
93 |
94 | variable "environment" {
95 | type = string
96 | default = null
97 | description = "Environment, e.g. 'uw2', 'us-west-2', OR 'prod', 'staging', 'dev', 'UAT'"
98 | }
99 |
100 | variable "stage" {
101 | type = string
102 | default = null
103 | description = "Stage, e.g. 'prod', 'staging', 'dev', OR 'source', 'build', 'test', 'deploy', 'release'"
104 | }
105 |
106 | variable "name" {
107 | type = string
108 | default = null
109 | description = "Solution name, e.g. 'app' or 'jenkins'"
110 | }
111 |
112 | variable "delimiter" {
113 | type = string
114 | default = null
115 | description = <<-EOT
116 | Delimiter to be used between `namespace`, `environment`, `stage`, `name` and `attributes`.
117 | Defaults to `-` (hyphen). Set to `""` to use no delimiter at all.
118 | EOT
119 | }
120 |
121 | variable "attributes" {
122 | type = list(string)
123 | default = []
124 | description = "Additional attributes (e.g. `1`)"
125 | }
126 |
127 | variable "tags" {
128 | type = map(string)
129 | default = {}
130 | description = "Additional tags (e.g. `map('BusinessUnit','XYZ')`"
131 | }
132 |
133 | variable "additional_tag_map" {
134 | type = map(string)
135 | default = {}
136 | description = "Additional tags for appending to tags_as_list_of_maps. Not added to `tags`."
137 | }
138 |
139 | variable "label_order" {
140 | type = list(string)
141 | default = null
142 | description = <<-EOT
143 | The naming order of the id output and Name tag.
144 | Defaults to ["namespace", "environment", "stage", "name", "attributes"].
145 | You can omit any of the 5 elements, but at least one must be present.
146 | EOT
147 | }
148 |
149 | variable "regex_replace_chars" {
150 | type = string
151 | default = null
152 | description = <<-EOT
153 | Regex to replace chars with empty string in `namespace`, `environment`, `stage` and `name`.
154 | If not set, `"/[^a-zA-Z0-9-]/"` is used to remove all characters other than hyphens, letters and digits.
155 | EOT
156 | }
157 |
158 | variable "id_length_limit" {
159 | type = number
160 | default = null
161 | description = <<-EOT
162 | Limit `id` to this many characters.
163 | Set to `0` for unlimited length.
164 | Set to `null` for default, which is `0`.
165 | Does not affect `id_full`.
166 | EOT
167 | }
168 |
169 | #### End of copy of cloudposse/terraform-null-label/variables.tf
170 |
--------------------------------------------------------------------------------
/docs/targets.md:
--------------------------------------------------------------------------------
1 |
2 | ## Makefile Targets
3 | ```text
4 | Available targets:
5 |
6 | help Help screen
7 | help/all Display help for all targets
8 | help/short This help short screen
9 | lint Lint terraform code
10 |
11 | ```
12 |
13 |
--------------------------------------------------------------------------------
/docs/terraform.md:
--------------------------------------------------------------------------------
1 |
2 | ## Requirements
3 |
4 | | Name | Version |
5 | |------|---------|
6 | | [terraform](#requirement\_terraform) | >= 0.13.0 |
7 | | [local](#requirement\_local) | >= 1.4 |
8 | | [random](#requirement\_random) | >= 2.2 |
9 | | [tfe](#requirement\_tfe) | >= 0.23.0 |
10 |
11 | ## Providers
12 |
13 | | Name | Version |
14 | |------|---------|
15 | | [tfe](#provider\_tfe) | >= 0.23.0 |
16 |
17 | ## Modules
18 |
19 | | Name | Source | Version |
20 | |------|--------|---------|
21 | | [tfc\_config](#module\_tfc\_config) | ./modules/workspaces | n/a |
22 | | [tfc\_environment](#module\_tfc\_environment) | ./modules/environment | n/a |
23 | | [this](#module\_this) | cloudposse/label/null | 0.22.1 |
24 |
25 | ## Resources
26 |
27 | | Name | Type |
28 | |------|------|
29 | | [tfe_run_trigger.this](https://registry.terraform.io/providers/hashicorp/tfe/latest/docs/resources/run_trigger) | resource |
30 |
31 | ## Inputs
32 |
33 | | Name | Description | Type | Default | Required |
34 | |------|-------------|------|---------|:--------:|
35 | | [additional\_tag\_map](#input\_additional\_tag\_map) | Additional tags for appending to tags\_as\_list\_of\_maps. Not added to `tags`. | `map(string)` | `{}` | no |
36 | | [attributes](#input\_attributes) | Additional attributes (e.g. `1`) | `list(string)` | `[]` | no |
37 | | [config\_auto\_apply](#input\_config\_auto\_apply) | Controls Terraform Cloud workspace auto-apply feature | `bool` | `true` | no |
38 | | [config\_file\_path](#input\_config\_file\_path) | Relative path to YAML config files | `string` | `null` | no |
39 | | [config\_file\_pattern](#input\_config\_file\_pattern) | File pattern used to locate configuration files | `string` | `"*.yaml"` | no |
40 | | [context](#input\_context) | Single object for setting entire context at once.
See description of individual variables for details.
Leave string and numeric variables as `null` to use default value.
Individual variable settings (non-null) override settings in context object,
except for attributes, tags, and additional\_tag\_map, which are merged. | object({
enabled = bool
namespace = string
environment = string
stage = string
name = string
delimiter = string
attributes = list(string)
tags = map(string)
additional_tag_map = map(string)
regex_replace_chars = string
label_order = list(string)
id_length_limit = number
})
| {
"additional_tag_map": {},
"attributes": [],
"delimiter": null,
"enabled": true,
"environment": null,
"id_length_limit": null,
"label_order": [],
"name": null,
"namespace": null,
"regex_replace_chars": null,
"stage": null,
"tags": {}
}
| no |
41 | | [delimiter](#input\_delimiter) | Delimiter to be used between `namespace`, `environment`, `stage`, `name` and `attributes`.
Defaults to `-` (hyphen). Set to `""` to use no delimiter at all. | `string` | `null` | no |
42 | | [enabled](#input\_enabled) | Set to false to prevent the module from creating any resources | `bool` | `null` | no |
43 | | [environment](#input\_environment) | Environment, e.g. 'uw2', 'us-west-2', OR 'prod', 'staging', 'dev', 'UAT' | `string` | `null` | no |
44 | | [id\_length\_limit](#input\_id\_length\_limit) | Limit `id` to this many characters.
Set to `0` for unlimited length.
Set to `null` for default, which is `0`.
Does not affect `id_full`. | `number` | `null` | no |
45 | | [label\_order](#input\_label\_order) | The naming order of the id output and Name tag.
Defaults to ["namespace", "environment", "stage", "name", "attributes"].
You can omit any of the 5 elements, but at least one must be present. | `list(string)` | `null` | no |
46 | | [name](#input\_name) | Solution name, e.g. 'app' or 'jenkins' | `string` | `null` | no |
47 | | [namespace](#input\_namespace) | Namespace, which could be your organization name or abbreviation, e.g. 'eg' or 'cp' | `string` | `null` | no |
48 | | [organization](#input\_organization) | Name of the organization. | `string` | n/a | yes |
49 | | [projects\_path](#input\_projects\_path) | Project directory path relative to the repository root | `string` | `"projects"` | no |
50 | | [regex\_replace\_chars](#input\_regex\_replace\_chars) | Regex to replace chars with empty string in `namespace`, `environment`, `stage` and `name`.
If not set, `"/[^a-zA-Z0-9-]/"` is used to remove all characters other than hyphens, letters and digits. | `string` | `null` | no |
51 | | [stage](#input\_stage) | Stage, e.g. 'prod', 'staging', 'dev', OR 'source', 'build', 'test', 'deploy', 'release' | `string` | `null` | no |
52 | | [tags](#input\_tags) | Additional tags (e.g. `map('BusinessUnit','XYZ')` | `map(string)` | `{}` | no |
53 | | [terraform\_version](#input\_terraform\_version) | The version of Terraform to use for this workspace. Defaults to the latest available version. | `string` | `null` | no |
54 | | [tfc\_project\_path](#input\_tfc\_project\_path) | Name of the working directory where the top-level Terraform Cloud project resides (e.g. within `projects_path`). | `string` | `"tfc"` | no |
55 | | [top\_level\_workspace](#input\_top\_level\_workspace) | Name of the top-level configuration workspace in Terraform Cloud | `string` | `"tfc-config"` | no |
56 | | [vcs\_repo](#input\_vcs\_repo) | The VCS repository to configure. | `map(string)` | `{}` | no |
57 |
58 | ## Outputs
59 |
60 | | Name | Description |
61 | |------|-------------|
62 | | [environment\_workspaces](#output\_environment\_workspaces) | A list of environment workspaces & their configurations. |
63 | | [global\_workspace](#output\_global\_workspace) | Configuration information for the global workspace. |
64 | | [project\_workspaces](#output\_project\_workspaces) | A list of project workspaces & their configurations. |
65 |
66 |
--------------------------------------------------------------------------------
/examples/complete/config/gbl-root.yaml:
--------------------------------------------------------------------------------
1 | projects:
2 | globals:
3 | stage: testing
4 | environment: gbl
5 |
6 | terraform:
7 | example1:
8 | workspace_enabled: true
9 | custom_project_folder: example1-custom
10 | vars:
11 | my_input_var: "Hello world! This is example1!"
12 |
--------------------------------------------------------------------------------
/examples/complete/config/ue2-testing.yaml:
--------------------------------------------------------------------------------
1 | projects:
2 | globals:
3 | stage: testing
4 | environment: ue2
5 |
6 | terraform:
7 | example2:
8 | workspace_enabled: true
9 | terraform_version: 0.13.4
10 | auto_apply: true
11 | # Optional filename triggers to match (default is *.tf)
12 | filename_triggers:
13 | - "*.*"
14 | triggers:
15 | - uw2-testing-example2
16 | - gbl-root-example1
17 | vars:
18 | my_input_var: "Hello world! This is example2. This project uses a different version of Terraform and contains custom triggers!"
19 |
--------------------------------------------------------------------------------
/examples/complete/config/uw2-testing.yaml:
--------------------------------------------------------------------------------
1 | projects:
2 | globals:
3 | stage: testing
4 | environment: uw2
5 |
6 | terraform:
7 | example2:
8 | workspace_enabled: true
9 | vars:
10 | my_input_var: "Hello world! This is example1. It's disabled!"
11 | example3:
12 | workspace_enabled: true
13 | triggers:
14 | - gbl-root-example1
15 | vars:
16 | my_input_var: "Hello world! This is example2. This project contains a custom trigger!"
17 |
--------------------------------------------------------------------------------
/examples/complete/context.tf:
--------------------------------------------------------------------------------
1 | #
2 | # ONLY EDIT THIS FILE IN github.com/cloudposse/terraform-null-label
3 | # All other instances of this file should be a copy of that one
4 | #
5 | #
6 | # Copy this file from https://github.com/cloudposse/terraform-null-label/blob/master/exports/context.tf
7 | # and then place it in your Terraform module to automatically get
8 | # Cloud Posse's standard configuration inputs suitable for passing
9 | # to Cloud Posse modules.
10 | #
11 | # Modules should access the whole context as `module.this.context`
12 | # to get the input variables with nulls for defaults,
13 | # for example `context = module.this.context`,
14 | # and access individual variables as `module.this.`,
15 | # with final values filled in.
16 | #
17 | # For example, when using defaults, `module.this.context.delimiter`
18 | # will be null, and `module.this.delimiter` will be `-` (hyphen).
19 | #
20 |
21 |
22 | module "this" {
23 | source = "cloudposse/label/null"
24 | version = "0.22.1" // requires Terraform >= 0.12.26
25 |
26 | enabled = var.enabled
27 | namespace = var.namespace
28 | environment = var.environment
29 | stage = var.stage
30 | name = var.name
31 | delimiter = var.delimiter
32 | attributes = var.attributes
33 | tags = var.tags
34 | additional_tag_map = var.additional_tag_map
35 | label_order = var.label_order
36 | regex_replace_chars = var.regex_replace_chars
37 | id_length_limit = var.id_length_limit
38 |
39 | context = var.context
40 | }
41 |
42 | # Copy contents of cloudposse/terraform-null-label/variables.tf here
43 |
44 | variable "context" {
45 | type = object({
46 | enabled = bool
47 | namespace = string
48 | environment = string
49 | stage = string
50 | name = string
51 | delimiter = string
52 | attributes = list(string)
53 | tags = map(string)
54 | additional_tag_map = map(string)
55 | regex_replace_chars = string
56 | label_order = list(string)
57 | id_length_limit = number
58 | })
59 | default = {
60 | enabled = true
61 | namespace = null
62 | environment = null
63 | stage = null
64 | name = null
65 | delimiter = null
66 | attributes = []
67 | tags = {}
68 | additional_tag_map = {}
69 | regex_replace_chars = null
70 | label_order = []
71 | id_length_limit = null
72 | }
73 | description = <<-EOT
74 | Single object for setting entire context at once.
75 | See description of individual variables for details.
76 | Leave string and numeric variables as `null` to use default value.
77 | Individual variable settings (non-null) override settings in context object,
78 | except for attributes, tags, and additional_tag_map, which are merged.
79 | EOT
80 | }
81 |
82 | variable "enabled" {
83 | type = bool
84 | default = null
85 | description = "Set to false to prevent the module from creating any resources"
86 | }
87 |
88 | variable "namespace" {
89 | type = string
90 | default = null
91 | description = "Namespace, which could be your organization name or abbreviation, e.g. 'eg' or 'cp'"
92 | }
93 |
94 | variable "environment" {
95 | type = string
96 | default = null
97 | description = "Environment, e.g. 'uw2', 'us-west-2', OR 'prod', 'staging', 'dev', 'UAT'"
98 | }
99 |
100 | variable "stage" {
101 | type = string
102 | default = null
103 | description = "Stage, e.g. 'prod', 'staging', 'dev', OR 'source', 'build', 'test', 'deploy', 'release'"
104 | }
105 |
106 | variable "name" {
107 | type = string
108 | default = null
109 | description = "Solution name, e.g. 'app' or 'jenkins'"
110 | }
111 |
112 | variable "delimiter" {
113 | type = string
114 | default = null
115 | description = <<-EOT
116 | Delimiter to be used between `namespace`, `environment`, `stage`, `name` and `attributes`.
117 | Defaults to `-` (hyphen). Set to `""` to use no delimiter at all.
118 | EOT
119 | }
120 |
121 | variable "attributes" {
122 | type = list(string)
123 | default = []
124 | description = "Additional attributes (e.g. `1`)"
125 | }
126 |
127 | variable "tags" {
128 | type = map(string)
129 | default = {}
130 | description = "Additional tags (e.g. `map('BusinessUnit','XYZ')`"
131 | }
132 |
133 | variable "additional_tag_map" {
134 | type = map(string)
135 | default = {}
136 | description = "Additional tags for appending to tags_as_list_of_maps. Not added to `tags`."
137 | }
138 |
139 | variable "label_order" {
140 | type = list(string)
141 | default = null
142 | description = <<-EOT
143 | The naming order of the id output and Name tag.
144 | Defaults to ["namespace", "environment", "stage", "name", "attributes"].
145 | You can omit any of the 5 elements, but at least one must be present.
146 | EOT
147 | }
148 |
149 | variable "regex_replace_chars" {
150 | type = string
151 | default = null
152 | description = <<-EOT
153 | Regex to replace chars with empty string in `namespace`, `environment`, `stage` and `name`.
154 | If not set, `"/[^a-zA-Z0-9-]/"` is used to remove all characters other than hyphens, letters and digits.
155 | EOT
156 | }
157 |
158 | variable "id_length_limit" {
159 | type = number
160 | default = null
161 | description = <<-EOT
162 | Limit `id` to this many characters.
163 | Set to `0` for unlimited length.
164 | Set to `null` for default, which is `0`.
165 | Does not affect `id_full`.
166 | EOT
167 | }
168 |
169 | #### End of copy of cloudposse/terraform-null-label/variables.tf
170 |
--------------------------------------------------------------------------------
/examples/complete/fixtures.us-east-2.tfvars:
--------------------------------------------------------------------------------
1 | region = "us-east-2"
2 |
3 | namespace = "eg"
4 |
5 | environment = "ue2"
6 |
7 | stage = "test"
8 |
9 | name = "example"
10 |
11 | branch = "master"
12 |
13 | identifier = "void"
14 |
15 | ingress_submodules = true
16 |
17 | oauth_token_id = "abc123"
18 |
19 | organization = "cpco-test-automation"
20 |
21 | tfe_hostname = "app.terraform.io"
22 |
--------------------------------------------------------------------------------
/examples/complete/main.tf:
--------------------------------------------------------------------------------
1 | # Configure the Terraform Enterprise Provider
2 | provider "tfe" {
3 | hostname = var.tfe_hostname
4 | token = var.tfe_token
5 | version = ">= 0.23.0"
6 | }
7 |
8 | module "example" {
9 | source = "../../"
10 |
11 | config_file_path = "config"
12 | organization = var.organization
13 |
14 | vcs_repo = {
15 | branch = var.branch
16 | identifier = var.identifier
17 | ingress_submodules = var.ingress_submodules
18 | oauth_token_id = var.oauth_token_id
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/examples/complete/outputs.tf:
--------------------------------------------------------------------------------
1 | output "global_workspace" {
2 | value = module.example.global_workspace
3 | description = "Configuration information for the global workspace."
4 | }
5 |
6 | output "environment_workspaces" {
7 | value = module.example.environment_workspaces
8 | description = "A list of environment workspaces & their configurations."
9 | }
10 |
11 | output "project_workspaces" {
12 | value = module.example.project_workspaces
13 | description = "A list of project workspaces & their configurations."
14 | }
15 |
--------------------------------------------------------------------------------
/examples/complete/projects/example1/main.tf:
--------------------------------------------------------------------------------
1 | variable "my_input_var" {
2 | type = string
3 | default = ""
4 | }
5 |
6 | output "dummy_output" {
7 | value = var.my_input_var
8 | }
--------------------------------------------------------------------------------
/examples/complete/projects/example2/main.tf:
--------------------------------------------------------------------------------
1 | variable "my_input_var" {
2 | type = string
3 | default = ""
4 | }
5 |
6 | output "dummy_output" {
7 | value = var.my_input_var
8 | }
--------------------------------------------------------------------------------
/examples/complete/projects/example3/main.tf:
--------------------------------------------------------------------------------
1 | variable "my_input_var" {
2 | type = string
3 | default = ""
4 | }
5 |
6 | output "dummy_output" {
7 | value = var.my_input_var
8 | }
--------------------------------------------------------------------------------
/examples/complete/variables.tf:
--------------------------------------------------------------------------------
1 | variable "branch" {
2 | description = "The repository branch that Terraform will execute from."
3 | default = "master"
4 | type = string
5 | }
6 |
7 | variable "identifier" {
8 | description = "A reference to your VCS repository in the format :org/:repo where :org and :repo refer to the organization and repository in your VCS provider."
9 | type = string
10 | }
11 |
12 | variable "ingress_submodules" {
13 | default = false
14 | description = "Whether submodules should be fetched when cloning the VCS repository. Defaults to `false`."
15 | type = bool
16 | }
17 |
18 | variable "oauth_token_id" {
19 | default = null
20 | description = "Token ID of the VCS Connection (OAuth Connection Token) to use."
21 | type = string
22 | }
23 |
24 | variable "organization" {
25 | description = "Name of the organization."
26 | type = string
27 | }
28 |
29 | variable "tfe_hostname" {
30 | description = "The Terraform Enterprise hostname to connect to. Defaults to `app.terraform.io`. Can be overridden by setting the `TFE_HOSTNAME` environment variable."
31 | default = "app.terraform.io"
32 | type = string
33 | }
34 |
35 | variable "tfe_token" {
36 | description = "The token used to authenticate with Terraform Enterprise. Only set this argument when running in a Terraform Enterprise workspace; for CLI usage, omit the token from the configuration and set it as `credentials` in the CLI config file or set the `TFE_TOKEN` environment variable."
37 | default = null
38 | type = string
39 | }
40 |
--------------------------------------------------------------------------------
/examples/complete/versions.tf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cloudposse-archives/terraform-tfe-cloud-infrastructure-automation/e8296fbc0911280628cffd96127ed66c8d8192c1/examples/complete/versions.tf
--------------------------------------------------------------------------------
/main.tf:
--------------------------------------------------------------------------------
1 | locals {
2 | // Use the provided config file path or default to the current dir
3 | config_file_path = coalesce(var.config_file_path, path.cwd)
4 | // Result ex: [gbl-audit.yaml, gbl-auto.yaml, gbl-dev.yaml, ...]
5 | config_filenames = fileset(local.config_file_path, var.config_file_pattern)
6 | // Result ex: [gbl-audit, gbl-auto, gbl-dev, ...]
7 | config_files = { for f in local.config_filenames : trimsuffix(basename(f), ".yaml") => yamldecode(file("${local.config_file_path}/${f}")) }
8 | // Result ex: { gbl-audit = { globals = { ... }, terraform = { project1 = { vars = ... }, project2 = { vars = ... } } } }
9 | projects = { for f in keys(local.config_files) : f => lookup(local.config_files[f], "projects", {}) }
10 |
11 | environment_workspaces = {
12 | for k, v in module.tfc_environment : k => {
13 | "workspace" = v.workspace,
14 | "projects" = [
15 | for project_name, project_values in v.projects : project_name
16 | ]
17 | }
18 | }
19 |
20 | project_workspaces = merge([
21 | for k, v in module.tfc_environment : {
22 | for env, config in v.projects :
23 | "${k}-${env}" => config
24 | }
25 | ]...)
26 |
27 | custom_triggers = merge({}, flatten([
28 | for k, v in local.projects : [
29 | for project, settings in v.terraform : {
30 | for trigger in(try(settings.triggers, null) != null ? settings.triggers : []) :
31 | "${k}-${project}-${trigger}" => {
32 | source = trigger
33 | destination = "${k}-${project}"
34 | } if try(settings.workspace_enabled, false)
35 | }
36 | ]
37 | ])...)
38 | }
39 |
40 | # Create our top-level workspace
41 | module "tfc_config" {
42 | source = "./modules/workspaces"
43 |
44 | auto_apply = var.config_auto_apply
45 | file_triggers_enabled = true
46 | name = var.top_level_workspace
47 | organization = var.organization
48 | terraform_version = var.terraform_version
49 | trigger_prefixes = [basename(local.config_file_path)]
50 | vcs_repo = var.vcs_repo
51 | working_directory = "${var.projects_path}/${var.tfc_project_path}"
52 | execution_mode = "remote"
53 | }
54 |
55 | # Create our 2nd-tier environment workspaces, as well as our 3rd-tier project workspaces
56 | module "tfc_environment" {
57 | source = "./modules/environment"
58 |
59 | for_each = local.projects
60 |
61 | config_name = each.key
62 | global_values = each.value.globals
63 | terraform_version = var.terraform_version
64 | projects = local.projects[each.key].terraform
65 | projects_path = var.projects_path
66 | organization = var.organization
67 | vcs_repo = var.vcs_repo
68 | }
69 |
70 | # Generate our custom triggers based on configuration defined in YAML (at the project level)
71 | resource "tfe_run_trigger" "this" {
72 | for_each = local.custom_triggers
73 |
74 | # We link the trigger to another 3rd tier project workspace, OR a 2nd tier environment workspace
75 | workspace_id = local.project_workspaces[each.value.destination].workspace.id
76 | sourceable_id = try(local.project_workspaces[each.value.source].workspace.id, local.environment_workspaces[each.value.source].workspace.id)
77 | }
78 |
--------------------------------------------------------------------------------
/modules/environment/main.tf:
--------------------------------------------------------------------------------
1 | locals {
2 | default_execution_mode = "remote"
3 | }
4 |
5 | module "workspace" {
6 | source = "../workspaces"
7 |
8 | auto_apply = true
9 | file_triggers_enabled = true
10 | name = var.config_name
11 | organization = var.organization
12 | trigger_prefixes = ["${var.config_directory}/${var.config_name}.yaml"]
13 | vcs_repo = var.vcs_repo
14 | execution_mode = local.default_execution_mode
15 | }
16 |
17 | module "variables" {
18 | source = "../variables"
19 |
20 | hcl = true
21 | variables = var.global_values
22 | workspace_id = module.workspace.workspace.id
23 | }
24 |
25 | module "projects" {
26 | source = "../project"
27 |
28 | for_each = var.projects
29 |
30 | enabled = try(each.value.workspace_enabled, false)
31 | organization = var.organization
32 | environment = module.workspace.workspace.name
33 | global_values = var.global_values
34 | project_name = each.key
35 | project_values = each.value.vars
36 | projects_path = var.projects_path
37 | custom_project_folder = try(each.value.custom_project_folder, null)
38 | execution_mode = try(each.value.execution_mode, local.default_execution_mode)
39 | vcs_repo = var.vcs_repo
40 | vcs_branch_override = try(each.value.vcs_branch_override, null)
41 | terraform_version = try(each.value.terraform_version, var.terraform_version)
42 | parent_workspace_id = module.workspace.workspace.id
43 | auto_apply = try(each.value.auto_apply, false)
44 | filename_triggers = try(each.value.filename_triggers, [])
45 | }
46 |
--------------------------------------------------------------------------------
/modules/environment/outputs.tf:
--------------------------------------------------------------------------------
1 | output "workspace" {
2 | description = "List of all workspaces created."
3 | value = module.workspace.workspace
4 | }
5 |
6 | output "projects" {
7 | description = "List of all projects created."
8 | value = module.projects
9 | }
10 |
--------------------------------------------------------------------------------
/modules/environment/variables.tf:
--------------------------------------------------------------------------------
1 | variable "config_name" {
2 | type = string
3 | description = "The name of the YAML configuration file used for this environment workspace (for the trigger prefix)."
4 | }
5 |
6 | variable "config_directory" {
7 | type = string
8 | default = "config"
9 | description = "The name of the configuration directory to use in the trigger prefix."
10 | }
11 |
12 | variable "global_values" {
13 | type = map(any)
14 | default = {}
15 | description = "The global values applied to all workspaces within the environment."
16 | }
17 |
18 | variable "projects" {
19 | type = any
20 | default = {}
21 | description = "A map of all projects and related configurations that exist within the environment."
22 | }
23 |
24 | variable "projects_path" {
25 | default = "projects"
26 | type = string
27 | description = "The relative pathname where all projects reside (used for trigger prefixes)."
28 | }
29 |
30 | variable "organization" {
31 | type = string
32 | description = "Name of the organization."
33 | }
34 |
35 | variable "terraform_version" {
36 | default = null
37 | type = string
38 | description = "The top level terraform_version that is used if not overriden by the project."
39 | }
40 |
41 | variable "vcs_repo" {
42 | description = "The VCS repository to configure."
43 | default = {
44 | }
45 | type = map(string)
46 | }
47 |
--------------------------------------------------------------------------------
/modules/project/main.tf:
--------------------------------------------------------------------------------
1 | locals {
2 | project_folder = coalesce(var.custom_project_folder, var.project_name)
3 |
4 | trigger_prefixes = [
5 | for prefix in var.filename_triggers :
6 | "${var.projects_path}/${local.project_folder}/${prefix}"
7 | ]
8 | }
9 |
10 | module "workspace" {
11 | source = "../workspaces"
12 |
13 | count = var.enabled ? 1 : 0
14 |
15 | auto_apply = var.auto_apply
16 | file_triggers_enabled = true
17 | name = "${var.environment}-${var.project_name}"
18 | organization = var.organization
19 | trigger_prefixes = local.trigger_prefixes
20 | vcs_repo = var.vcs_repo
21 | vcs_branch_override = var.vcs_branch_override
22 | working_directory = "${var.projects_path}/${local.project_folder}"
23 | terraform_version = var.terraform_version
24 | execution_mode = var.execution_mode
25 | }
26 |
27 | module "variables" {
28 | source = "../variables"
29 |
30 | count = var.enabled ? 1 : 0
31 |
32 | hcl = true
33 | variables = var.project_values
34 | workspace_id = module.workspace[0].workspace.id
35 | }
36 |
37 | module "env_vars" {
38 | source = "../variables"
39 |
40 | count = var.enabled ? 1 : 0
41 |
42 | category = "env"
43 | hcl = false
44 | variables = var.global_values
45 | workspace_id = module.workspace[0].workspace.id
46 | }
47 |
48 | resource "tfe_run_trigger" "this" {
49 | count = var.enabled ? 1 : 0
50 |
51 | workspace_id = module.workspace[0].workspace.id
52 | sourceable_id = var.parent_workspace_id
53 | }
54 |
--------------------------------------------------------------------------------
/modules/project/outputs.tf:
--------------------------------------------------------------------------------
1 | output "workspace" {
2 | value = try(module.workspace[0].workspace, null)
3 | }
4 |
--------------------------------------------------------------------------------
/modules/project/variables.tf:
--------------------------------------------------------------------------------
1 | variable "enabled" {
2 | description = "Controls creation fo all resources in this module."
3 | default = false
4 | type = bool
5 | }
6 |
7 | variable "parent_workspace_id" {
8 | description = "Parent workspace ID for run triggers."
9 | default = null
10 | type = string
11 | }
12 |
13 | variable "environment" {
14 | description = "Environment, e.g. 'uw2', 'us-west-2', OR 'prod', 'staging', 'dev', 'UAT'"
15 | type = string
16 | }
17 |
18 | variable "project_name" {
19 | type = string
20 | description = "Name of the project"
21 | }
22 |
23 | variable "project_values" {
24 | # NOTE: This is of type `any` to allow for a map of various, complex types.
25 | # See issue #4 in this repository for full details.
26 | type = any
27 | description = "Map of project-level environment variables"
28 | }
29 |
30 | variable "global_values" {
31 | type = map(any)
32 | description = "Map of project-level Terraform variables"
33 | }
34 |
35 | variable "execution_mode" {
36 | type = string
37 | description = "Indicates whether the workspace is applied remotely, locally, or via agent."
38 |
39 | validation {
40 | condition = contains(["remote", "local", "agent"], var.execution_mode)
41 | error_message = "The execution_mode value must be either `remote`, `local`, or `agent`."
42 | }
43 | }
44 |
45 | variable "organization" {
46 | type = string
47 | description = "Name of the organization."
48 | }
49 |
50 | variable "projects_path" {
51 | description = "Project directory path relative to the repository root"
52 | type = string
53 | default = "projects"
54 | }
55 |
56 | variable "custom_project_folder" {
57 | description = "Use this to override the name of the project folder"
58 | type = string
59 | default = null
60 | }
61 |
62 | variable "vcs_repo" {
63 | description = "The VCS repository to configure."
64 | default = {}
65 | type = map(string)
66 | }
67 |
68 | variable "vcs_branch_override" {
69 | description = "Use this to override the branch you want your workspace to plan / apply against."
70 | default = null
71 | type = string
72 | }
73 |
74 | variable "terraform_version" {
75 | type = string
76 | description = "The version of Terraform to use for this workspace."
77 | default = null
78 | }
79 |
80 | variable "auto_apply" {
81 | type = bool
82 | description = "Controls the auto_apply flag within a Terraform workspace."
83 | default = false
84 | }
85 |
86 | variable "filename_triggers" {
87 | type = list(string)
88 | description = "Controls which file(s) will trigger workspace executions."
89 | default = []
90 | }
91 |
--------------------------------------------------------------------------------
/modules/variables/main.tf:
--------------------------------------------------------------------------------
1 | locals {
2 | # We compute the values ahead of time to deal with ternary type conversion issues.
3 | # The jsonencode / replaces below translate a JSON encoded string to proper HCL2
4 | variables = merge(var.variables, {
5 | for key, val in var.variables :
6 | key => replace(replace(jsonencode(val), "/(\".*?\"):/", "$1 = "), "/= null/", "= \"\"") if var.hcl
7 | })
8 | }
9 | resource "tfe_variable" "this" {
10 | for_each = local.variables
11 |
12 | category = var.category
13 | hcl = var.hcl
14 | key = var.category == "env" ? "TF_VAR_${each.key}" : each.key
15 | sensitive = var.sensitive
16 | value = each.value
17 | workspace_id = var.workspace_id
18 | }
19 |
--------------------------------------------------------------------------------
/modules/variables/outputs.tf:
--------------------------------------------------------------------------------
1 | output "variables" {
2 | value = tfe_variable.this
3 | }
4 |
--------------------------------------------------------------------------------
/modules/variables/variables.tf:
--------------------------------------------------------------------------------
1 | variable "category" {
2 | default = "terraform"
3 | description = "Whether this is a Terraform or environment variable. Valid values are terraform or env."
4 | }
5 |
6 | variable "description" {
7 | default = ""
8 | description = "Description of the variable."
9 | }
10 |
11 | variable "hcl" {
12 | default = false
13 | description = "Whether to evaluate the value of the variable as a string of HCL code. Has no effect for environment variables. Defaults to false."
14 | }
15 |
16 | variable "sensitive" {
17 | default = false
18 | description = "Whether the value is sensitive. If true then the variable is written once and not visible thereafter. Defaults to false."
19 | }
20 |
21 | variable "variables" {
22 | # NOTE: This is of type `any` to allow for a map of various, complex types.
23 | # See issue #4 in this repository for full details.
24 | type = any
25 | description = "Map of environment or Terraform variables to define in the workspace."
26 | default = {}
27 | }
28 |
29 | variable "workspace_id" {
30 | description = "ID of the workspace that owns the variable."
31 | }
32 |
--------------------------------------------------------------------------------
/modules/workspaces/main.tf:
--------------------------------------------------------------------------------
1 | resource "tfe_workspace" "this" {
2 | name = var.name
3 | organization = var.organization
4 |
5 | auto_apply = var.auto_apply
6 | file_triggers_enabled = var.file_triggers_enabled
7 | execution_mode = var.execution_mode
8 | queue_all_runs = var.queue_all_runs
9 | ssh_key_id = var.ssh_key_id
10 | terraform_version = var.terraform_version
11 | trigger_prefixes = var.trigger_prefixes
12 | working_directory = var.working_directory
13 |
14 | dynamic "vcs_repo" {
15 | for_each = lookup(var.vcs_repo, "identifier", "void") == "void" ? [] : [var.vcs_repo]
16 |
17 | content {
18 | branch = var.vcs_branch_override == null ? var.vcs_repo.branch : var.vcs_branch_override
19 | identifier = var.vcs_repo.identifier
20 | ingress_submodules = var.vcs_repo.ingress_submodules
21 | oauth_token_id = var.vcs_repo.oauth_token_id
22 | }
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/modules/workspaces/outputs.tf:
--------------------------------------------------------------------------------
1 | output "workspace" {
2 | description = "The Terraform Cloud workspace attributes"
3 | value = tfe_workspace.this
4 | }
5 |
--------------------------------------------------------------------------------
/modules/workspaces/variables.tf:
--------------------------------------------------------------------------------
1 | variable "auto_apply" {
2 | description = "Whether to automatically apply changes when a Terraform plan is successful."
3 | default = false
4 | }
5 |
6 | variable "file_triggers_enabled" {
7 | description = "Whether to filter runs based on the changed files in a VCS push. If enabled, the working directory and trigger prefixes describe a set of paths which must contain changes for a VCS push to trigger a run. If disabled, any push will trigger a run."
8 | default = true
9 | }
10 |
11 | variable "name" {
12 | description = "Configuration File Name of the workspace"
13 | type = string
14 | }
15 |
16 | variable "notifications" {
17 | description = "Map of `tfe_notification_configurations` to define in the workspace."
18 | default = {}
19 | type = map(object({ configuration = map(string), triggers = list(string) }))
20 | }
21 |
22 | variable "execution_mode" {
23 | type = string
24 | description = "Indicates whether the workspace is applied remotely, locally, or via agent."
25 |
26 | validation {
27 | condition = contains(["remote", "local", "agent"], var.execution_mode)
28 | error_message = "The execution_mode value must be either `remote`, `local`, or `agent`."
29 | }
30 | }
31 |
32 | variable "organization" {
33 | description = "Name of the organization."
34 | }
35 |
36 | variable "queue_all_runs" {
37 | description = "Whether all runs should be queued. When set to false, runs triggered by a VCS change will not be queued until at least one run is manually queued."
38 | default = true
39 | type = bool
40 | }
41 |
42 | variable "ssh_key_id" {
43 | description = "The ID of an SSH key to assign to the workspace."
44 | default = null
45 | }
46 |
47 | variable "team_access" {
48 | description = "Associate teams to permissions on the workspace."
49 | default = {}
50 | type = map(string)
51 | }
52 |
53 | variable "terraform_version" {
54 | description = "The version of Terraform to use for this workspace."
55 | default = null
56 | type = string
57 | }
58 |
59 | variable "trigger_prefixes" {
60 | description = "List of paths relative to the repository root which describe all locations to be tracked for changes in the workspace."
61 | default = null
62 | type = list(any)
63 | }
64 |
65 | variable "variables" {
66 | description = "Map of environment or Terraform variables to define in the workspace."
67 | default = {}
68 | type = map(map(string))
69 | }
70 |
71 | variable "vcs_repo" {
72 | description = "The VCS repository to configure."
73 | default = {
74 | }
75 | type = map(string)
76 | }
77 |
78 | variable "vcs_branch_override" {
79 | description = "Use this to override the branch you want your workspace to plan / apply against."
80 | default = null
81 | type = string
82 | }
83 |
84 | variable "working_directory" {
85 | description = "A relative path that Terraform will execute within. Defaults to the root of your repository."
86 | default = null
87 | }
88 |
--------------------------------------------------------------------------------
/outputs.tf:
--------------------------------------------------------------------------------
1 | output "global_workspace" {
2 | value = module.tfc_config.workspace
3 | description = "Configuration information for the global workspace."
4 | }
5 |
6 | output "environment_workspaces" {
7 | value = local.environment_workspaces
8 | description = "A list of environment workspaces & their configurations."
9 | }
10 |
11 | output "project_workspaces" {
12 | value = local.project_workspaces
13 | description = "A list of project workspaces & their configurations."
14 | }
15 |
16 |
--------------------------------------------------------------------------------
/test/.gitignore:
--------------------------------------------------------------------------------
1 | .test-harness
2 |
--------------------------------------------------------------------------------
/test/Makefile:
--------------------------------------------------------------------------------
1 | TEST_HARNESS ?= https://github.com/cloudposse/test-harness.git
2 | TEST_HARNESS_BRANCH ?= master
3 | TEST_HARNESS_PATH = $(realpath .test-harness)
4 | BATS_ARGS ?= --tap
5 | BATS_LOG ?= test.log
6 |
7 | # Define a macro to run the tests
8 | define RUN_TESTS
9 | @echo "Running tests in $(1)"
10 | @cd $(1) && bats $(BATS_ARGS) $(addsuffix .bats,$(addprefix $(TEST_HARNESS_PATH)/test/terraform/,$(TESTS)))
11 | endef
12 |
13 | default: all
14 |
15 | -include Makefile.*
16 |
17 | ## Provision the test-harnesss
18 | .test-harness:
19 | [ -d $@ ] || git clone --depth=1 -b $(TEST_HARNESS_BRANCH) $(TEST_HARNESS) $@
20 |
21 | ## Initialize the tests
22 | init: .test-harness
23 |
24 | ## Install all dependencies (OS specific)
25 | deps::
26 | @exit 0
27 |
28 | ## Clean up the test harness
29 | clean:
30 | [ "$(TEST_HARNESS_PATH)" == "/" ] || rm -rf $(TEST_HARNESS_PATH)
31 |
32 | ## Run all tests
33 | all: module examples/complete
34 |
35 | ## Run basic sanity checks against the module itself
36 | module: export TESTS ?= installed lint get-modules module-pinning get-plugins provider-pinning validate terraform-docs input-descriptions output-descriptions
37 | module: deps
38 | $(call RUN_TESTS, ../)
39 |
40 | ## Run tests against example
41 | examples/complete: export TESTS ?= installed lint get-modules get-plugins validate
42 | examples/complete: deps
43 | $(call RUN_TESTS, ../$@)
44 |
--------------------------------------------------------------------------------
/test/Makefile.alpine:
--------------------------------------------------------------------------------
1 | ifneq (,$(wildcard /sbin/apk))
2 | ## Install all dependencies for alpine
3 | deps:: init
4 | @apk add --update terraform-docs@cloudposse json2hcl@cloudposse
5 | endif
6 |
--------------------------------------------------------------------------------
/test/src/.gitignore:
--------------------------------------------------------------------------------
1 | .gopath
2 | vendor/
3 |
--------------------------------------------------------------------------------
/test/src/Makefile:
--------------------------------------------------------------------------------
1 | export TF_CLI_ARGS_init ?= -get-plugins=true
2 | export TERRAFORM_VERSION ?= $(shell curl -s https://checkpoint-api.hashicorp.com/v1/check/terraform | jq -r -M '.current_version' | cut -d. -f1-2)
3 |
4 | .DEFAULT_GOAL : all
5 | .PHONY: all
6 |
7 | ## Default target
8 | all: test
9 |
10 | .PHONY : init
11 | ## Initialize tests
12 | init:
13 | @exit 0
14 |
15 | .PHONY : test
16 | ## Run tests
17 | test: init
18 | go mod download
19 | go test -v -timeout 60m -run TestExamplesComplete
20 |
21 | ## Run tests in docker container
22 | docker/test:
23 | docker run --name terratest --rm -it -e AWS_ACCESS_KEY_ID -e AWS_SECRET_ACCESS_KEY -e AWS_SESSION_TOKEN -e GITHUB_TOKEN \
24 | -e PATH="/usr/local/terraform/$(TERRAFORM_VERSION)/bin:/go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" \
25 | -v $(CURDIR)/../../:/module/ cloudposse/test-harness:latest -C /module/test/src test
26 |
27 | .PHONY : clean
28 | ## Clean up files
29 | clean:
30 | rm -rf ../../examples/complete/*.tfstate*
31 |
--------------------------------------------------------------------------------
/test/src/examples_complete_test.go:
--------------------------------------------------------------------------------
1 | package test
2 |
3 | import (
4 | "math/rand"
5 | "strconv"
6 | "testing"
7 |
8 | "github.com/gruntwork-io/terratest/modules/terraform"
9 | "github.com/stretchr/testify/assert"
10 | )
11 |
12 | // Test the Terraform module in examples/complete using Terratest.
13 | func TestExamplesComplete(t *testing.T) {
14 | t.Parallel()
15 |
16 | randID := strconv.Itoa(rand.Intn(100000))
17 | attributes := []string{randID}
18 |
19 | terraformOptions := &terraform.Options{
20 | // The path to where our Terraform code is located
21 | TerraformDir: "../../examples/complete",
22 | Upgrade: true,
23 | // Variables to pass to our Terraform code using -var-file options
24 | VarFiles: []string{"fixtures.us-east-2.tfvars"},
25 | // We always include a random attribute so that parallel tests
26 | // and AWS resources do not interfere with each other
27 | Vars: map[string]interface{}{
28 | "attributes": attributes,
29 | },
30 | }
31 | // At the end of the test, run `terraform destroy` to clean up any resources that were created
32 | defer terraform.Destroy(t, terraformOptions)
33 |
34 | // This will run `terraform init` and `terraform apply` and fail the test if there are any errors
35 | terraform.InitAndApply(t, terraformOptions)
36 |
37 | globalWorkspace := terraform.OutputMap(t, terraformOptions, "global_workspace")
38 | assert.NotEmpty(t, globalWorkspace)
39 | assert.NotEmpty(t, globalWorkspace["name"])
40 |
41 | projectWorkspaces := terraform.OutputMap(t, terraformOptions, "project_workspaces")
42 | assert.NotEmpty(t, projectWorkspaces)
43 | assert.NotEmpty(t, projectWorkspaces["gbl-root-example1"])
44 |
45 | envWorkspaces := terraform.OutputMap(t, terraformOptions, "environment_workspaces")
46 | assert.NotEmpty(t, envWorkspaces)
47 | assert.NotEmpty(t, envWorkspaces["gbl-root"])
48 | }
49 |
--------------------------------------------------------------------------------
/test/src/go.mod:
--------------------------------------------------------------------------------
1 | module github.com/cloudposse/terraform-example-module
2 |
3 | go 1.13
4 |
5 | require (
6 | github.com/gruntwork-io/terratest v0.28.15
7 | github.com/stretchr/testify v1.6.1
8 | golang.org/x/crypto v0.0.0-20200820211705-5c72a883971a // indirect
9 | golang.org/x/net v0.0.0-20200822124328-c89045814202 // indirect
10 | golang.org/x/sys v0.0.0-20200828194041-157a740278f4 // indirect
11 | gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776 // indirect
12 | )
13 |
--------------------------------------------------------------------------------
/test/src/go.sum:
--------------------------------------------------------------------------------
1 | cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
2 | cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
3 | cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU=
4 | cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6AU=
5 | cloud.google.com/go v0.44.2/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY=
6 | cloud.google.com/go v0.45.1/go.mod h1:RpBamKRgapWJb87xiFSdk4g1CME7QZg3uwTez+TSTjc=
7 | cloud.google.com/go v0.46.3/go.mod h1:a6bKKbmY7er1mI7TEI4lsAkts/mkhTSZK8w33B4RAg0=
8 | cloud.google.com/go v0.51.0/go.mod h1:hWtGJ6gnXH+KgDv+V0zFGDvpi07n3z8ZNj3T1RW0Gcw=
9 | cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o=
10 | cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE=
11 | cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I=
12 | cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw=
13 | dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU=
14 | github.com/Azure/azure-sdk-for-go v35.0.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc=
15 | github.com/Azure/azure-sdk-for-go v38.0.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc=
16 | github.com/Azure/azure-sdk-for-go v38.1.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc=
17 | github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78/go.mod h1:LmzpDX56iTiv29bbRTIsUNlaFfuhWRQBWjQdVyAevI8=
18 | github.com/Azure/go-autorest/autorest v0.9.0/go.mod h1:xyHB1BMZT0cuDHU7I0+g046+BFDTQ8rEZB0s4Yfa6bI=
19 | github.com/Azure/go-autorest/autorest v0.9.3/go.mod h1:GsRuLYvwzLjjjRoWEIyMUaYq8GNUx2nRB378IPt/1p0=
20 | github.com/Azure/go-autorest/autorest/adal v0.5.0/go.mod h1:8Z9fGy2MpX0PvDjB1pEgQTmVqjGhiHBW7RJJEciWzS0=
21 | github.com/Azure/go-autorest/autorest/adal v0.8.0/go.mod h1:Z6vX6WXXuyieHAXwMj0S6HY6e6wcHn37qQMBQlvY3lc=
22 | github.com/Azure/go-autorest/autorest/adal v0.8.1/go.mod h1:ZjhuQClTqx435SRJ2iMlOxPYt3d2C/T/7TiQCVZSn3Q=
23 | github.com/Azure/go-autorest/autorest/azure/auth v0.4.2/go.mod h1:90gmfKdlmKgfjUpnCEpOJzsUEjrWDSLwHIG73tSXddM=
24 | github.com/Azure/go-autorest/autorest/azure/cli v0.3.1/go.mod h1:ZG5p860J94/0kI9mNJVoIoLgXcirM2gF5i2kWloofxw=
25 | github.com/Azure/go-autorest/autorest/date v0.1.0/go.mod h1:plvfp3oPSKwf2DNjlBjWF/7vwR+cUD/ELuzDCXwHUVA=
26 | github.com/Azure/go-autorest/autorest/date v0.2.0/go.mod h1:vcORJHLJEh643/Ioh9+vPmf1Ij9AEBM5FuBIXLmIy0g=
27 | github.com/Azure/go-autorest/autorest/mocks v0.1.0/go.mod h1:OTyCOPRA2IgIlWxVYxBee2F5Gr4kF2zd2J5cFRaIDN0=
28 | github.com/Azure/go-autorest/autorest/mocks v0.2.0/go.mod h1:OTyCOPRA2IgIlWxVYxBee2F5Gr4kF2zd2J5cFRaIDN0=
29 | github.com/Azure/go-autorest/autorest/mocks v0.3.0/go.mod h1:a8FDP3DYzQ4RYfVAxAN3SVSiiO77gL2j2ronKKP0syM=
30 | github.com/Azure/go-autorest/autorest/to v0.2.0/go.mod h1:GunWKJp1AEqgMaGLV+iocmRAJWqST1wQYhyyjXJ3SJc=
31 | github.com/Azure/go-autorest/autorest/to v0.3.0/go.mod h1:MgwOyqaIuKdG4TL/2ywSsIWKAfJfgHDo8ObuUk3t5sA=
32 | github.com/Azure/go-autorest/autorest/validation v0.1.0/go.mod h1:Ha3z/SqBeaalWQvokg3NZAlQTalVMtOIAs1aGK7G6u8=
33 | github.com/Azure/go-autorest/autorest/validation v0.2.0/go.mod h1:3EEqHnBxQGHXRYq3HT1WyXAvT7LLY3tl70hw6tQIbjI=
34 | github.com/Azure/go-autorest/logger v0.1.0/go.mod h1:oExouG+K6PryycPJfVSxi/koC6LSNgds39diKLz7Vrc=
35 | github.com/Azure/go-autorest/tracing v0.5.0/go.mod h1:r/s2XiOKccPW3HrqB+W0TQzfbtp2fGCgRFtBroKn4Dk=
36 | github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
37 | github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo=
38 | github.com/GoogleCloudPlatform/k8s-cloud-provider v0.0.0-20190822182118-27a4ced34534/go.mod h1:iroGtC8B3tQiqtds1l+mgk/BBOrxbqjH+eUfFQYRc14=
39 | github.com/Microsoft/go-winio v0.4.14/go.mod h1:qXqCSQ3Xa7+6tgxaGTIe4Kpcdsi+P8jBhyzoq1bpyYA=
40 | github.com/NYTimes/gziphandler v0.0.0-20170623195520-56545f4a5d46/go.mod h1:3wb06e3pkSAbeQ52E9H9iFoQsEEwGN64994WTCIhntQ=
41 | github.com/PuerkitoBio/purell v1.0.0/go.mod h1:c11w/QuzBsJSee3cPx9rAFu61PvFxuPbtSwDGJws/X0=
42 | github.com/PuerkitoBio/purell v1.1.1/go.mod h1:c11w/QuzBsJSee3cPx9rAFu61PvFxuPbtSwDGJws/X0=
43 | github.com/PuerkitoBio/urlesc v0.0.0-20160726150825-5bd2802263f2/go.mod h1:uGdkoq3SwY9Y+13GIhn11/XLaGBb4BfwItxLd5jeuXE=
44 | github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578/go.mod h1:uGdkoq3SwY9Y+13GIhn11/XLaGBb4BfwItxLd5jeuXE=
45 | github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc=
46 | github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0=
47 | github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8=
48 | github.com/aws/aws-lambda-go v1.13.3/go.mod h1:4UKl9IzQMoD+QF79YdCuzCwp8VbmG4VAQwij/eHl5CU=
49 | github.com/aws/aws-sdk-go v1.16.26/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo=
50 | github.com/aws/aws-sdk-go v1.27.1/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo=
51 | github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q=
52 | github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8=
53 | github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs=
54 | github.com/blang/semver v3.5.0+incompatible/go.mod h1:kRBLl5iJ+tD4TcOOxsy/0fnwebNt5EWlYSAyrTnjyyk=
55 | github.com/boombuler/barcode v1.0.1-0.20190219062509-6c824513bacc/go.mod h1:paBWMcWSl3LHKBqUq+rly7CNSldXjb2rDl3JlRe0mD8=
56 | github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
57 | github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI=
58 | github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI=
59 | github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU=
60 | github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw=
61 | github.com/cockroachdb/datadriven v0.0.0-20190809214429-80d97fb3cbaa/go.mod h1:zn76sxSg3SzpJ0PPJaLDCu+Bu0Lg3sKTORVIj19EIF8=
62 | github.com/containerd/containerd v1.3.0/go.mod h1:bC6axHOhabU15QhwfG7w5PipXdVtMXFTttgp+kVtyUA=
63 | github.com/coreos/etcd v3.3.10+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE=
64 | github.com/coreos/go-etcd v2.0.0+incompatible/go.mod h1:Jez6KQU2B/sWsbdaef3ED8NzMklzPG4d5KIOhIy30Tk=
65 | github.com/coreos/go-oidc v2.1.0+incompatible/go.mod h1:CgnwVTmzoESiwO9qyAFEMiHoZ1nMCKZlZ9V6mm3/LKc=
66 | github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk=
67 | github.com/coreos/go-semver v0.3.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk=
68 | github.com/coreos/go-systemd v0.0.0-20180511133405-39ca1b05acc7/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4=
69 | github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4=
70 | github.com/coreos/pkg v0.0.0-20160727233714-3ac0863d7acf/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA=
71 | github.com/coreos/pkg v0.0.0-20180108230652-97fdf19511ea/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA=
72 | github.com/cpuguy83/go-md2man v1.0.10/go.mod h1:SmD6nW6nTyfqj6ABTjUi3V3JVMnlJmwcJI5acqYI6dE=
73 | github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU=
74 | github.com/cpuguy83/go-md2man/v2 v2.0.0/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU=
75 | github.com/creack/pty v1.1.7/go.mod h1:lj5s0c3V2DBrqTV7llrYr5NG6My20zk30Fl46Y7DoTY=
76 | github.com/davecgh/go-spew v0.0.0-20151105211317-5215b55f46b2/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
77 | github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
78 | github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
79 | github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
80 | github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ=
81 | github.com/dimchansky/utfbom v1.1.0/go.mod h1:rO41eb7gLfo8SF1jd9F8HplJm1Fewwi4mQvIirEdv+8=
82 | github.com/dnaeon/go-vcr v1.0.1/go.mod h1:aBB1+wY4s93YsC3HHjMBMrwTj2R9FHDzUr9KyGc8n1E=
83 | github.com/docker/cli v0.0.0-20191017083524-a8ff7f821017/go.mod h1:JLrzqnKDaYBop7H2jaqPtU4hHvMKP+vjCwu2uszcLI8=
84 | github.com/docker/cli v0.0.0-20200109221225-a4f60165b7a3/go.mod h1:JLrzqnKDaYBop7H2jaqPtU4hHvMKP+vjCwu2uszcLI8=
85 | github.com/docker/distribution v2.7.1+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w=
86 | github.com/docker/docker v0.7.3-0.20190327010347-be7ac8be2ae0/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk=
87 | github.com/docker/docker v1.4.2-0.20190924003213-a8608b5b67c7/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk=
88 | github.com/docker/docker-credential-helpers v0.6.3/go.mod h1:WRaJzqw3CTB9bk10avuGsjVBZsD05qeibJ1/TYlvc0Y=
89 | github.com/docker/go-connections v0.4.0/go.mod h1:Gbd7IOopHjR8Iph03tsViu4nIes5XhDvyHbTtUxmeec=
90 | github.com/docker/go-units v0.4.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk=
91 | github.com/docker/spdystream v0.0.0-20160310174837-449fdfce4d96/go.mod h1:Qh8CwZgvJUkLughtfhJv5dyTYa91l1fOUCrgjqmcifM=
92 | github.com/docker/spdystream v0.0.0-20181023171402-6480d4af844c/go.mod h1:Qh8CwZgvJUkLughtfhJv5dyTYa91l1fOUCrgjqmcifM=
93 | github.com/docopt/docopt-go v0.0.0-20180111231733-ee0de3bc6815/go.mod h1:WwZ+bS3ebgob9U8Nd0kOddGdZWjyMGR8Wziv+TBNwSE=
94 | github.com/dustin/go-humanize v0.0.0-20171111073723-bb3d318650d4/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk=
95 | github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk=
96 | github.com/elazarl/goproxy v0.0.0-20170405201442-c4fc26588b6e/go.mod h1:/Zj4wYkgs4iZTTu3o/KG3Itv/qCCa8VVMlb3i9OVuzc=
97 | github.com/elazarl/goproxy v0.0.0-20180725130230-947c36da3153/go.mod h1:/Zj4wYkgs4iZTTu3o/KG3Itv/qCCa8VVMlb3i9OVuzc=
98 | github.com/elazarl/goproxy v0.0.0-20190911111923-ecfe977594f1/go.mod h1:Ro8st/ElPeALwNFlcTpWmkr6IoMFfkjXAvTHpevnDsM=
99 | github.com/elazarl/goproxy/ext v0.0.0-20190711103511-473e67f1d7d2/go.mod h1:gNh8nYJoAm43RfaxurUnxr+N1PwuFV3ZMl/efxlIlY8=
100 | github.com/emicklei/go-restful v0.0.0-20170410110728-ff4f55a20633/go.mod h1:otzb+WCGbkyDHkqmQmT5YD2WR4BBwUdeQoFo8l/7tVs=
101 | github.com/emicklei/go-restful v2.9.5+incompatible/go.mod h1:otzb+WCGbkyDHkqmQmT5YD2WR4BBwUdeQoFo8l/7tVs=
102 | github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
103 | github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
104 | github.com/evanphx/json-patch v4.2.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk=
105 | github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4=
106 | github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo=
107 | github.com/ghodss/yaml v0.0.0-20150909031657-73d445a93680/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04=
108 | github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04=
109 | github.com/go-errors/errors v1.0.2-0.20180813162953-d98b870cc4e0/go.mod h1:f4zRHt4oKfwPJE5k8C9vpYG+aDHdBFUsgrm6/TyX73Q=
110 | github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8=
111 | github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as=
112 | github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE=
113 | github.com/go-logr/logr v0.1.0/go.mod h1:ixOQHD9gLJUVQQ2ZOR7zLEifBX6tGkNJF4QyIY7sIas=
114 | github.com/go-openapi/jsonpointer v0.0.0-20160704185906-46af16f9f7b1/go.mod h1:+35s3my2LFTysnkMfxsJBAMHj/DoqoB9knIWoYG/Vk0=
115 | github.com/go-openapi/jsonpointer v0.19.2/go.mod h1:3akKfEdA7DF1sugOqz1dVQHBcuDBPKZGEoHC/NkiQRg=
116 | github.com/go-openapi/jsonpointer v0.19.3/go.mod h1:Pl9vOtqEWErmShwVjC8pYs9cog34VGT37dQOVbmoatg=
117 | github.com/go-openapi/jsonreference v0.0.0-20160704190145-13c6e3589ad9/go.mod h1:W3Z9FmVs9qj+KR4zFKmDPGiLdk1D9Rlm7cyMvf57TTg=
118 | github.com/go-openapi/jsonreference v0.19.2/go.mod h1:jMjeRr2HHw6nAVajTXJ4eiUwohSTlpa0o73RUL1owJc=
119 | github.com/go-openapi/jsonreference v0.19.3/go.mod h1:rjx6GuL8TTa9VaixXglHmQmIL98+wF9xc8zWvFonSJ8=
120 | github.com/go-openapi/spec v0.0.0-20160808142527-6aced65f8501/go.mod h1:J8+jY1nAiCcj+friV/PDoE1/3eeccG9LYBs0tYvLOWc=
121 | github.com/go-openapi/spec v0.19.3/go.mod h1:FpwSN1ksY1eteniUU7X0N/BgJ7a4WvBFVA8Lj9mJglo=
122 | github.com/go-openapi/swag v0.0.0-20160704191624-1d0bd113de87/go.mod h1:DXUve3Dpr1UfpPtxFw+EFuQ41HhCWZfha5jSVRG7C7I=
123 | github.com/go-openapi/swag v0.19.2/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk=
124 | github.com/go-openapi/swag v0.19.5/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk=
125 | github.com/go-sql-driver/mysql v1.4.1/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w=
126 | github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY=
127 | github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ=
128 | github.com/gogo/protobuf v1.2.1/go.mod h1:hp+jE20tsWTFYpLwKvXlhS1hjn+gTNwPg2I6zVXpSg4=
129 | github.com/gogo/protobuf v1.2.2-0.20190723190241-65acae22fc9d/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o=
130 | github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o=
131 | github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q=
132 | github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
133 | github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
134 | github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
135 | github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A=
136 | github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A=
137 | github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y=
138 | github.com/golang/protobuf v0.0.0-20161109072736-4bd1920723d7/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
139 | github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
140 | github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
141 | github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
142 | github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ=
143 | github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ=
144 | github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M=
145 | github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
146 | github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
147 | github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
148 | github.com/google/go-containerregistry v0.0.0-20200110202235-f4fb41bf00a3/go.mod h1:2wIuQute9+hhWqvL3vEI7YB0EKluF4WcPzI1eAliazk=
149 | github.com/google/gofuzz v0.0.0-20161122191042-44d81051d367/go.mod h1:HP5RmnzzSNb993RKQDq4+1A4ia9nllfqcQFTQJedwGI=
150 | github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
151 | github.com/google/gofuzz v1.1.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
152 | github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs=
153 | github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc=
154 | github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc=
155 | github.com/google/pprof v0.0.0-20191218002539-d4f498aebedc/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM=
156 | github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI=
157 | github.com/google/uuid v1.0.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
158 | github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
159 | github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg=
160 | github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk=
161 | github.com/googleapis/gnostic v0.0.0-20170729233727-0c5108395e2d/go.mod h1:sJBsCZ4ayReDTBIg8b9dl28c5xFWyhBTVRp3pOg5EKY=
162 | github.com/googleapis/gnostic v0.1.0/go.mod h1:sJBsCZ4ayReDTBIg8b9dl28c5xFWyhBTVRp3pOg5EKY=
163 | github.com/googleapis/gnostic v0.2.2/go.mod h1:sJBsCZ4ayReDTBIg8b9dl28c5xFWyhBTVRp3pOg5EKY=
164 | github.com/googleapis/gnostic v0.3.1/go.mod h1:on+2t9HRStVgn95RSsFWFz+6Q0Snyqv1awfrALZdbtU=
165 | github.com/gophercloud/gophercloud v0.1.0/go.mod h1:vxM41WHh5uqHVBMZHzuwNOHh8XEoIEcSTewFxm1c5g8=
166 | github.com/gorilla/mux v1.7.3/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs=
167 | github.com/gorilla/websocket v0.0.0-20170926233335-4201258b820c/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ=
168 | github.com/gorilla/websocket v1.4.0/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ=
169 | github.com/gregjones/httpcache v0.0.0-20180305231024-9cad4c3443a7/go.mod h1:FecbI9+v66THATjSRHfNgh1IVFe/9kFxbXtjV0ctIMA=
170 | github.com/grpc-ecosystem/go-grpc-middleware v1.0.1-0.20190118093823-f849b5445de4/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs=
171 | github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk=
172 | github.com/grpc-ecosystem/grpc-gateway v1.9.5/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY=
173 | github.com/gruntwork-io/gruntwork-cli v0.5.1/go.mod h1:IBX21bESC1/LGoV7jhXKUnTQTZgQ6dYRsoj/VqxUSZQ=
174 | github.com/gruntwork-io/terratest v0.28.15 h1:in1DRBq8/RjxMyb6Amr1SRrczOK/hGnPi+gQXOOtbZI=
175 | github.com/gruntwork-io/terratest v0.28.15/go.mod h1:PkVylPuUNmItkfOTwSiFreYA4FkanK8AluBuNeGxQOw=
176 | github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8=
177 | github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8=
178 | github.com/hashicorp/golang-lru v0.5.3/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4=
179 | github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ=
180 | github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU=
181 | github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc=
182 | github.com/imdario/mergo v0.3.5/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJh5FfA=
183 | github.com/imdario/mergo v0.3.7/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJh5FfA=
184 | github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8=
185 | github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k=
186 | github.com/joefitzgerald/rainbow-reporter v0.1.0/go.mod h1:481CNgqmVHQZzdIbN52CupLJyoVwB10FQ/IQlF1pdL8=
187 | github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo=
188 | github.com/json-iterator/go v0.0.0-20180612202835-f2b4162afba3/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU=
189 | github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU=
190 | github.com/json-iterator/go v1.1.7/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4=
191 | github.com/json-iterator/go v1.1.8/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4=
192 | github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU=
193 | github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk=
194 | github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w=
195 | github.com/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvWXihfKN4Q=
196 | github.com/kisielk/errcheck v1.2.0/go.mod h1:/BMXB+zMLi60iA8Vv6Ksmxu/1UDYcXs4uQLJ+jE2L00=
197 | github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck=
198 | github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
199 | github.com/konsorten/go-windows-terminal-sequences v1.0.2/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
200 | github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc=
201 | github.com/kr/pretty v0.1.0 h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI=
202 | github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
203 | github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
204 | github.com/kr/pty v1.1.5/go.mod h1:9r2w37qlBe7rQ6e1fg1S/9xpWHSnaqNdHD3WcMdbPDA=
205 | github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE=
206 | github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
207 | github.com/magiconair/properties v1.8.0/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ=
208 | github.com/mailru/easyjson v0.0.0-20160728113105-d5b7844b561a/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc=
209 | github.com/mailru/easyjson v0.0.0-20190614124828-94de47d64c63/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc=
210 | github.com/mailru/easyjson v0.0.0-20190626092158-b2ccc519800e/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc=
211 | github.com/mailru/easyjson v0.7.0/go.mod h1:KAzv3t3aY1NaHWoQz1+4F1ccyAH66Jk7yos7ldAVICs=
212 | github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU=
213 | github.com/mattn/go-isatty v0.0.4/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4=
214 | github.com/mattn/go-runewidth v0.0.2/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU=
215 | github.com/mattn/go-zglob v0.0.2-0.20190814121620-e3c945676326/go.mod h1:9fxibJccNxU2cnpIKLRRFA7zX7qhkJIQWBb449FYHOo=
216 | github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0=
217 | github.com/maxbrunsfeld/counterfeiter/v6 v6.2.2/go.mod h1:eD9eIE7cdwcMi9rYluz88Jz2VyhSmden33/aXg4oVIY=
218 | github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0=
219 | github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y=
220 | github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
221 | github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
222 | github.com/modern-go/reflect2 v0.0.0-20180320133207-05fbef0ca5da/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0=
223 | github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0=
224 | github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0=
225 | github.com/morikuni/aec v1.0.0/go.mod h1:BbKIizmSmc5MMPqRYbxO4ZU0S0+P200+tUnFx7PXmsc=
226 | github.com/munnerz/goautoneg v0.0.0-20120707110453-a547fc61f48d/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ=
227 | github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ=
228 | github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U=
229 | github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f/go.mod h1:ZdcZmHo+o7JKHSa8/e818NopupXU1YMK5fe1lsApnBw=
230 | github.com/olekukonko/tablewriter v0.0.0-20170122224234-a0225b3f23b5/go.mod h1:vsDQFd/mU46D+Z4whnwzcISnGGzXWMclvtLoiIKAKIo=
231 | github.com/onsi/ginkgo v0.0.0-20170829012221-11459a886d9c/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
232 | github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
233 | github.com/onsi/ginkgo v1.8.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
234 | github.com/onsi/ginkgo v1.10.1/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
235 | github.com/onsi/ginkgo v1.11.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
236 | github.com/onsi/gomega v0.0.0-20170829124025-dcabb60a477c/go.mod h1:C1qb7wdrVGGVU+Z6iS04AVkA3Q65CEZX59MT0QO5uiA=
237 | github.com/onsi/gomega v1.5.0/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY=
238 | github.com/onsi/gomega v1.7.0/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY=
239 | github.com/opencontainers/go-digest v1.0.0-rc1/go.mod h1:cMLVZDEM3+U2I4VmLI6N8jQYUd2OVphdqWwCJHrFt2s=
240 | github.com/opencontainers/image-spec v1.0.1/go.mod h1:BtxoFyWECRxE4U/7sNtV5W15zMzWCbyJoFRP3s7yZA0=
241 | github.com/oracle/oci-go-sdk v7.1.0+incompatible/go.mod h1:VQb79nF8Z2cwLkLS35ukwStZIg5F66tcBccjip/j888=
242 | github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic=
243 | github.com/peterbourgon/diskv v2.0.1+incompatible/go.mod h1:uqqh8zWWbv1HBMNONnaR/tNboyR3/BZd58JJSHlUSCU=
244 | github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
245 | github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
246 | github.com/pkg/errors v0.9.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
247 | github.com/pmezard/go-difflib v0.0.0-20151028094244-d8ed2627bdf0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
248 | github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
249 | github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
250 | github.com/pquerna/cachecontrol v0.0.0-20171018203845-0dec1b30a021/go.mod h1:prYjPmNq4d1NPVmpShWobRqXY3q7Vp+80DqgxxUrUIA=
251 | github.com/pquerna/otp v1.2.0/go.mod h1:dkJfzwRKNiegxyNb54X/3fLwhCynbMspSyWKnvi1AEg=
252 | github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw=
253 | github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo=
254 | github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo=
255 | github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
256 | github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
257 | github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4=
258 | github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk=
259 | github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA=
260 | github.com/remyoudompheng/bigfft v0.0.0-20170806203942-52369c62f446/go.mod h1:uYEyJGbgTkfkS4+E/PavXkNJcbFIpEtjt2B0KDQ5+9M=
261 | github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg=
262 | github.com/rogpeppe/go-charset v0.0.0-20180617210344-2471d30d28b4/go.mod h1:qgYeAmZ5ZIpBWTGllZSQnw97Dj+woV0toclVaRGI8pc=
263 | github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4=
264 | github.com/rubiojr/go-vhd v0.0.0-20160810183302-0bfd3b39853c/go.mod h1:DM5xW0nvfNNm2uytzsvhI3OnX8uzaRAg8UX/CnDqbto=
265 | github.com/russross/blackfriday v1.5.2/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR/rfWxYHBV53g=
266 | github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
267 | github.com/satori/go.uuid v1.2.0/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdhQKdks0=
268 | github.com/sclevine/spec v1.2.0/go.mod h1:W4J29eT/Kzv7/b9IWLB055Z+qvVC9vt0Arko24q7p+U=
269 | github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc=
270 | github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo=
271 | github.com/sirupsen/logrus v1.4.1/go.mod h1:ni0Sbl8bgC9z8RoU9G6nDWqqs/fq4eDPysMBDgk/93Q=
272 | github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE=
273 | github.com/soheilhy/cmux v0.1.4/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4kGIyLM=
274 | github.com/spf13/afero v1.1.2/go.mod h1:j4pytiNVoe2o6bmDsKpLACNPDBIoEAkihy7loJ1B0CQ=
275 | github.com/spf13/afero v1.2.2/go.mod h1:9ZxEEn6pIJ8Rxe320qSDBk6AsU0r9pR7Q4OcevTdifk=
276 | github.com/spf13/cast v1.3.0/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE=
277 | github.com/spf13/cobra v0.0.3/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ=
278 | github.com/spf13/cobra v0.0.5/go.mod h1:3K3wKZymM7VvHMDS9+Akkh4K60UwM26emMESw8tLCHU=
279 | github.com/spf13/jwalterweatherman v1.0.0/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo=
280 | github.com/spf13/pflag v0.0.0-20170130214245-9ff6c6923cff/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4=
281 | github.com/spf13/pflag v1.0.1/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4=
282 | github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4=
283 | github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
284 | github.com/spf13/viper v1.3.2/go.mod h1:ZiWeW+zYFKm7srdB9IoDzzZXaJaI5eL9QjNiN/DMA2s=
285 | github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
286 | github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
287 | github.com/stretchr/objx v0.2.0/go.mod h1:qt09Ya8vawLte6SNmTgCsAVtYtaKzEcn8ATUoHMkEqE=
288 | github.com/stretchr/testify v0.0.0-20151208002404-e3a8ff8ce365/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
289 | github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
290 | github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
291 | github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
292 | github.com/stretchr/testify v1.6.1 h1:hDPOHmpOpP40lSULcqw7IrRb/u7w6RpDC9399XyoNd0=
293 | github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
294 | github.com/tmc/grpc-websocket-proxy v0.0.0-20170815181823-89b8d40f7ca8/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U=
295 | github.com/ugorji/go/codec v0.0.0-20181204163529-d75b2dcb6bc8/go.mod h1:VFNgLljTbGfSG7qAOspJ7OScBnGdDN/yBr0sguwnwf0=
296 | github.com/urfave/cli v1.20.0/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijbERA=
297 | github.com/urfave/cli v1.22.1/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0=
298 | github.com/vdemeester/k8s-pkg-credentialprovider v0.0.0-20200107171650-7c61ffa44238/go.mod h1:JwQJCMWpUDqjZrB5jpw0f5VbN7U95zxFy1ZDpoEarGo=
299 | github.com/vmware/govmomi v0.20.3/go.mod h1:URlwyTFZX72RmxtxuaFL2Uj3fD1JTvZdx59bHWk6aFU=
300 | github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU=
301 | github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77/go.mod h1:aYKd//L2LvnjZzWKhF00oedf4jCCReLcmhLdhm1A27Q=
302 | go.etcd.io/bbolt v1.3.3/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU=
303 | go.etcd.io/etcd v0.0.0-20191023171146-3cf2f69b5738/go.mod h1:dnLIgRNXwCJa5e+c6mIZCrds/GIG4ncV9HhK5PX7jPg=
304 | go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU=
305 | go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8=
306 | go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw=
307 | go.uber.org/atomic v1.3.2/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE=
308 | go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0=
309 | go.uber.org/zap v1.10.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q=
310 | golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
311 | golang.org/x/crypto v0.0.0-20181203042331-505ab145d0a9/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
312 | golang.org/x/crypto v0.0.0-20190211182817-74369b46fc67/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
313 | golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
314 | golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
315 | golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
316 | golang.org/x/crypto v0.0.0-20190611184440-5c40567a22f8/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
317 | golang.org/x/crypto v0.0.0-20190820162420-60c769a6c586/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
318 | golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
319 | golang.org/x/crypto v0.0.0-20191206172530-e9b2fee46413/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
320 | golang.org/x/crypto v0.0.0-20200220183623-bac4c82f6975/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
321 | golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
322 | golang.org/x/crypto v0.0.0-20200820211705-5c72a883971a h1:vclmkQCjlDX5OydZ9wv8rBCcS0QyQY66Mpf/7BZbInM=
323 | golang.org/x/crypto v0.0.0-20200820211705-5c72a883971a/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
324 | golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
325 | golang.org/x/exp v0.0.0-20190125153040-c74c464bbbf2/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
326 | golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
327 | golang.org/x/exp v0.0.0-20190312203227-4b39c73a6495/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8=
328 | golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8=
329 | golang.org/x/exp v0.0.0-20190829153037-c13cbed26979/go.mod h1:86+5VVa7VpoJ4kLfm080zCjGlMRFzhUhsZKEZO7MGek=
330 | golang.org/x/exp v0.0.0-20191227195350-da58074b4299/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4=
331 | golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js=
332 | golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0=
333 | golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE=
334 | golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU=
335 | golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE=
336 | golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
337 | golang.org/x/lint v0.0.0-20190409202823-959b441ac422/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
338 | golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
339 | golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRuDixDT3tpyyb+LUpUlRWLxfhWrs=
340 | golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE=
341 | golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o=
342 | golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc=
343 | golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY=
344 | golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg=
345 | golang.org/x/net v0.0.0-20170114055629-f2499483f923/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
346 | golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
347 | golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
348 | golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
349 | golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
350 | golang.org/x/net v0.0.0-20181220203305-927f97764cc3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
351 | golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
352 | golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
353 | golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
354 | golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
355 | golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
356 | golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
357 | golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks=
358 | golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
359 | golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
360 | golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
361 | golang.org/x/net v0.0.0-20190813141303-74dc4d7220e7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
362 | golang.org/x/net v0.0.0-20190827160401-ba9fcec4b297/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
363 | golang.org/x/net v0.0.0-20191004110552-13f9640d40b9/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
364 | golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
365 | golang.org/x/net v0.0.0-20200822124328-c89045814202 h1:VvcQYSHwXgi7W+TpUR6A9g6Up98WAHf3f/ulnJ62IyA=
366 | golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
367 | golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
368 | golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
369 | golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
370 | golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
371 | golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
372 | golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
373 | golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
374 | golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
375 | golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
376 | golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
377 | golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
378 | golang.org/x/sys v0.0.0-20170830134202-bb24a47a89ea/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
379 | golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
380 | golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
381 | golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
382 | golang.org/x/sys v0.0.0-20181107165924-66b7b1311ac8/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
383 | golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
384 | golang.org/x/sys v0.0.0-20181205085412-a5c9d58dba9a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
385 | golang.org/x/sys v0.0.0-20190209173611-3b5209105503/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
386 | golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
387 | golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
388 | golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
389 | golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
390 | golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
391 | golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
392 | golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
393 | golang.org/x/sys v0.0.0-20190616124812-15dcb6c0061f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
394 | golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
395 | golang.org/x/sys v0.0.0-20190626221950-04f50cda93cb/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
396 | golang.org/x/sys v0.0.0-20190826190057-c7b8b68b1456/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
397 | golang.org/x/sys v0.0.0-20191010194322-b09406accb47/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
398 | golang.org/x/sys v0.0.0-20191022100944-742c48ecaeb7/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
399 | golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
400 | golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
401 | golang.org/x/sys v0.0.0-20200107162124-548cf772de50/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
402 | golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
403 | golang.org/x/sys v0.0.0-20200828194041-157a740278f4 h1:kCCpuwSAoYJPkNc6x0xT9yTtV4oKtARo4RGBQWOfg9E=
404 | golang.org/x/sys v0.0.0-20200828194041-157a740278f4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
405 | golang.org/x/text v0.0.0-20160726164857-2910a502d2bf/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
406 | golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
407 | golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
408 | golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
409 | golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
410 | golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
411 | golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
412 | golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
413 | golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
414 | golang.org/x/tools v0.0.0-20181011042414-1f849cf54d09/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
415 | golang.org/x/tools v0.0.0-20181030221726-6c7e314b6563/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
416 | golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
417 | golang.org/x/tools v0.0.0-20190206041539-40960b6deb8e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
418 | golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY=
419 | golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
420 | golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
421 | golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
422 | golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=
423 | golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=
424 | golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=
425 | golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=
426 | golang.org/x/tools v0.0.0-20190614205625-5aca471b1d59/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=
427 | golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=
428 | golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=
429 | golang.org/x/tools v0.0.0-20190706070813-72ffa07ba3db/go.mod h1:jcCCGcm9btYwXyDqrUWc6MKQKKGJCWEQ3AfLSRIbEuI=
430 | golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
431 | golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
432 | golang.org/x/tools v0.0.0-20190920225731-5eefd052ad72/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
433 | golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
434 | golang.org/x/tools v0.0.0-20191125144606-a911d9008d1f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
435 | golang.org/x/tools v0.0.0-20191205215504-7b8c8591a921/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
436 | golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
437 | golang.org/x/tools v0.0.0-20200113040837-eac381796e91/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
438 | golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
439 | golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
440 | golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
441 | gonum.org/v1/gonum v0.0.0-20190331200053-3d26580ed485/go.mod h1:2ltnJ7xHfj0zHS40VVPYEAAMTa3ZGguvHGBSJeRWqE0=
442 | gonum.org/v1/netlib v0.0.0-20190313105609-8cb42192e0e0/go.mod h1:wa6Ws7BG/ESfp6dHfk7C6KdzKA7wR7u/rKwOGE66zvw=
443 | gonum.org/v1/netlib v0.0.0-20190331212654-76723241ea4e/go.mod h1:kS+toOQn6AQKjmKJ7gzohV1XkqsFehRA2FbsbkopSuQ=
444 | google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE=
445 | google.golang.org/api v0.6.1-0.20190607001116-5213b8090861/go.mod h1:btoxGiFvQNVUZQ8W08zLtrVS08CNpINPEfxXxgJL1Q4=
446 | google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M=
447 | google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg=
448 | google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg=
449 | google.golang.org/api v0.15.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI=
450 | google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM=
451 | google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
452 | google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
453 | google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0=
454 | google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc=
455 | google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc=
456 | google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
457 | google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
458 | google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
459 | google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
460 | google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc=
461 | google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc=
462 | google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8=
463 | google.golang.org/genproto v0.0.0-20191230161307-f3c370f40bfb/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc=
464 | google.golang.org/genproto v0.0.0-20200108215221-bd8f9a0ef82f/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc=
465 | google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c=
466 | google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38=
467 | google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM=
468 | google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg=
469 | google.golang.org/grpc v1.23.1/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg=
470 | google.golang.org/grpc v1.24.0/go.mod h1:XDChyiUovWa60DnaeDeZmSW86xtLtjtZbwvSiRnRtcA=
471 | google.golang.org/grpc v1.26.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk=
472 | gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw=
473 | gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
474 | gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33q108Sa+fhmuc+sWQYwY=
475 | gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
476 | gopkg.in/cheggaaa/pb.v1 v1.0.25/go.mod h1:V/YB90LKu/1FcN3WVnfiiE5oMCibMjukxqG/qStrOgw=
477 | gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI=
478 | gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys=
479 | gopkg.in/gcfg.v1 v1.2.0/go.mod h1:yesOnuUOFQAhST5vPY4nbZsb/huCgGGXlipJsBn0b3o=
480 | gopkg.in/inf.v0 v0.9.1/go.mod h1:cWUDdTG/fYaXco+Dcufb5Vnc6Gp2YChqWtbxRZE0mXw=
481 | gopkg.in/natefinch/lumberjack.v2 v2.0.0/go.mod h1:l0ndWWf7gzL7RNwBG7wST/UCcT4T24xpD6X8LsfU/+k=
482 | gopkg.in/resty.v1 v1.12.0/go.mod h1:mDo4pnntr5jdWRML875a/NmxYqAlA73dVijT2AXvQQo=
483 | gopkg.in/square/go-jose.v2 v2.2.2/go.mod h1:M9dMgbHiYLoDGQrXy7OpJDJWiKiU//h+vD76mk0e1AI=
484 | gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw=
485 | gopkg.in/warnings.v0 v0.1.1/go.mod h1:jksf8JmL6Qr/oQM2OXTHunEvvTAsrWBLb6OOjuVWRNI=
486 | gopkg.in/yaml.v2 v2.0.0-20170812160011-eb3733d160e7/go.mod h1:JAlM8MvJe8wmxCU4Bli9HhUf9+ttbYbLASfIpnQbh74=
487 | gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
488 | gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
489 | gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
490 | gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
491 | gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
492 | gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776 h1:tQIYjPdBoyREyB9XMu+nnTclpTYkz2zFM+lzLJFO4gQ=
493 | gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
494 | gotest.tools v2.2.0+incompatible/go.mod h1:DsYFclhRJ6vuDpmuTbkuFWG+y2sxOXAzmJt81HFBacw=
495 | honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
496 | honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
497 | honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
498 | honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
499 | honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg=
500 | k8s.io/api v0.17.0/go.mod h1:npsyOePkeP0CPwyGfXDHxvypiYMJxBWAMpQxCaJ4ZxI=
501 | k8s.io/api v0.18.3/go.mod h1:UOaMwERbqJMfeeeHc8XJKawj4P9TgDRnViIqqBeH2QA=
502 | k8s.io/apimachinery v0.17.0/go.mod h1:b9qmWdKlLuU9EBh+06BtLcSf/Mu89rWL33naRxs1uZg=
503 | k8s.io/apimachinery v0.18.3/go.mod h1:OaXp26zu/5J7p0f92ASynJa1pZo06YlV9fG7BoWbCko=
504 | k8s.io/apiserver v0.17.0/go.mod h1:ABM+9x/prjINN6iiffRVNCBR2Wk7uY4z+EtEGZD48cg=
505 | k8s.io/client-go v0.17.0/go.mod h1:TYgR6EUHs6k45hb6KWjVD6jFZvJV4gHDikv/It0xz+k=
506 | k8s.io/client-go v0.18.3/go.mod h1:4a/dpQEvzAhT1BbuWW09qvIaGw6Gbu1gZYiQZIi1DMw=
507 | k8s.io/cloud-provider v0.17.0/go.mod h1:Ze4c3w2C0bRsjkBUoHpFi+qWe3ob1wI2/7cUn+YQIDE=
508 | k8s.io/code-generator v0.0.0-20191121015212-c4c8f8345c7e/go.mod h1:DVmfPQgxQENqDIzVR2ddLXMH34qeszkKSdH/N+s+38s=
509 | k8s.io/component-base v0.17.0/go.mod h1:rKuRAokNMY2nn2A6LP/MiwpoaMRHpfRnrPaUJJj1Yoc=
510 | k8s.io/csi-translation-lib v0.17.0/go.mod h1:HEF7MEz7pOLJCnxabi45IPkhSsE/KmxPQksuCrHKWls=
511 | k8s.io/gengo v0.0.0-20190128074634-0689ccc1d7d6/go.mod h1:ezvh/TsK7cY6rbqRK0oQQ8IAqLxYwwyPxAX1Pzy0ii0=
512 | k8s.io/gengo v0.0.0-20190822140433-26a664648505/go.mod h1:ezvh/TsK7cY6rbqRK0oQQ8IAqLxYwwyPxAX1Pzy0ii0=
513 | k8s.io/klog v0.0.0-20181102134211-b9b56d5dfc92/go.mod h1:Gq+BEi5rUBO/HRz0bTSXDUcqjScdoY3a9IHpCEIOOfk=
514 | k8s.io/klog v0.3.0/go.mod h1:Gq+BEi5rUBO/HRz0bTSXDUcqjScdoY3a9IHpCEIOOfk=
515 | k8s.io/klog v1.0.0/go.mod h1:4Bi6QPql/J/LkTDqv7R/cd3hPo4k2DG6Ptcz060Ez5I=
516 | k8s.io/kube-openapi v0.0.0-20191107075043-30be4d16710a/go.mod h1:1TqjTSzOxsLGIKfj0lK8EeCP7K1iUG65v09OM0/WG5E=
517 | k8s.io/kube-openapi v0.0.0-20200410145947-61e04a5be9a6/go.mod h1:GRQhZsXIAJ1xR0C9bd8UpWHZ5plfAS9fzPjJuQ6JL3E=
518 | k8s.io/legacy-cloud-providers v0.17.0/go.mod h1:DdzaepJ3RtRy+e5YhNtrCYwlgyK87j/5+Yfp0L9Syp8=
519 | k8s.io/utils v0.0.0-20191114184206-e782cd3c129f/go.mod h1:sZAwmy6armz5eXlNoLmJcl4F1QuKu7sr+mFQ0byX7Ew=
520 | k8s.io/utils v0.0.0-20200324210504-a9aa75ae1b89/go.mod h1:sZAwmy6armz5eXlNoLmJcl4F1QuKu7sr+mFQ0byX7Ew=
521 | modernc.org/cc v1.0.0/go.mod h1:1Sk4//wdnYJiUIxnW8ddKpaOJCF37yAdqYnkxUpaYxw=
522 | modernc.org/golex v1.0.0/go.mod h1:b/QX9oBD/LhixY6NDh+IdGv17hgB+51fET1i2kPSmvk=
523 | modernc.org/mathutil v1.0.0/go.mod h1:wU0vUrJsVWBZ4P6e7xtFJEhFSNsfRLJ8H458uRjg03k=
524 | modernc.org/strutil v1.0.0/go.mod h1:lstksw84oURvj9y3tn8lGvRxyRC1S2+g5uuIzNfIOBs=
525 | modernc.org/xc v1.0.0/go.mod h1:mRNCo0bvLjGhHO9WsyuKVU4q0ceiDDDoEeWDJHrNx8I=
526 | rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8=
527 | sigs.k8s.io/structured-merge-diff v0.0.0-20190525122527-15d366b2352e/go.mod h1:wWxsB5ozmmv/SG7nM11ayaAW51xMvak/t1r0CSlcokI=
528 | sigs.k8s.io/structured-merge-diff v1.0.1-0.20191108220359-b1b620dd3f06/go.mod h1:/ULNhyfzRopfcjskuui0cTITekDduZ7ycKN3oUT9R18=
529 | sigs.k8s.io/structured-merge-diff/v3 v3.0.0-20200116222232-67a7b8c61874/go.mod h1:PlARxl6Hbt/+BC80dRLi1qAmnMqwqDg62YvvVkZjemw=
530 | sigs.k8s.io/structured-merge-diff/v3 v3.0.0/go.mod h1:PlARxl6Hbt/+BC80dRLi1qAmnMqwqDg62YvvVkZjemw=
531 | sigs.k8s.io/yaml v1.1.0/go.mod h1:UJmg0vDUVViEyp3mgSv9WPwZCDxu4rQW1olrI1uml+o=
532 | sigs.k8s.io/yaml v1.2.0/go.mod h1:yfXDCHCao9+ENCvLSE62v9VSji2MKu5jeNfTrofGhJc=
533 |
--------------------------------------------------------------------------------
/variables.tf:
--------------------------------------------------------------------------------
1 | variable "top_level_workspace" {
2 | type = string
3 | description = "Name of the top-level configuration workspace in Terraform Cloud"
4 | default = "tfc-config"
5 | }
6 |
7 | variable "config_auto_apply" {
8 | type = bool
9 | description = "Controls Terraform Cloud workspace auto-apply feature"
10 | default = true
11 | }
12 |
13 | variable "config_file_path" {
14 | type = string
15 | description = "Relative path to YAML config files"
16 | default = null
17 | }
18 |
19 | variable "config_file_pattern" {
20 | type = string
21 | description = "File pattern used to locate configuration files"
22 | default = "*.yaml"
23 | }
24 |
25 | variable "organization" {
26 | type = string
27 | description = "Name of the organization."
28 | }
29 |
30 | variable "projects_path" {
31 | type = string
32 | description = "Project directory path relative to the repository root"
33 | default = "projects"
34 | }
35 |
36 | variable "tfc_project_path" {
37 | type = string
38 | description = "Name of the working directory where the top-level Terraform Cloud project resides (e.g. within `projects_path`)."
39 | default = "tfc"
40 | }
41 |
42 | variable "terraform_version" {
43 | type = string
44 | description = "The version of Terraform to use for this workspace. Defaults to the latest available version."
45 | default = null
46 | }
47 |
48 | variable "vcs_repo" {
49 | type = map(string)
50 | description = "The VCS repository to configure."
51 | default = {}
52 | }
53 |
--------------------------------------------------------------------------------
/versions.tf:
--------------------------------------------------------------------------------
1 | terraform {
2 | required_version = ">= 0.13.0"
3 |
4 | required_providers {
5 | tfe = {
6 | source = "hashicorp/tfe"
7 | version = ">= 0.23.0"
8 | }
9 |
10 | local = {
11 | source = "hashicorp/local"
12 | version = ">= 1.4"
13 | }
14 |
15 | random = {
16 | source = "hashicorp/random"
17 | version = ">= 2.2"
18 | }
19 | }
20 | }
--------------------------------------------------------------------------------