├── .github └── pull_request_template.md ├── .gitignore ├── LICENSE ├── README.md ├── ci └── run_tests.yaml ├── ec2-worker ├── asg.tf ├── bootstrap_concourse.sh.tpl ├── check_attachment.sh.tpl ├── concourse_systemd.tpl ├── iam.tf ├── main.tf ├── outputs.tf ├── variables.tf └── versions.tf ├── ecs-web ├── .gitignore ├── elb.tf ├── iam.tf ├── main.tf ├── outputs.tf ├── task-definitions │ ├── concourse_web_service.json │ ├── create_concourse_db_container.json │ └── vault_auth_container.json ├── variables.tf └── versions.tf ├── examples └── basic │ ├── basic_network.tf │ ├── concourse.tf │ ├── ecs.tf │ ├── outputs.tf │ ├── rds.tf │ ├── variables.tf │ └── versions.tf ├── keys ├── cross-account.tf ├── keys.tf ├── outputs.tf ├── s3.tf ├── variables.tf └── versions.tf ├── test ├── Dockerfile ├── README.md ├── basic_example_test.go ├── fly │ └── fly.go ├── go.mod ├── go.sum ├── setup.sh └── test_pipeline.yaml └── vault-auth ├── client.tf ├── main.tf ├── policy.tf ├── role.tf └── variables.tf /.github/pull_request_template.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ## Description 4 | 5 | 6 | ## Related Issue 7 | 8 | 9 | 10 | 11 | 12 | ## Motivation and Context 13 | 14 | 15 | ## How Has This Been Tested? 16 | 17 | 18 | 19 | 20 | ## Types of changes 21 | 22 | - [ ] Bug fix (non-breaking change which fixes an issue) 23 | - [ ] New feature (non-breaking change which adds functionality) 24 | - [ ] Breaking change (fix or feature that would cause existing functionality to change) 25 | 26 | ## Checklist: 27 | 28 | 29 | - [ ] My code follows the code style of this project. 30 | - [ ] My change requires a change to the documentation. 31 | - [ ] I have updated the documentation accordingly. 32 | - [ ] I have added tests to cover my changes. 33 | - [ ] All new and existing tests passed. 34 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled files 2 | *.tfstate 3 | *.tfstate.* 4 | 5 | # Module directory 6 | .terraform/ 7 | terraform.tfstate.d 8 | 9 | # Terratest temp dir 10 | .test-data 11 | 12 | # Go best practices dictate that libraries should not include the vendor directory 13 | vendor 14 | -------------------------------------------------------------------------------- /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 [yyyy] [name of copyright owner] 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 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | **UNMAINTAINED: this project is not being actively maintained anymore. It works as it is, but we won't be working on new features or bug fixes anymore. If you are using this module and are willing to maintain it, open an issue and we'll be more than happy to transfer the repo.** 2 | 3 | # terraform-concourse 4 | 5 | [![ci.skyscrape.rs](https://ci.skyscrape.rs/api/v1/teams/skyscrapers/pipelines/terraform-modules/jobs/test-terraform-concourse-master/badge)](https://ci.skyscrape.rs/teams/skyscrapers/pipelines/terraform-modules?groups=terraform-concourse) 6 | 7 | Terraform module to setup Concourse CI. This repository contains the following modules: 8 | 9 | * `keys`: Creates an S3 bucket and uploads an auto-generated set of keys for concourse. 10 | * `ecs-web`: ECS based setup for the Concourse web service, which is currently 11 | the combination of the ATC and TSA. 12 | (See the [Concourse Concepts](https://concourse-ci.org/concepts.html) 13 | documentation what these acronyms mean) 14 | * `ec2-worker`: EC2 based setup for a (pool of) Concourse worker(s). 15 | * `vault-auth`: Sets up the required resources in Vault so it can be integrated in Concourse 16 | 17 | ## keys 18 | 19 | Creates an S3 bucket and uploads an auto-generated set of keys for concourse. 20 | 21 | The following resources are created: 22 | 23 | * S3 bucket for concourse keys 24 | * Uploads concourse keys to bucket 25 | 26 | ### Available variables 27 | 28 | | Name | Description | Type | Default | Required | 29 | | ------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :----: | :-----: | :------: | 30 | | bucket_force_destroy | A boolean that indicates all objects should be deleted from the bucket so that the bucket can be destroyed without error. These objects are not recoverable | string | `false` | no | 31 | | concourse_keys_version | Change this if you want to re-generate Concourse keys | string | `1` | no | 32 | | concourse_workers_iam_role_arns | List of ARNs for the IAM roles that will be able to assume the role to access concourse keys in S3. Normally you'll include the Concourse worker IAM role here | list | - | yes | 33 | | environment | The name of the environment these subnets belong to (prod,stag,dev) | string | - | yes | 34 | | generate_keys | If set to `true` this module will generate the necessary RSA keys with the [`tls_private_key`](https://www.terraform.io/docs/providers/tls/r/private_key.html) resource and upload them to S3 (server-side encrypted). **Be aware** that this will store the generated *unencrypted* keys in the Terraform state, so be sure to use a secure state backend (e.g. S3 encrypted), or set this to `false` and generate the keys manually | string | `true` | no | 35 | | name | The name of the Concourse deployment, used to distinguish different Concourse setups | string | - | yes | 36 | 37 | ### Outputs 38 | 39 | | Name | Description | 40 | | ------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | 41 | | concourse_keys_cross_account_role_arn | IAM role ARN that Concourse workers on other AWS accounts will need to assume to access the Concourse keys bucket | 42 | | keys_bucket_arn | The ARN of the S3 bucket where the concourse keys are stored | 43 | | keys_bucket_id | The id (name) of the S3 bucket where the concourse keys are stored | 44 | 45 | ## ecs-web 46 | 47 | This sets up Concourse Web on an ECS cluster. 48 | 49 | The following resources are created: 50 | 51 | * ELB 52 | * Web concourse ECS service 53 | 54 | ### Available variables 55 | 56 | | Name | Description | Type | Default | Required | 57 | | ------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------- | ---------------------------------- | :------: | 58 | | backend_security_group_id | Security group ID of the ECS servers | `string` | n/a | yes | 59 | | concourse_db_host | Postgresql server hostname or IP | `string` | n/a | yes | 60 | | concourse_db_password | Password to logon to postgresql | `string` | n/a | yes | 61 | | ecs_cluster | Name of the ecs cluster | `string` | n/a | yes | 62 | | ecs_service_role_arn | IAM role to use for the service to be able to let it register to the ELB | `string` | n/a | yes | 63 | | elb_subnets | Subnets to deploy the ELB in | `list(string)` | n/a | yes | 64 | | environment | The name of the environment these subnets belong to (prod,stag,dev) | `string` | n/a | yes | 65 | | keys_bucket_arn | The S3 bucket ARN which contains the SSH keys to connect to the TSA | `string` | n/a | yes | 66 | | keys_bucket_id | The S3 bucket id which contains the SSH keys to connect to the TSA | `string` | n/a | yes | 67 | | name | The name of the Concourse deployment, used to distinguish different Concourse setups | `string` | n/a | yes | 68 | | ssl_certificate_id | SSL certificate arn to attach to the ELB | `string` | n/a | yes | 69 | | allowed_incoming_cidr_blocks | Allowed CIDR blocks in Concourse ATC+TSA. Defaults to 0.0.0.0/0 | `list(string)` |
[
"0.0.0.0/0"
]
| no | 70 | | auto_create_db | If set to `true`, the Concourse web container will attempt to create the postgres database if it's not already created | `bool` | `false` | no | 71 | | concourse_auth_main_team_local_user | Local user to allow access to the main team | `string` | `null` | no | 72 | | concourse_auth_password | Basic authentication password | `string` | `null` | no | 73 | | concourse_auth_username | Basic authentication username | `string` | `null` | no | 74 | | concourse_db_name | Database name to use on the postgresql server | `string` | `"concourse"` | no | 75 | | concourse_db_port | Port of the postgresql server | `string` | `"5432"` | no | 76 | | concourse_db_postgres_engine_version | Postgres engine version used in the Concourse database server. Only needed if `auto_create_db` is set to `true` | `string` | `null` | no | 77 | | concourse_db_root_password | Root password of the Postgres database server. Only needed if `auto_create_db` is set to `true` | `string` | `""` | no | 78 | | concourse_db_username | Database user to logon to postgresql | `string` | `"concourse"` | no | 79 | | concourse_default_build_logs_to_retain | Default number of build logs that are kept. This can be overridden on job level | `string` | `"100"` | no | 80 | | concourse_default_days_to_retain_build_logs | Default days of build logs that are kept. This can be overridden on job level | `string` | `"90"` | no | 81 | | concourse_docker_image | Docker image to use to start concourse | `string` | `"concourse/concourse"` | no | 82 | | concourse_extra_args | Extra arguments to pass to Concourse Web | `string` | `null` | no | 83 | | concourse_extra_env | Extra ENV variables to pass to Concourse Web. Use a map with the ENV var name as key and value as value | `map(string)` | `null` | no | 84 | | concourse_github_auth_client_id | Github client id | `string` | `null` | no | 85 | | concourse_github_auth_client_secret | Github client secret | `string` | `null` | no | 86 | | concourse_github_auth_team | Github team that can login | `string` | `null` | no | 87 | | concourse_hostname | Hostname on which concourse will be available, this hostname needs to point to the ELB. If ommitted, the hostname of the AWS ELB will be used instead | `string` | `null` | no | 88 | | concourse_prometheus_bind_ip | IP address where Concourse will listen for the Prometheus scraper | `string` | `"0.0.0.0"` | no | 89 | | concourse_prometheus_bind_port | Port where Concourse will listen for the Prometheus scraper | `string` | `"9391"` | no | 90 | | concourse_version | Concourse CI version to use. Defaults to the latest tested version | `string` | `"7.7.1"` | no | 91 | | concourse_version_override | Variable to override the default Concourse version. Leave it empty to fallback to `concourse_version`. Useful if you want to default to the module's default but also give the users the option to override it | `string` | `null` | no | 92 | | concourse_web_instance_count | Number of containers running Concourse web | `number` | `1` | no | 93 | | container_cpu | The number of cpu units to reserve for the container. This parameter maps to CpuShares in the Create a container section of the Docker Remote API | `number` | `256` | no | 94 | | container_memory | The amount of memory (in MiB) used by the task | `number` | `256` | no | 95 | | prometheus_cidrs | CIDR blocks that'll allowed to access the Prometheus scraper port | `list(string)` | `[]` | no | 96 | | vault_auth_concourse_role_name | The Vault role that Concourse will use. This is normally fetched from the `vault-auth` Terraform module | `string` | `null` | no | 97 | | vault_docker_image_tag | Docker image version to use for the Vault auth container | `string` | `"1.3.2"` | no | 98 | | vault_server_url | The Vault server URL to configure in Concourse. Leaving it empty will disable the Vault integration | `string` | `null` | no | 99 | 100 | ### Outputs 101 | 102 | | Name | Description | 103 | | ------------------ | ------------------------------------------------------ | 104 | | concourse_hostname | Final Concourse hostname | 105 | | concourse_version | Concourse version deployed | 106 | | ecs_service_name | ECS Service Name of concourse web | 107 | | elb_dns_name | DNS name of the loadbalancer | 108 | | elb_sg_id | Security group id of the loadbalancer | 109 | | elb_zone_id | Zone ID of the ELB | 110 | | iam_role_arn | ARN of the IAM role created for the Concourse ECS task | 111 | 112 | ### Examples 113 | 114 | You can use `concourse_extra_args` or `concourse_extra_env` to pass any Concourse configuration to the deployment. For example, to add GitLab authentication for a self-hosted instance: 115 | 116 | ```terraform 117 | concourse_extra_env = { 118 | CONCOURSE_GITLAB_CLIENT_ID = "my_client_id", 119 | CONCOURSE_GITLAB_CLIENT_SECRET = "my_client_secret", 120 | CONCOURSE_GITLAB_HOST = "https://gitlab.example.com", 121 | # If you want a GitLab group to access the `main` Concourse team: 122 | CONCOURSE_MAIN_TEAM_GITLAB_GROUP = "my_group" 123 | } 124 | ``` 125 | 126 | ## ec2-worker 127 | 128 | This sets up a Concourse CI worker pool as EC2 instances running in an Autoscaling group. 129 | 130 | The following resources will be created: 131 | 132 | * Autoscaling launch configuration & autoscaling group 133 | * The EC2 instances have an additional EBS volume attached, automatically formatted as `btrfs` 134 | * Security group 135 | * IAM role 136 | 137 | ### Requirements 138 | 139 | | Name | Version | 140 | |------|---------| 141 | | [terraform](#requirement_terraform) | ~> 1.0 | 142 | | [aws](#requirement_aws) | ~> 3.74 | 143 | 144 | ### Providers 145 | 146 | | Name | Version | 147 | |------|---------| 148 | | [aws](#provider_aws) | ~> 3.74 | 149 | | [template](#provider_template) | n/a | 150 | 151 | ### Modules 152 | 153 | | Name | Source | Version | 154 | |------|--------|---------| 155 | | [is_ebs_optimised](#module_is_ebs_optimised) | github.com/skyscrapers/terraform-instances//is_ebs_optimised | 3.1.0 | 156 | | [teleport_bootstrap_script](#module_teleport_bootstrap_script) | github.com/skyscrapers/terraform-teleport//teleport-bootstrap-script | 7.2.1 | 157 | 158 | ### Resources 159 | 160 | | Name | Type | 161 | |------|------| 162 | | [aws_autoscaling_group.concourse_worker_asg](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/autoscaling_group) | resource | 163 | | [aws_iam_instance_profile.concourse_worker_instance_profile](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_instance_profile) | resource | 164 | | [aws_iam_role.concourse_worker_role](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role) | resource | 165 | | [aws_iam_role_policy.concourse_worker_cross_account_policy](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role_policy) | resource | 166 | | [aws_iam_role_policy.concourse_worker_policy](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role_policy) | resource | 167 | | [aws_launch_template.concourse_worker_launchtemplate](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/launch_template) | resource | 168 | | [aws_launch_template.concourse_worker_launchtemplate_ephemeral](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/launch_template) | resource | 169 | | [aws_security_group.worker_instances_sg](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/security_group) | resource | 170 | | [aws_security_group_rule.worker_instances_to_tsa](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/security_group_rule) | resource | 171 | | [aws_ami.AL2](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/ami) | data source | 172 | | [aws_iam_policy_document.concourse_worker_cross_account_policy](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) | data source | 173 | | [aws_iam_policy_document.concourse_worker_policy](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) | data source | 174 | | [aws_iam_policy_document.concourse_worker_role](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) | data source | 175 | | [template_cloudinit_config.concourse_bootstrap](https://registry.terraform.io/providers/hashicorp/template/latest/docs/data-sources/cloudinit_config) | data source | 176 | | [template_file.check_attachment](https://registry.terraform.io/providers/hashicorp/template/latest/docs/data-sources/file) | data source | 177 | | [template_file.concourse_bootstrap](https://registry.terraform.io/providers/hashicorp/template/latest/docs/data-sources/file) | data source | 178 | | [template_file.concourse_systemd](https://registry.terraform.io/providers/hashicorp/template/latest/docs/data-sources/file) | data source | 179 | 180 | ### Inputs 181 | 182 | | Name | Description | Type | Default | Required | 183 | |------|-------------|------|---------|:--------:| 184 | | [concourse_hostname](#input_concourse_hostname) | Hostname on what concourse will be available, this hostname needs to point to the ELB. | `string` | n/a | yes | 185 | | [environment](#input_environment) | The name of the environment these subnets belong to (prod,stag,dev) | `string` | n/a | yes | 186 | | [instance_type](#input_instance_type) | EC2 instance type for the worker instances | `string` | n/a | yes | 187 | | [keys_bucket_arn](#input_keys_bucket_arn) | The S3 bucket ARN which contains the SSH keys to connect to the TSA | `string` | n/a | yes | 188 | | [keys_bucket_id](#input_keys_bucket_id) | The S3 bucket id which contains the SSH keys to connect to the TSA | `string` | n/a | yes | 189 | | [name](#input_name) | A descriptive name of the purpose of this Concourse worker pool | `string` | n/a | yes | 190 | | [ssh_key_name](#input_ssh_key_name) | The key name to use for the instance | `string` | n/a | yes | 191 | | [subnet_ids](#input_subnet_ids) | List of subnet ids where to deploy the worker instances | `list(string)` | n/a | yes | 192 | | [vpc_id](#input_vpc_id) | The VPC id where to deploy the worker instances | `string` | n/a | yes | 193 | | [additional_security_group_ids](#input_additional_security_group_ids) | Additional security group ids to attach to the worker instances | `list(string)` | `[]` | no | 194 | | [baggageclaim_driver](#input_baggageclaim_driver) | Which Concourse Worker baggageclaim driver to use. Supported choices: `btrfs` and `overlay` | `string` | `"overlay"` | no | 195 | | [concourse_tags](#input_concourse_tags) | List of tags to add to the worker to use for assigning jobs and tasks | `list(string)` | `[]` | no | 196 | | [concourse_version](#input_concourse_version) | Concourse CI version to use. Defaults to the latest tested version | `string` | `"7.7.1"` | no | 197 | | [concourse_version_override](#input_concourse_version_override) | Variable to override the default Concourse version. Leave it empty to fallback to `concourse_version`. Useful if you want to default to the module's default but also give the users the option to override it | `string` | `null` | no | 198 | | [concourse_worker_instance_count](#input_concourse_worker_instance_count) | Number of Concourse worker instances | `number` | `1` | no | 199 | | [cpu_credits](#input_cpu_credits) | The credit option for CPU usage. Can be `standard` or `unlimited` | `string` | `"standard"` | no | 200 | | [cross_account_worker_role_arn](#input_cross_account_worker_role_arn) | IAM role ARN to assume to access the Concourse keys bucket in another AWS account | `string` | `null` | no | 201 | | [custom_ami](#input_custom_ami) | Use a custom AMI for the worker instances. If omitted the latest Ubuntu 16.04 AMI will be used. | `string` | `null` | no | 202 | | [project](#input_project) | Project where the concourse claster belongs to. This is mainly used to identify it in Teleport | `string` | `""` | no | 203 | | [public](#input_public) | Whether to assign these worker nodes a public IP (when public subnets are defined in `var.subnet_ids`) | `bool` | `false` | no | 204 | | [root_disk_volume_size](#input_root_disk_volume_size) | Size of the worker instances root disk | `string` | `"10"` | no | 205 | | [root_disk_volume_type](#input_root_disk_volume_type) | Volume type of the worker instances root disk | `string` | `"gp2"` | no | 206 | | [teleport_auth_token](#input_teleport_auth_token) | Teleport node token to authenticate with the auth server | `string` | `""` | no | 207 | | [teleport_server](#input_teleport_server) | Teleport auth server hostname | `string` | `""` | no | 208 | | [teleport_version](#input_teleport_version) | Teleport version for the client | `string` | `"10.1.4"` | no | 209 | | [work_disk_device_name](#input_work_disk_device_name) | Device name of the external EBS volume to use as Concourse worker storage | `string` | `"/dev/sdf"` | no | 210 | | [work_disk_ephemeral](#input_work_disk_ephemeral) | Whether to use ephemeral volumes as Concourse worker storage. You must use an [`instance_type` that supports this](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/InstanceStorage.html#InstanceStoreDeviceNames) | `string` | `false` | no | 211 | | [work_disk_internal_device_name](#input_work_disk_internal_device_name) | Device name of the internal volume as identified by the Linux kernel, which can differ from `work_disk_device_name` depending on used AMI. Make sure this is set according the `instance_type`, eg. `/dev/xvdf` when using an older AMI | `string` | `"/dev/nvme1n1"` | no | 212 | | [work_disk_volume_size](#input_work_disk_volume_size) | Size of the external EBS volume to use as Concourse worker storage | `string` | `"100"` | no | 213 | | [work_disk_volume_type](#input_work_disk_volume_type) | Volume type of the external EBS volume to use as Concourse worker storage | `string` | `"gp2"` | no | 214 | | [worker_tsa_port](#input_worker_tsa_port) | tsa port that the worker can use to connect to the web | `string` | `"2222"` | no | 215 | 216 | ### Outputs 217 | 218 | | Name | Description | 219 | |------|-------------| 220 | | [concourse_version](#output_concourse_version) | Concourse version deployed | 221 | | [worker_autoscaling_group_arn](#output_worker_autoscaling_group_arn) | The AWS region configured in the provider | 222 | | [worker_autoscaling_group_id](#output_worker_autoscaling_group_id) | The Concourse workers autoscaling group ARN | 223 | | [worker_autoscaling_group_name](#output_worker_autoscaling_group_name) | The Concourse workers autoscaling group name | 224 | | [worker_iam_role](#output_worker_iam_role) | Role name of the worker instances | 225 | | [worker_iam_role_arn](#output_worker_iam_role_arn) | Role ARN of the worker instances | 226 | | [worker_instances_sg_id](#output_worker_instances_sg_id) | Security group ID used for the worker instances | 227 | 228 | ### NOTE on the external EBS volume 229 | 230 | The EC2 instances created by this module will include an external EBS volume that will automatically be attached and mounted. You should pay special attention to the device name that those volumes will have inside the OS once attached, as that name can vary depending on the instance type you selected. For example, in general for `t2` instances, if you attach the EBS volume as `/dev/xvdf` it'll have the same device name inside the OS, but on `m5` or `c4` instances that's not the case, as it'll be named `/dev/nvme1n1`. 231 | 232 | As of now, this situation is not being handled automatically by the module, so depending on the instance type you select, you might have to change the internal device name via the variable `work_disk_internal_device_name`. 233 | 234 | ## vault-auth 235 | 236 | This module sets up the needed Vault resources for Concourse: 237 | 238 | * It creates a Vault policy that allows read-only access to `/concourse/*` 239 | * It creates a Vault role in the aws auth method (which should be previously created - explained below) for Concourse and attaches the previously mentioned policy 240 | 241 | ### Available variables 242 | 243 | | Name | Description | Type | Default | Required | 244 | | --------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | :----: | :------: | :------: | 245 | | additional_vault_policies | Additional Vault policies to attach to the Concourse role | string | `` | no | 246 | | concourse_iam_role_arn | IAM role ARN of the Concourse ATC server. You can get this from the concourse web module outputs | string | - | yes | 247 | | vault_aws_auth_backend_path | The path the AWS auth backend being configured was mounted at | string | `aws` | no | 248 | | vault_concourse_role_name | Name to give to the Vault role and policy for Concourse | string | - | yes | 249 | | vault_server_url | The Vault server url | string | - | yes | 250 | | vault_token_period | Vault token renewal period, in seconds. This sets the token to never expire, but it still has to be renewed within the duration specified by this value | string | `43200` | no | 251 | 252 | ### Output 253 | 254 | -- 255 | 256 | ### How to enable and configure the AWS auth method 257 | 258 | If the AWS auth method is not previously enabled, you'll need to do it before applying this module. To do that you'll need to follow the first two steps described in the [official Vault documentation](https://www.vaultproject.io/docs/auth/aws.html#via-the-cli). 259 | 260 | * Enable the auth method 261 | * Configure the AWS credentials so Vault can make calls to the AWS API. Note that you can skip this step if you're going to use Vault's IAM EC2 instance role to access the AWS API. 262 | 263 | ## Examples 264 | 265 | Check out the [examples](examples/) folder. 266 | -------------------------------------------------------------------------------- /ci/run_tests.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | platform: linux 3 | image_resource: 4 | type: registry-image 5 | source: 6 | repository: golang 7 | tag: 1.14-alpine 8 | 9 | params: 10 | AWS_DEFAULT_REGION: eu-west-1 11 | TEST_ACM_ARN: 12 | TEST_CONCOURSE_VERSION: 13 | TEST_CONCOURSE_VERSION_FILE: 14 | TEST_KEY_NAME: 15 | AWS_ACCESS_KEY_ID: 16 | AWS_SECRET_ACCESS_KEY: 17 | AWS_SESSION_TOKEN: 18 | SKIP_deploy: 19 | SKIP_teardown: 20 | 21 | inputs: 22 | - name: terraform-src 23 | path: gopath/src/github.com/skyscrapers/terraform-concourse 24 | - name: concourse-release 25 | - name: terraform-release 26 | 27 | run: 28 | path: sh 29 | args: 30 | - -exc 31 | - | 32 | # Use the version provided in the file $TEST_CONCOURSE_VERSION_FILE if set 33 | if [[ ! -z "${TEST_CONCOURSE_VERSION_FILE}" ]]; then 34 | TEST_CONCOURSE_VERSION="`cat ${TEST_CONCOURSE_VERSION_FILE}`" 35 | fi 36 | 37 | # Run the test setup script 38 | gopath/src/github.com/skyscrapers/terraform-concourse/test/setup.sh 39 | 40 | export GOPATH=$PWD/gopath 41 | cd gopath/src/github.com/skyscrapers/terraform-concourse/test 42 | go test -v -timeout 60m 43 | -------------------------------------------------------------------------------- /ec2-worker/asg.tf: -------------------------------------------------------------------------------- 1 | locals { 2 | filesystem = var.baggageclaim_driver == "btrfs" ? "btrfs" : "ext4" 3 | } 4 | 5 | # Get the latest Amazon Linux 2 ami 6 | data "aws_ami" "AL2" { 7 | most_recent = true 8 | 9 | filter { 10 | name = "name" 11 | values = ["amzn2-ami-hvm-*-x86_64-gp2"] 12 | } 13 | 14 | owners = ["137112412989"] # Amazon 15 | } 16 | 17 | module "is_ebs_optimised" { 18 | source = "github.com/skyscrapers/terraform-instances//is_ebs_optimised?ref=3.1.0" 19 | instance_type = var.instance_type 20 | } 21 | 22 | resource "aws_launch_template" "concourse_worker_launchtemplate" { 23 | count = var.work_disk_ephemeral ? 0 : 1 24 | image_id = coalesce(var.custom_ami, data.aws_ami.AL2.id) 25 | instance_type = var.instance_type 26 | key_name = var.ssh_key_name 27 | user_data = data.template_cloudinit_config.concourse_bootstrap.rendered 28 | ebs_optimized = module.is_ebs_optimised.is_ebs_optimised 29 | 30 | credit_specification { 31 | cpu_credits = var.cpu_credits 32 | } 33 | 34 | network_interfaces { 35 | security_groups = concat([aws_security_group.worker_instances_sg.id], var.additional_security_group_ids) 36 | delete_on_termination = true 37 | associate_public_ip_address = var.public 38 | } 39 | 40 | iam_instance_profile { 41 | name = aws_iam_instance_profile.concourse_worker_instance_profile.id 42 | } 43 | 44 | block_device_mappings { 45 | device_name = "/dev/xvda" 46 | 47 | ebs { 48 | volume_type = var.root_disk_volume_type 49 | volume_size = var.root_disk_volume_size 50 | delete_on_termination = "true" 51 | } 52 | } 53 | 54 | # This is the work dir for concourse 55 | block_device_mappings { 56 | device_name = var.work_disk_device_name 57 | 58 | ebs { 59 | volume_type = var.work_disk_volume_type 60 | volume_size = var.work_disk_volume_size 61 | delete_on_termination = "true" 62 | } 63 | } 64 | 65 | lifecycle { 66 | create_before_destroy = true 67 | } 68 | } 69 | 70 | resource "aws_launch_template" "concourse_worker_launchtemplate_ephemeral" { 71 | count = var.work_disk_ephemeral ? 1 : 0 72 | image_id = coalesce(var.custom_ami, data.aws_ami.AL2.id) 73 | instance_type = var.instance_type 74 | key_name = var.ssh_key_name 75 | user_data = data.template_cloudinit_config.concourse_bootstrap.rendered 76 | ebs_optimized = module.is_ebs_optimised.is_ebs_optimised 77 | 78 | credit_specification { 79 | cpu_credits = var.cpu_credits 80 | } 81 | 82 | network_interfaces { 83 | security_groups = concat([aws_security_group.worker_instances_sg.id], var.additional_security_group_ids) 84 | delete_on_termination = true 85 | associate_public_ip_address = var.public 86 | } 87 | 88 | iam_instance_profile { 89 | name = aws_iam_instance_profile.concourse_worker_instance_profile.id 90 | } 91 | 92 | block_device_mappings { 93 | device_name = "/dev/xvda" 94 | 95 | ebs { 96 | volume_type = var.root_disk_volume_type 97 | volume_size = var.root_disk_volume_size 98 | delete_on_termination = "true" 99 | } 100 | } 101 | 102 | # This is the work dir for concourse 103 | block_device_mappings { 104 | device_name = var.work_disk_device_name 105 | virtual_name = "ephemeral0" 106 | } 107 | 108 | lifecycle { 109 | create_before_destroy = true 110 | } 111 | } 112 | 113 | resource "aws_autoscaling_group" "concourse_worker_asg" { 114 | name = "concourse_worker_${var.environment}_${var.name}_asg" 115 | 116 | launch_template { 117 | id = element( 118 | concat( 119 | aws_launch_template.concourse_worker_launchtemplate.*.id, 120 | aws_launch_template.concourse_worker_launchtemplate_ephemeral.*.id, 121 | ), 122 | 0, 123 | ) 124 | version = element( 125 | concat( 126 | aws_launch_template.concourse_worker_launchtemplate.*.latest_version, 127 | aws_launch_template.concourse_worker_launchtemplate_ephemeral.*.latest_version, 128 | ), 129 | 0, 130 | ) 131 | } 132 | 133 | vpc_zone_identifier = var.subnet_ids 134 | max_size = var.concourse_worker_instance_count 135 | min_size = var.concourse_worker_instance_count 136 | desired_capacity = var.concourse_worker_instance_count 137 | 138 | tag { 139 | key = "Environment" 140 | value = var.environment 141 | propagate_at_launch = true 142 | } 143 | 144 | tag { 145 | key = "Project" 146 | value = "concourse_worker_${var.name}" 147 | propagate_at_launch = true 148 | } 149 | 150 | tag { 151 | key = "Name" 152 | value = "concourse_worker_${var.environment}_${var.name}" 153 | propagate_at_launch = true 154 | } 155 | } 156 | 157 | data "template_file" "concourse_systemd" { 158 | template = file("${path.module}/concourse_systemd.tpl") 159 | 160 | vars = { 161 | concourse_hostname = "${var.concourse_hostname}:${var.worker_tsa_port}" 162 | baggageclaim_driver = var.baggageclaim_driver 163 | tags = join(" ", formatlist("--tag=%s", var.concourse_tags)) 164 | } 165 | } 166 | 167 | data "template_file" "concourse_bootstrap" { 168 | template = file("${path.module}/bootstrap_concourse.sh.tpl") 169 | 170 | vars = { 171 | concourse_version = local.concourse_version 172 | keys_bucket_id = var.keys_bucket_id 173 | cross_account_worker_role_arn = coalesce(var.cross_account_worker_role_arn, 0) 174 | } 175 | } 176 | 177 | data "template_file" "check_attachment" { 178 | template = file("${path.module}/check_attachment.sh.tpl") 179 | 180 | vars = { 181 | work_disk_device_name = var.work_disk_device_name 182 | } 183 | } 184 | 185 | data "template_cloudinit_config" "concourse_bootstrap" { 186 | gzip = true 187 | base64_encode = true 188 | 189 | part { 190 | content_type = "text/cloud-config" 191 | content = "package_update: true" 192 | } 193 | 194 | part { 195 | content_type = "text/cloud-config" 196 | content = "package_upgrade: true" 197 | } 198 | 199 | part { 200 | content_type = "text/cloud-config" 201 | 202 | content = < ./teleport.tar.gz 270 | sudo tar -xzf ./teleport.tar.gz 271 | sudo ./teleport/install 272 | EOF 273 | 274 | } 275 | 276 | part { 277 | content_type = "text/x-shellscript" 278 | 279 | content = module.teleport_bootstrap_script.teleport_bootstrap_script 280 | } 281 | } 282 | 283 | module "teleport_bootstrap_script" { 284 | source = "github.com/skyscrapers/terraform-teleport//teleport-bootstrap-script?ref=7.2.1" 285 | auth_server = var.teleport_server 286 | auth_token = var.teleport_auth_token 287 | function = "concourse" 288 | environment = var.environment 289 | project = var.project 290 | 291 | additional_labels = [ 292 | "concourse_version: \"${local.concourse_version}\"", 293 | "instance_type: \"${var.instance_type}\"", 294 | ] 295 | } 296 | -------------------------------------------------------------------------------- /ec2-worker/bootstrap_concourse.sh.tpl: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -e 4 | 5 | # Enable compression in logrotate 6 | sed -i 's/#compress/compress/g' /etc/logrotate.conf 7 | 8 | # Install concourse 9 | %{ if split(".", concourse_version)[0] >= 5 } 10 | curl -s -L -f -o ./concourse.tgz https://github.com/concourse/concourse/releases/download/v${concourse_version}/concourse-${concourse_version}-linux-amd64.tgz 11 | tar -xzf ./concourse.tgz -C /usr/local 12 | %{ else } 13 | mkdir -p /usr/local/concourse/bin 14 | curl -s -L -f -o /usr/local/concourse/bin/concourse https://github.com/concourse/concourse/releases/download/v${concourse_version}/concourse_linux_amd64 15 | chmod +x /usr/local/concourse/bin/concourse 16 | %{ endif } 17 | 18 | # AssumeRole for remote TSA 19 | if [ ! "${cross_account_worker_role_arn}" == 0 ] 20 | then 21 | ASSUMED_ROLE=$(aws sts assume-role --role-arn ${cross_account_worker_role_arn} --role-session-name concourse-worker-$HOSTNAME) 22 | export AWS_ACCESS_KEY_ID=$(echo "$ASSUMED_ROLE" | jq -r ".Credentials.AccessKeyId") 23 | export AWS_SECRET_ACCESS_KEY=$(echo "$ASSUMED_ROLE" | jq -r ".Credentials.SecretAccessKey") 24 | export AWS_SESSION_TOKEN=$(echo "$ASSUMED_ROLE" | jq -r ".Credentials.SessionToken") 25 | fi 26 | 27 | # Download concourse keys 28 | mkdir /etc/concourse 29 | aws s3 cp s3://${keys_bucket_id}/tsa_host_key.pub /etc/concourse/ 30 | aws s3 cp s3://${keys_bucket_id}/worker_key /etc/concourse/ 31 | 32 | # Enable & start concourse_worker service 33 | systemctl enable concourse_worker.service 34 | systemctl start concourse_worker.service 35 | -------------------------------------------------------------------------------- /ec2-worker/check_attachment.sh.tpl: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | aws --region $(curl -s http://169.254.169.254/latest/meta-data/placement/availability-zone | sed 's/[a-z]$//') ec2 wait volume-in-use --filters Name=attachment.instance-id,Values=$(curl -s http://169.254.169.254/latest/meta-data/instance-id) Name=attachment.device,Values=${work_disk_device_name} 3 | -------------------------------------------------------------------------------- /ec2-worker/concourse_systemd.tpl: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Concourse CI Worker 3 | 4 | [Service] 5 | ExecStart=/usr/local/concourse/bin/concourse worker \ 6 | --work-dir /opt/concourse \ 7 | --baggageclaim-driver ${baggageclaim_driver} \ 8 | --tsa-host ${concourse_hostname} \ 9 | --tsa-public-key /etc/concourse/tsa_host_key.pub \ 10 | --tsa-worker-private-key /etc/concourse/worker_key ${tags} 11 | 12 | User=root 13 | Group=root 14 | 15 | Type=simple 16 | 17 | LimitNOFILE=20000 18 | 19 | [Install] 20 | WantedBy=default.target 21 | -------------------------------------------------------------------------------- /ec2-worker/iam.tf: -------------------------------------------------------------------------------- 1 | data "aws_iam_policy_document" "concourse_worker_role" { 2 | statement { 3 | actions = [ 4 | "sts:AssumeRole", 5 | ] 6 | 7 | principals { 8 | type = "Service" 9 | identifiers = ["ec2.amazonaws.com"] 10 | } 11 | } 12 | } 13 | 14 | resource "aws_iam_role" "concourse_worker_role" { 15 | name = "concourse_worker_${var.environment}_${var.name}_role" 16 | assume_role_policy = data.aws_iam_policy_document.concourse_worker_role.json 17 | } 18 | 19 | data "aws_iam_policy_document" "concourse_worker_policy" { 20 | statement { 21 | actions = [ 22 | "s3:Get*", 23 | "s3:List*", 24 | ] 25 | 26 | resources = [ 27 | var.keys_bucket_arn, 28 | "${var.keys_bucket_arn}/*", 29 | ] 30 | } 31 | 32 | statement { 33 | actions = [ 34 | "ec2:DescribeVolume*", # needed to query the status of the worker volume 35 | ] 36 | 37 | resources = [ 38 | "*", 39 | ] 40 | } 41 | } 42 | 43 | resource "aws_iam_role_policy" "concourse_worker_policy" { 44 | count = var.cross_account_worker_role_arn != null ? 0 : 1 # Disable if accessing another AWS account through an assume role 45 | name = "concourse_worker_${var.environment}_${var.name}_policy" 46 | role = aws_iam_role.concourse_worker_role.id 47 | policy = data.aws_iam_policy_document.concourse_worker_policy.json 48 | } 49 | 50 | data "aws_iam_policy_document" "concourse_worker_cross_account_policy" { 51 | count = var.cross_account_worker_role_arn != null ? 1 : 0 # Enable if accessing another AWS account through an assume role 52 | statement { 53 | actions = [ 54 | "sts:AssumeRole", 55 | ] 56 | 57 | resources = [ 58 | var.cross_account_worker_role_arn, 59 | ] 60 | } 61 | } 62 | 63 | resource "aws_iam_role_policy" "concourse_worker_cross_account_policy" { 64 | count = var.cross_account_worker_role_arn != null ? 1 : 0 # Enable if accessing another AWS account through an assume role 65 | name = "concourse_worker_cross_account_${var.environment}_${var.name}" 66 | role = aws_iam_role.concourse_worker_role.id 67 | policy = data.aws_iam_policy_document.concourse_worker_cross_account_policy[0].json 68 | } 69 | 70 | resource "aws_iam_instance_profile" "concourse_worker_instance_profile" { 71 | name = "concourse_worker_${var.environment}_${var.name}_instance_profile" 72 | role = aws_iam_role.concourse_worker_role.id 73 | } 74 | 75 | -------------------------------------------------------------------------------- /ec2-worker/main.tf: -------------------------------------------------------------------------------- 1 | locals { 2 | concourse_version = coalesce(var.concourse_version_override, var.concourse_version) 3 | } 4 | 5 | resource "aws_security_group" "worker_instances_sg" { 6 | name = "concourse_worker_${var.environment}_${var.name}" 7 | description = "Security group for the Concourse worker instances in ${var.environment}" 8 | vpc_id = var.vpc_id 9 | 10 | tags = { 11 | Name = "concourse_worker_${var.environment}_${var.name}" 12 | Environment = var.environment 13 | } 14 | } 15 | 16 | resource "aws_security_group_rule" "worker_instances_to_tsa" { 17 | security_group_id = aws_security_group.worker_instances_sg.id 18 | type = "egress" 19 | from_port = 2222 20 | to_port = 2222 21 | protocol = "TCP" 22 | 23 | # Can't target only the web ELB security group because is an internet facing ELB, so traffic goes outside the VPC 24 | cidr_blocks = ["0.0.0.0/0"] 25 | } 26 | 27 | -------------------------------------------------------------------------------- /ec2-worker/outputs.tf: -------------------------------------------------------------------------------- 1 | output "worker_instances_sg_id" { 2 | description = "Security group ID used for the worker instances" 3 | value = aws_security_group.worker_instances_sg.id 4 | } 5 | 6 | output "worker_iam_role" { 7 | description = "Role name of the worker instances" 8 | value = aws_iam_role.concourse_worker_role.name 9 | } 10 | 11 | output "worker_iam_role_arn" { 12 | description = "Role ARN of the worker instances" 13 | value = aws_iam_role.concourse_worker_role.arn 14 | } 15 | 16 | output "worker_autoscaling_group_id" { 17 | description = "The Concourse workers autoscaling group ARN" 18 | value = aws_autoscaling_group.concourse_worker_asg.id 19 | } 20 | 21 | output "worker_autoscaling_group_name" { 22 | description = "The Concourse workers autoscaling group name" 23 | value = aws_autoscaling_group.concourse_worker_asg.name 24 | } 25 | 26 | output "worker_autoscaling_group_arn" { 27 | description = "The AWS region configured in the provider" 28 | value = aws_autoscaling_group.concourse_worker_asg.arn 29 | } 30 | 31 | output "concourse_version" { 32 | description = "Concourse version deployed" 33 | value = local.concourse_version 34 | } 35 | 36 | -------------------------------------------------------------------------------- /ec2-worker/variables.tf: -------------------------------------------------------------------------------- 1 | variable "environment" { 2 | description = "The name of the environment these subnets belong to (prod,stag,dev)" 3 | type = string 4 | } 5 | 6 | variable "name" { 7 | description = "A descriptive name of the purpose of this Concourse worker pool" 8 | type = string 9 | } 10 | 11 | variable "project" { 12 | description = "Project where the concourse claster belongs to. This is mainly used to identify it in Teleport" 13 | default = "" 14 | type = string 15 | } 16 | 17 | variable "vpc_id" { 18 | description = "The VPC id where to deploy the worker instances" 19 | type = string 20 | } 21 | 22 | variable "subnet_ids" { 23 | type = list(string) 24 | description = "List of subnet ids where to deploy the worker instances" 25 | } 26 | 27 | variable "instance_type" { 28 | description = "EC2 instance type for the worker instances" 29 | type = string 30 | } 31 | 32 | variable "ssh_key_name" { 33 | description = "The key name to use for the instance" 34 | type = string 35 | } 36 | 37 | variable "custom_ami" { 38 | description = "Use a custom AMI for the worker instances. If omitted the latest Ubuntu 16.04 AMI will be used." 39 | default = null 40 | type = string 41 | } 42 | 43 | variable "additional_security_group_ids" { 44 | type = list(string) 45 | description = "Additional security group ids to attach to the worker instances" 46 | default = [] 47 | } 48 | 49 | variable "root_disk_volume_type" { 50 | description = "Volume type of the worker instances root disk" 51 | default = "gp2" 52 | type = string 53 | } 54 | 55 | variable "root_disk_volume_size" { 56 | description = "Size of the worker instances root disk" 57 | default = "10" 58 | type = string 59 | } 60 | 61 | variable "work_disk_ephemeral" { 62 | description = "Whether to use ephemeral volumes as Concourse worker storage. You must use an [`instance_type` that supports this](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/InstanceStorage.html#InstanceStoreDeviceNames)" 63 | default = false 64 | type = string 65 | } 66 | 67 | variable "work_disk_device_name" { 68 | description = "Device name of the external EBS volume to use as Concourse worker storage" 69 | default = "/dev/sdf" 70 | type = string 71 | } 72 | 73 | variable "work_disk_internal_device_name" { 74 | description = "Device name of the internal volume as identified by the Linux kernel, which can differ from `work_disk_device_name` depending on used AMI. Make sure this is set according the `instance_type`, eg. `/dev/xvdf` when using an older AMI" 75 | default = "/dev/nvme1n1" 76 | type = string 77 | } 78 | 79 | variable "work_disk_volume_type" { 80 | description = "Volume type of the external EBS volume to use as Concourse worker storage" 81 | default = "gp2" 82 | type = string 83 | } 84 | 85 | variable "work_disk_volume_size" { 86 | description = "Size of the external EBS volume to use as Concourse worker storage" 87 | default = "100" 88 | type = string 89 | } 90 | 91 | variable "concourse_hostname" { 92 | description = "Hostname on what concourse will be available, this hostname needs to point to the ELB." 93 | type = string 94 | } 95 | 96 | variable "worker_tsa_port" { 97 | description = "tsa port that the worker can use to connect to the web" 98 | default = "2222" 99 | type = string 100 | } 101 | 102 | variable "concourse_worker_instance_count" { 103 | description = "Number of Concourse worker instances" 104 | default = 1 105 | type = number 106 | } 107 | 108 | variable "concourse_version" { 109 | description = "Concourse CI version to use. Defaults to the latest tested version" 110 | default = "7.7.1" 111 | type = string 112 | } 113 | 114 | variable "concourse_version_override" { 115 | description = "Variable to override the default Concourse version. Leave it empty to fallback to `concourse_version`. Useful if you want to default to the module's default but also give the users the option to override it" 116 | default = null 117 | type = string 118 | } 119 | 120 | variable "keys_bucket_id" { 121 | description = "The S3 bucket id which contains the SSH keys to connect to the TSA" 122 | type = string 123 | } 124 | 125 | variable "keys_bucket_arn" { 126 | description = "The S3 bucket ARN which contains the SSH keys to connect to the TSA" 127 | type = string 128 | } 129 | 130 | variable "concourse_tags" { 131 | description = "List of tags to add to the worker to use for assigning jobs and tasks" 132 | type = list(string) 133 | default = [] 134 | } 135 | 136 | variable "cross_account_worker_role_arn" { 137 | description = "IAM role ARN to assume to access the Concourse keys bucket in another AWS account" 138 | default = null 139 | type = string 140 | } 141 | 142 | variable "teleport_server" { 143 | description = "Teleport auth server hostname" 144 | default = "" 145 | type = string 146 | } 147 | 148 | variable "teleport_auth_token" { 149 | description = "Teleport node token to authenticate with the auth server" 150 | default = "" 151 | type = string 152 | } 153 | 154 | variable "teleport_version" { 155 | description = "Teleport version for the client" 156 | default = "10.1.4" 157 | type = string 158 | } 159 | 160 | variable "cpu_credits" { 161 | description = "The credit option for CPU usage. Can be `standard` or `unlimited`" 162 | default = "standard" 163 | type = string 164 | } 165 | 166 | variable "public" { 167 | type = bool 168 | description = "Whether to assign these worker nodes a public IP (when public subnets are defined in `var.subnet_ids`)" 169 | default = false 170 | } 171 | 172 | variable "baggageclaim_driver" { 173 | type = string 174 | description = "Which Concourse Worker baggageclaim driver to use. Supported choices: `btrfs` and `overlay`" 175 | default = "overlay" 176 | } 177 | -------------------------------------------------------------------------------- /ec2-worker/versions.tf: -------------------------------------------------------------------------------- 1 | 2 | terraform { 3 | required_version = "~> 1.0" 4 | 5 | required_providers { 6 | aws = { 7 | source = "hashicorp/aws" 8 | version = "~> 3.74" 9 | } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /ecs-web/.gitignore: -------------------------------------------------------------------------------- 1 | concourse_keys 2 | -------------------------------------------------------------------------------- /ecs-web/elb.tf: -------------------------------------------------------------------------------- 1 | module "elb" { 2 | source = "github.com/skyscrapers/terraform-loadbalancers//elb?ref=7.0.1" 3 | name = var.name 4 | subnets = var.elb_subnets 5 | project = "concourse" 6 | health_target = "http:8080/" 7 | backend_security_groups = [var.backend_security_group_id] 8 | backend_security_groups_count = 1 9 | ssl_certificate_id = var.ssl_certificate_id 10 | environment = var.environment 11 | instance_port = 2222 12 | instance_protocol = "TCP" 13 | lb_port = 2222 14 | lb_protocol = "TCP" 15 | instance_ssl_port = 8080 16 | instance_ssl_protocol = "TCP" 17 | lb_ssl_port = 443 18 | lb_ssl_protocol = "SSL" 19 | internal = false 20 | ingoing_allowed_ips = var.allowed_incoming_cidr_blocks 21 | 22 | custom_listeners = [ 23 | { 24 | instance_port = var.concourse_prometheus_bind_port 25 | instance_protocol = "HTTP" 26 | lb_port = var.concourse_prometheus_bind_port 27 | lb_protocol = "HTTP" 28 | }, 29 | ] 30 | } 31 | 32 | # Allow TSA from ELB to ECS on ECS security group 33 | resource "aws_security_group_rule" "sg_ecs_instances_elb_in_ssh" { 34 | security_group_id = var.backend_security_group_id 35 | type = "ingress" 36 | from_port = 2222 37 | to_port = 2222 38 | protocol = "tcp" 39 | source_security_group_id = module.elb.sg_id 40 | } 41 | 42 | resource "aws_security_group_rule" "sg_ecs_instances_elb_in_prometheus" { 43 | security_group_id = var.backend_security_group_id 44 | type = "ingress" 45 | from_port = var.concourse_prometheus_bind_port 46 | to_port = var.concourse_prometheus_bind_port 47 | protocol = "tcp" 48 | source_security_group_id = module.elb.sg_id 49 | } 50 | 51 | # Allow ATC from ELB to ECS on ECS security group 52 | resource "aws_security_group_rule" "sg_ecs_instances_elb_in_http" { 53 | security_group_id = var.backend_security_group_id 54 | type = "ingress" 55 | from_port = 8080 56 | to_port = 8080 57 | protocol = "tcp" 58 | source_security_group_id = module.elb.sg_id 59 | } 60 | 61 | # Allow traffic to TSA from the ECS security group 62 | resource "aws_security_group_rule" "sg_ecs_instances_elb_out_ssh" { 63 | security_group_id = var.backend_security_group_id 64 | type = "egress" 65 | from_port = 2222 66 | to_port = 2222 67 | protocol = "tcp" 68 | cidr_blocks = ["0.0.0.0/0"] 69 | } 70 | 71 | resource "aws_security_group_rule" "sg_ecs_instances_elb_out_prometheus" { 72 | security_group_id = module.elb.sg_id 73 | type = "egress" 74 | from_port = var.concourse_prometheus_bind_port 75 | to_port = var.concourse_prometheus_bind_port 76 | protocol = "tcp" 77 | source_security_group_id = var.backend_security_group_id 78 | } 79 | 80 | resource "aws_security_group_rule" "sg_elb_in_prometheus" { 81 | count = length(var.prometheus_cidrs) > 0 ? 1 : 0 82 | security_group_id = module.elb.sg_id 83 | type = "ingress" 84 | from_port = var.concourse_prometheus_bind_port 85 | to_port = var.concourse_prometheus_bind_port 86 | protocol = "tcp" 87 | cidr_blocks = var.prometheus_cidrs 88 | } 89 | 90 | -------------------------------------------------------------------------------- /ecs-web/iam.tf: -------------------------------------------------------------------------------- 1 | resource "aws_iam_role" "concourse_task_role" { 2 | name = "concourse_web_${var.name}_${var.environment}_task_role" 3 | 4 | assume_role_policy = < /concourse_vault/token" 9 | ], 10 | "essential" : false, 11 | "environment": [ 12 | { 13 | "name" : "VAULT_ADDR", 14 | "value": "${vault_addr}" 15 | } 16 | ], 17 | "logConfiguration": { 18 | "logDriver": "awslogs", 19 | "options" : { 20 | "awslogs-group" : "${awslog_group_name}", 21 | "awslogs-region" : "${awslog_region}", 22 | "awslogs-stream-prefix": "vault_auth" 23 | } 24 | }, 25 | "mountPoints": [ 26 | { 27 | "containerPath": "/concourse_vault", 28 | "sourceVolume" : "concourse_vault" 29 | } 30 | ], 31 | "linuxParameters": { 32 | "capabilities": { 33 | "add": [ "IPC_LOCK" ] 34 | } 35 | } 36 | }, 37 | -------------------------------------------------------------------------------- /ecs-web/variables.tf: -------------------------------------------------------------------------------- 1 | variable "environment" { 2 | description = "The name of the environment these subnets belong to (prod,stag,dev)" 3 | type = string 4 | } 5 | 6 | variable "name" { 7 | description = "The name of the Concourse deployment, used to distinguish different Concourse setups" 8 | type = string 9 | } 10 | 11 | variable "ecs_cluster" { 12 | description = "Name of the ecs cluster" 13 | type = string 14 | } 15 | 16 | variable "concourse_hostname" { 17 | description = "Hostname on which concourse will be available, this hostname needs to point to the ELB. If ommitted, the hostname of the AWS ELB will be used instead" 18 | default = null 19 | type = string 20 | } 21 | 22 | variable "concourse_docker_image" { 23 | description = "Docker image to use to start concourse" 24 | default = "concourse/concourse" 25 | type = string 26 | } 27 | 28 | variable "concourse_version" { 29 | description = "Concourse CI version to use. Defaults to the latest tested version" 30 | default = "7.7.1" 31 | type = string 32 | } 33 | 34 | variable "concourse_version_override" { 35 | description = "Variable to override the default Concourse version. Leave it empty to fallback to `concourse_version`. Useful if you want to default to the module's default but also give the users the option to override it" 36 | default = null 37 | type = string 38 | } 39 | 40 | variable "concourse_db_host" { 41 | description = "Postgresql server hostname or IP" 42 | type = string 43 | } 44 | 45 | variable "concourse_db_port" { 46 | description = "Port of the postgresql server" 47 | default = "5432" 48 | type = string 49 | } 50 | 51 | variable "concourse_db_username" { 52 | description = "Database user to logon to postgresql" 53 | default = "concourse" 54 | type = string 55 | } 56 | 57 | variable "concourse_db_password" { 58 | description = "Password to logon to postgresql" 59 | type = string 60 | } 61 | 62 | variable "concourse_db_root_password" { 63 | description = "Root password of the Postgres database server. Only needed if `auto_create_db` is set to `true`" 64 | default = "" 65 | type = string 66 | } 67 | 68 | variable "auto_create_db" { 69 | description = "If set to `true`, the Concourse web container will attempt to create the postgres database if it's not already created" 70 | default = false 71 | type = bool 72 | } 73 | 74 | variable "concourse_db_postgres_engine_version" { 75 | description = "Postgres engine version used in the Concourse database server. Only needed if `auto_create_db` is set to `true`" 76 | default = null 77 | type = string 78 | } 79 | 80 | variable "concourse_db_name" { 81 | description = "Database name to use on the postgresql server" 82 | default = "concourse" 83 | type = string 84 | } 85 | 86 | variable "ecs_service_role_arn" { 87 | description = "IAM role to use for the service to be able to let it register to the ELB" 88 | type = string 89 | } 90 | 91 | variable "concourse_github_auth_client_id" { 92 | description = "Github client id" 93 | default = null 94 | type = string 95 | } 96 | 97 | variable "concourse_github_auth_client_secret" { 98 | description = "Github client secret" 99 | default = null 100 | type = string 101 | } 102 | 103 | variable "concourse_github_auth_team" { 104 | description = "Github team that can login" 105 | default = null 106 | type = string 107 | } 108 | 109 | variable "concourse_auth_username" { 110 | description = "Basic authentication username" 111 | default = null 112 | type = string 113 | } 114 | 115 | variable "concourse_auth_password" { 116 | description = "Basic authentication password" 117 | default = null 118 | type = string 119 | } 120 | 121 | variable "concourse_auth_main_team_local_user" { 122 | description = "Local user to allow access to the main team" 123 | default = null 124 | type = string 125 | } 126 | 127 | variable "concourse_web_instance_count" { 128 | description = "Number of containers running Concourse web" 129 | default = 1 130 | type = number 131 | } 132 | 133 | variable "elb_subnets" { 134 | description = "Subnets to deploy the ELB in" 135 | type = list(string) 136 | } 137 | 138 | variable "backend_security_group_id" { 139 | description = "Security group ID of the ECS servers" 140 | type = string 141 | } 142 | 143 | variable "ssl_certificate_id" { 144 | description = "SSL certificate arn to attach to the ELB" 145 | type = string 146 | } 147 | 148 | variable "allowed_incoming_cidr_blocks" { 149 | type = list(string) 150 | description = "Allowed CIDR blocks in Concourse ATC+TSA. Defaults to 0.0.0.0/0" 151 | default = ["0.0.0.0/0"] 152 | } 153 | 154 | variable "keys_bucket_id" { 155 | description = "The S3 bucket id which contains the SSH keys to connect to the TSA" 156 | type = string 157 | } 158 | 159 | variable "keys_bucket_arn" { 160 | description = "The S3 bucket ARN which contains the SSH keys to connect to the TSA" 161 | type = string 162 | } 163 | 164 | variable "vault_server_url" { 165 | description = "The Vault server URL to configure in Concourse. Leaving it empty will disable the Vault integration" 166 | default = null 167 | type = string 168 | } 169 | 170 | variable "vault_auth_concourse_role_name" { 171 | description = "The Vault role that Concourse will use. This is normally fetched from the `vault-auth` Terraform module" 172 | default = null 173 | type = string 174 | } 175 | 176 | variable "container_memory" { 177 | description = "The amount of memory (in MiB) used by the task" 178 | default = 256 179 | type = number 180 | } 181 | 182 | variable "container_cpu" { 183 | description = "The number of cpu units to reserve for the container. This parameter maps to CpuShares in the Create a container section of the Docker Remote API" 184 | default = 256 185 | type = number 186 | } 187 | 188 | variable "concourse_prometheus_bind_port" { 189 | description = "Port where Concourse will listen for the Prometheus scraper" 190 | default = "9391" 191 | type = string 192 | } 193 | 194 | variable "concourse_prometheus_bind_ip" { 195 | description = "IP address where Concourse will listen for the Prometheus scraper" 196 | default = "0.0.0.0" 197 | type = string 198 | } 199 | 200 | variable "prometheus_cidrs" { 201 | description = "CIDR blocks that'll allowed to access the Prometheus scraper port" 202 | type = list(string) 203 | default = [] 204 | } 205 | 206 | variable "vault_docker_image_tag" { 207 | description = "Docker image version to use for the Vault auth container" 208 | default = "1.3.2" 209 | type = string 210 | } 211 | 212 | variable "concourse_default_build_logs_to_retain" { 213 | description = "Default number of build logs that are kept. This can be overridden on job level" 214 | default = "100" 215 | type = string 216 | } 217 | 218 | variable "concourse_default_days_to_retain_build_logs" { 219 | description = "Default days of build logs that are kept. This can be overridden on job level" 220 | default = "90" 221 | type = string 222 | } 223 | 224 | variable "concourse_extra_args" { 225 | description = "Extra arguments to pass to Concourse Web" 226 | type = string 227 | default = null 228 | } 229 | 230 | variable "concourse_extra_env" { 231 | description = "Extra ENV variables to pass to Concourse Web. Use a map with the ENV var name as key and value as value" 232 | type = map(string) 233 | default = null 234 | } 235 | -------------------------------------------------------------------------------- /ecs-web/versions.tf: -------------------------------------------------------------------------------- 1 | 2 | terraform { 3 | required_version = "~> 1.0" 4 | 5 | required_providers { 6 | aws = { 7 | source = "hashicorp/aws" 8 | version = "~> 3.74" 9 | } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /examples/basic/basic_network.tf: -------------------------------------------------------------------------------- 1 | module "vpc" { 2 | source = "github.com/skyscrapers/terraform-network//vpc?ref=4.0.0" 3 | cidr_block = var.cidr_block 4 | environment = "test" 5 | project = var.project 6 | amount_private_management_subnets = 2 7 | } 8 | 9 | module "nat_gateway" { 10 | source = "github.com/skyscrapers/terraform-network//nat_gateway?ref=4.0.0" 11 | private_route_tables = module.vpc.private_rts 12 | public_subnets = module.vpc.public_nat-bastion 13 | } 14 | 15 | -------------------------------------------------------------------------------- /examples/basic/concourse.tf: -------------------------------------------------------------------------------- 1 | module "concourse_keys" { 2 | source = "../../keys" 3 | environment = var.environment 4 | name = var.project 5 | concourse_workers_iam_role_arns = [module.concourse_worker.worker_iam_role_arn] 6 | bucket_force_destroy = true 7 | } 8 | 9 | module "concourse_web" { 10 | source = "../../ecs-web" 11 | environment = var.environment 12 | name = var.project 13 | ecs_cluster = module.ecs_cluster.cluster_name 14 | concourse_db_host = module.postgres.rds_address 15 | ecs_service_role_arn = module.ecs_cluster.ecs-service-role 16 | concourse_version = var.concourse_version 17 | concourse_db_username = var.concourse_db_username 18 | concourse_db_password = var.concourse_db_password 19 | concourse_db_name = var.concourse_db_name 20 | concourse_github_auth_client_id = var.github_client_id 21 | concourse_auth_username = var.concourse_auth_username 22 | concourse_auth_password = var.concourse_auth_password 23 | concourse_github_auth_client_secret = var.github_client_secret 24 | concourse_github_auth_team = var.github_auth_team 25 | elb_subnets = module.vpc.public_lb_subnets 26 | container_memory = var.container_memory 27 | container_cpu = var.container_cpu 28 | backend_security_group_id = aws_security_group.sg_ecs_instance.id 29 | ssl_certificate_id = var.elb_ssl_certificate_id 30 | keys_bucket_id = module.concourse_keys.keys_bucket_id 31 | keys_bucket_arn = module.concourse_keys.keys_bucket_arn 32 | concourse_db_root_password = var.rds_root_password 33 | auto_create_db = true 34 | concourse_db_postgres_engine_version = var.db_engine_version 35 | concourse_auth_main_team_local_user = var.concourse_auth_username 36 | } 37 | 38 | module "concourse_worker" { 39 | source = "../../ec2-worker" 40 | environment = var.environment 41 | name = var.project 42 | concourse_worker_instance_count = var.worker_instance_count 43 | concourse_version = var.concourse_version 44 | concourse_hostname = module.concourse_web.concourse_hostname 45 | keys_bucket_id = module.concourse_keys.keys_bucket_id 46 | keys_bucket_arn = module.concourse_keys.keys_bucket_arn 47 | ssh_key_name = var.key_name 48 | instance_type = "t3.medium" 49 | subnet_ids = module.vpc.private_management_subnets 50 | vpc_id = module.vpc.vpc_id 51 | work_disk_ephemeral = false 52 | cpu_credits = var.worker_cpu_credits 53 | } 54 | 55 | module "concourse_worker_ephemeral" { 56 | source = "../../ec2-worker" 57 | environment = var.environment 58 | name = "${var.project}-ephemeral" 59 | concourse_worker_instance_count = var.worker_instance_count 60 | concourse_version = var.concourse_version 61 | concourse_hostname = module.concourse_web.concourse_hostname 62 | keys_bucket_id = module.concourse_keys.keys_bucket_id 63 | keys_bucket_arn = module.concourse_keys.keys_bucket_arn 64 | ssh_key_name = var.key_name 65 | instance_type = "c5ad.large" 66 | subnet_ids = module.vpc.private_management_subnets 67 | vpc_id = module.vpc.vpc_id 68 | work_disk_ephemeral = true 69 | cpu_credits = var.worker_cpu_credits 70 | } 71 | 72 | # Workers need to access the outside world 73 | resource "aws_security_group_rule" "workers_access_out" { 74 | security_group_id = module.concourse_worker.worker_instances_sg_id 75 | type = "egress" 76 | from_port = 0 77 | to_port = 0 78 | protocol = "-1" 79 | cidr_blocks = ["0.0.0.0/0"] 80 | } 81 | 82 | resource "aws_security_group_rule" "workers_ephemeral_access_out" { 83 | security_group_id = module.concourse_worker_ephemeral.worker_instances_sg_id 84 | type = "egress" 85 | from_port = 0 86 | to_port = 0 87 | protocol = "-1" 88 | cidr_blocks = ["0.0.0.0/0"] 89 | } 90 | -------------------------------------------------------------------------------- /examples/basic/ecs.tf: -------------------------------------------------------------------------------- 1 | module "ecs_cluster" { 2 | source = "github.com/skyscrapers/terraform-ecs//ecs-cluster?ref=3.0.1" 3 | project = var.project 4 | environment = var.environment 5 | } 6 | 7 | data "aws_ami" "ecs" { 8 | # http://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI_launch_latest.html 9 | most_recent = true 10 | 11 | filter { 12 | name = "name" 13 | values = ["amzn-ami-*-amazon-ecs-optimized"] 14 | } 15 | 16 | filter { 17 | name = "virtualization-type" 18 | values = ["hvm"] 19 | } 20 | 21 | owners = ["591542846629"] # Amazon 22 | } 23 | 24 | module "bluegreen" { 25 | source = "github.com/skyscrapers/terraform-bluegreen//blue-green?ref=3.0.1" 26 | name = "asg-${var.project}-test-cluster-${terraform.workspace}" 27 | blue_ami = data.aws_ami.ecs.id 28 | green_ami = data.aws_ami.ecs.id 29 | subnets = module.vpc.private_app_subnets 30 | green_instance_type = var.ecs_instance_type 31 | blue_instance_type = var.ecs_instance_type 32 | iam_instance_profile = module.ecs_cluster.ecs-instance-profile 33 | key_name = var.key_name 34 | blue_max_size = 1 35 | blue_min_size = 1 36 | blue_desired_capacity = 1 37 | blue_disk_volume_size = 30 38 | green_max_size = 0 39 | green_min_size = 0 40 | green_desired_capacity = 0 41 | green_disk_volume_size = 30 42 | security_groups = [aws_security_group.sg_ecs_instance.id] 43 | 44 | green_user_data = <> /etc/ecs/ecs.config 47 | EOF 48 | blue_user_data = <> /etc/ecs/ecs.config 51 | EOF 52 | 53 | } 54 | 55 | resource "aws_security_group" "sg_ecs_instance" { 56 | name = "sg_ecs_instance_${var.project}_${var.environment}" 57 | description = "Security group that is needed for the ecs instance hosts" 58 | vpc_id = module.vpc.vpc_id 59 | 60 | tags = { 61 | Environment = var.environment 62 | Project = var.project 63 | } 64 | } 65 | 66 | resource "aws_security_group_rule" "sg_ecs_out_ntp" { 67 | type = "egress" 68 | security_group_id = aws_security_group.sg_ecs_instance.id 69 | from_port = 123 70 | to_port = 123 71 | protocol = "udp" 72 | cidr_blocks = ["0.0.0.0/0"] 73 | } 74 | 75 | # Allow HTTP connections to the outside 76 | resource "aws_security_group_rule" "sg_ecs_out_http" { 77 | type = "egress" 78 | security_group_id = aws_security_group.sg_ecs_instance.id 79 | from_port = 80 80 | to_port = 80 81 | protocol = "tcp" 82 | cidr_blocks = ["0.0.0.0/0"] 83 | } 84 | 85 | # Allow HTTPS connections to the outside 86 | resource "aws_security_group_rule" "sg_ecs_out_https" { 87 | type = "egress" 88 | security_group_id = aws_security_group.sg_ecs_instance.id 89 | from_port = 443 90 | to_port = 443 91 | protocol = "tcp" 92 | cidr_blocks = ["0.0.0.0/0"] 93 | } 94 | 95 | -------------------------------------------------------------------------------- /examples/basic/outputs.tf: -------------------------------------------------------------------------------- 1 | output "concourse_hostname" { 2 | value = module.concourse_web.concourse_hostname 3 | } 4 | 5 | output "concourse_local_user_username" { 6 | value = var.concourse_auth_username 7 | } 8 | 9 | output "concourse_local_user_password" { 10 | value = var.concourse_auth_password 11 | } 12 | 13 | -------------------------------------------------------------------------------- /examples/basic/rds.tf: -------------------------------------------------------------------------------- 1 | module "postgres" { 2 | source = "github.com/skyscrapers/terraform-rds//rds?ref=5.0.0" 3 | vpc_id = module.vpc.vpc_id 4 | subnets = module.vpc.private_db_subnets 5 | project = "${var.project}-concourse" 6 | environment = var.environment 7 | size = var.db_instance_type 8 | security_groups = [aws_security_group.sg_ecs_instance.id] 9 | security_groups_count = 1 10 | rds_password = var.rds_root_password 11 | multi_az = false 12 | engine = "postgres" 13 | storage_encrypted = var.rds_storage_encrypted 14 | engine_version = var.db_engine_version 15 | default_parameter_group_family = var.default_parameter_group_family 16 | storage = var.rds_allocated_storage 17 | apply_immediately = true 18 | skip_final_snapshot = true 19 | backup_retention_period = 0 20 | } 21 | 22 | resource "aws_security_group_rule" "sg_ecs_instances_postgres_out" { 23 | security_group_id = aws_security_group.sg_ecs_instance.id 24 | type = "egress" 25 | from_port = 5432 26 | to_port = 5432 27 | protocol = "tcp" 28 | source_security_group_id = module.postgres.rds_sg_id 29 | } 30 | 31 | -------------------------------------------------------------------------------- /examples/basic/variables.tf: -------------------------------------------------------------------------------- 1 | variable "cidr_block" { 2 | default = "172.30.0.0/16" 3 | type = string 4 | } 5 | 6 | variable "environment" { 7 | default = "test" 8 | type = string 9 | } 10 | 11 | variable "project" { 12 | type = string 13 | default = "sample" 14 | } 15 | 16 | variable "db_instance_type" { 17 | default = "db.t2.micro" 18 | type = string 19 | } 20 | 21 | variable "rds_root_password" { 22 | default = "superduperstrongpassword" 23 | type = string 24 | } 25 | 26 | variable "rds_storage_encrypted" { 27 | default = false 28 | type = bool 29 | } 30 | 31 | variable "db_engine_version" { 32 | default = "12.10" 33 | type = string 34 | } 35 | 36 | variable "default_parameter_group_family" { 37 | default = "postgres12" 38 | type = string 39 | } 40 | 41 | variable "rds_allocated_storage" { 42 | default = "10" 43 | type = string 44 | } 45 | 46 | variable "key_name" { 47 | default = "" 48 | type = string 49 | } 50 | 51 | variable "ecs_instance_type" { 52 | default = "t3.micro" 53 | type = string 54 | } 55 | 56 | variable "concourse_version" { 57 | type = string 58 | } 59 | 60 | variable "concourse_db_username" { 61 | default = "concourse" 62 | type = string 63 | } 64 | 65 | variable "concourse_db_password" { 66 | default = "concourse" 67 | type = string 68 | } 69 | 70 | variable "concourse_db_name" { 71 | default = "concourse" 72 | type = string 73 | } 74 | 75 | variable "github_client_id" { 76 | default = null 77 | type = string 78 | } 79 | 80 | variable "concourse_auth_username" { 81 | default = "concourse" 82 | type = string 83 | } 84 | 85 | variable "concourse_auth_password" { 86 | default = "concourse" 87 | type = string 88 | } 89 | 90 | variable "github_client_secret" { 91 | default = null 92 | type = string 93 | } 94 | 95 | variable "github_auth_team" { 96 | default = null 97 | type = string 98 | } 99 | 100 | variable "container_memory" { 101 | default = "256" 102 | type = string 103 | } 104 | 105 | variable "container_cpu" { 106 | default = "256" 107 | type = string 108 | } 109 | 110 | variable "elb_ssl_certificate_id" { 111 | default = "" 112 | type = string 113 | } 114 | 115 | variable "worker_instance_count" { 116 | default = 1 117 | type = number 118 | } 119 | 120 | variable "worker_cpu_credits" { 121 | default = "standard" 122 | type = string 123 | } 124 | -------------------------------------------------------------------------------- /examples/basic/versions.tf: -------------------------------------------------------------------------------- 1 | 2 | terraform { 3 | required_version = "~> 1.0" 4 | 5 | required_providers { 6 | aws = { 7 | source = "hashicorp/aws" 8 | version = "~> 3.74" 9 | } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /keys/cross-account.tf: -------------------------------------------------------------------------------- 1 | data "aws_iam_policy_document" "concourse_keys_cross_account_assume_role_policy" { 2 | statement { 3 | actions = ["sts:AssumeRole"] 4 | effect = "Allow" 5 | 6 | principals { 7 | type = "AWS" 8 | identifiers = var.concourse_workers_iam_role_arns 9 | } 10 | } 11 | } 12 | 13 | data "aws_iam_policy_document" "concourse_keys_cross_account_policy" { 14 | statement { 15 | effect = "Allow" 16 | 17 | actions = [ 18 | "s3:Get*", 19 | "s3:List*", 20 | ] 21 | 22 | resources = [ 23 | aws_s3_bucket.concourse_keys.arn, 24 | "${aws_s3_bucket.concourse_keys.arn}/*", 25 | ] 26 | } 27 | } 28 | 29 | resource "aws_iam_role" "concourse_keys_cross_account" { 30 | name_prefix = "concourse-keys-" 31 | description = "This role is meant to be assumed by Concourse workers on other AWS accounts to be able to access the Concourse keys. Setup: ${var.name}" 32 | assume_role_policy = data.aws_iam_policy_document.concourse_keys_cross_account_assume_role_policy.json 33 | } 34 | 35 | resource "aws_iam_role_policy" "concourse_keys_cross_account" { 36 | role = aws_iam_role.concourse_keys_cross_account.name 37 | policy = data.aws_iam_policy_document.concourse_keys_cross_account_policy.json 38 | } 39 | 40 | -------------------------------------------------------------------------------- /keys/keys.tf: -------------------------------------------------------------------------------- 1 | resource "tls_private_key" "session_signing" { 2 | count = var.generate_keys ? 1 : 0 3 | algorithm = "RSA" 4 | rsa_bits = "4096" 5 | } 6 | 7 | resource "tls_private_key" "tsa_host" { 8 | count = var.generate_keys ? 1 : 0 9 | algorithm = "RSA" 10 | rsa_bits = "4096" 11 | } 12 | 13 | resource "tls_private_key" "worker" { 14 | count = var.generate_keys ? 1 : 0 15 | algorithm = "RSA" 16 | rsa_bits = "4096" 17 | } 18 | 19 | resource "aws_s3_bucket_object" "session_signing_key" { 20 | count = var.generate_keys ? 1 : 0 21 | key = "session_signing_key" 22 | bucket = aws_s3_bucket.concourse_keys.bucket 23 | content = join("", tls_private_key.session_signing.*.private_key_pem) 24 | server_side_encryption = "AES256" 25 | } 26 | 27 | resource "aws_s3_bucket_object" "session_signing_pub_key" { 28 | count = var.generate_keys ? 1 : 0 29 | key = "session_signing_key.pub" 30 | bucket = aws_s3_bucket.concourse_keys.bucket 31 | content = join("", tls_private_key.session_signing.*.public_key_openssh) 32 | server_side_encryption = "AES256" 33 | } 34 | 35 | resource "aws_s3_bucket_object" "tsa_host_key" { 36 | count = var.generate_keys ? 1 : 0 37 | key = "tsa_host_key" 38 | bucket = aws_s3_bucket.concourse_keys.bucket 39 | content = join("", tls_private_key.tsa_host.*.private_key_pem) 40 | server_side_encryption = "AES256" 41 | } 42 | 43 | resource "aws_s3_bucket_object" "tsa_host_pub_key" { 44 | count = var.generate_keys ? 1 : 0 45 | key = "tsa_host_key.pub" 46 | bucket = aws_s3_bucket.concourse_keys.bucket 47 | content = join("", tls_private_key.tsa_host.*.public_key_openssh) 48 | server_side_encryption = "AES256" 49 | } 50 | 51 | resource "aws_s3_bucket_object" "worker_key" { 52 | count = var.generate_keys ? 1 : 0 53 | key = "worker_key" 54 | bucket = aws_s3_bucket.concourse_keys.bucket 55 | content = join("", tls_private_key.worker.*.private_key_pem) 56 | server_side_encryption = "AES256" 57 | } 58 | 59 | resource "aws_s3_bucket_object" "worker_pub_key" { 60 | count = var.generate_keys ? 1 : 0 61 | key = "worker_key.pub" 62 | bucket = aws_s3_bucket.concourse_keys.bucket 63 | content = join("", tls_private_key.worker.*.public_key_openssh) 64 | server_side_encryption = "AES256" 65 | } 66 | 67 | resource "aws_s3_bucket_object" "authorized_worker_keys" { 68 | count = var.generate_keys ? 1 : 0 69 | key = "authorized_worker_keys" 70 | bucket = aws_s3_bucket.concourse_keys.bucket 71 | content = join("", tls_private_key.worker.*.public_key_openssh) 72 | server_side_encryption = "AES256" 73 | } 74 | 75 | -------------------------------------------------------------------------------- /keys/outputs.tf: -------------------------------------------------------------------------------- 1 | output "keys_bucket_id" { 2 | value = aws_s3_bucket.concourse_keys.id 3 | description = "The id (name) of the S3 bucket where the concourse keys are stored" 4 | } 5 | 6 | output "keys_bucket_arn" { 7 | value = aws_s3_bucket.concourse_keys.arn 8 | description = "The ARN of the S3 bucket where the concourse keys are stored" 9 | } 10 | 11 | output "concourse_keys_cross_account_role_arn" { 12 | value = aws_iam_role.concourse_keys_cross_account.arn 13 | description = "IAM role ARN that Concourse workers on other AWS accounts will need to assume to access the Concourse keys bucket" 14 | } 15 | 16 | -------------------------------------------------------------------------------- /keys/s3.tf: -------------------------------------------------------------------------------- 1 | resource "aws_s3_bucket" "concourse_keys" { 2 | bucket = "concourse-keys-${var.name}-${var.environment}" 3 | acl = "private" 4 | force_destroy = var.bucket_force_destroy 5 | 6 | versioning { 7 | enabled = true 8 | } 9 | 10 | server_side_encryption_configuration { 11 | rule { 12 | apply_server_side_encryption_by_default { 13 | sse_algorithm = "AES256" 14 | } 15 | } 16 | } 17 | 18 | tags = { 19 | Name = "concourse keys for ${var.name}" 20 | Environment = var.environment 21 | } 22 | } 23 | 24 | resource "aws_s3_bucket_policy" "concourse_keys" { 25 | bucket = aws_s3_bucket.concourse_keys.bucket 26 | 27 | policy = < 0 { 292 | err = fmt.Errorf("%v - %s", err, string(errbuf.Bytes())) 293 | } 294 | return outbuf.Bytes(), err 295 | } 296 | 297 | return outbuf.Bytes(), nil 298 | } 299 | -------------------------------------------------------------------------------- /test/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/skyscrapers/terraform-concourse/test 2 | 3 | go 1.14 4 | 5 | require github.com/gruntwork-io/terratest v0.31.3 6 | -------------------------------------------------------------------------------- /test/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 h1:PvKAVQWCtlGUSlZkGW3QLelKaWq7KYv/MW1EboG8bfM= 9 | cloud.google.com/go v0.51.0/go.mod h1:hWtGJ6gnXH+KgDv+V0zFGDvpi07n3z8ZNj3T1RW0Gcw= 10 | cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= 11 | cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE= 12 | cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I= 13 | cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw= 14 | dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= 15 | github.com/Azure/azure-sdk-for-go v35.0.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc= 16 | github.com/Azure/azure-sdk-for-go v38.0.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc= 17 | github.com/Azure/azure-sdk-for-go v46.0.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc= 18 | github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78/go.mod h1:LmzpDX56iTiv29bbRTIsUNlaFfuhWRQBWjQdVyAevI8= 19 | github.com/Azure/go-autorest v14.2.0+incompatible/go.mod h1:r+4oMnoxhatjLLJ6zxSWATqVooLgysK6ZNox3g/xq24= 20 | github.com/Azure/go-autorest/autorest v0.9.0/go.mod h1:xyHB1BMZT0cuDHU7I0+g046+BFDTQ8rEZB0s4Yfa6bI= 21 | github.com/Azure/go-autorest/autorest v0.9.3/go.mod h1:GsRuLYvwzLjjjRoWEIyMUaYq8GNUx2nRB378IPt/1p0= 22 | github.com/Azure/go-autorest/autorest v0.9.6/go.mod h1:/FALq9T/kS7b5J5qsQ+RSTUdAmGFqi0vUdVNNx8q630= 23 | github.com/Azure/go-autorest/autorest v0.11.0/go.mod h1:JFgpikqFJ/MleTTxwepExTKnFUKKszPS8UavbQYUMuw= 24 | github.com/Azure/go-autorest/autorest v0.11.5/go.mod h1:foo3aIXRQ90zFve3r0QiDsrjGDUwWhKl0ZOQy1CT14k= 25 | github.com/Azure/go-autorest/autorest/adal v0.5.0/go.mod h1:8Z9fGy2MpX0PvDjB1pEgQTmVqjGhiHBW7RJJEciWzS0= 26 | github.com/Azure/go-autorest/autorest/adal v0.8.0/go.mod h1:Z6vX6WXXuyieHAXwMj0S6HY6e6wcHn37qQMBQlvY3lc= 27 | github.com/Azure/go-autorest/autorest/adal v0.8.1/go.mod h1:ZjhuQClTqx435SRJ2iMlOxPYt3d2C/T/7TiQCVZSn3Q= 28 | github.com/Azure/go-autorest/autorest/adal v0.8.2/go.mod h1:ZjhuQClTqx435SRJ2iMlOxPYt3d2C/T/7TiQCVZSn3Q= 29 | github.com/Azure/go-autorest/autorest/adal v0.9.0/go.mod h1:/c022QCutn2P7uY+/oQWWNcK9YU+MH96NgK+jErpbcg= 30 | github.com/Azure/go-autorest/autorest/adal v0.9.2/go.mod h1:/3SMAM86bP6wC9Ev35peQDUeqFZBMH07vvUOmg4z/fE= 31 | github.com/Azure/go-autorest/autorest/azure/auth v0.5.1/go.mod h1:ea90/jvmnAwDrSooLH4sRIehEPtG/EPUXavDh31MnA4= 32 | github.com/Azure/go-autorest/autorest/azure/cli v0.4.0/go.mod h1:JljT387FplPzBA31vUcvsetLKF3pec5bdAxjVU4kI2s= 33 | github.com/Azure/go-autorest/autorest/date v0.1.0/go.mod h1:plvfp3oPSKwf2DNjlBjWF/7vwR+cUD/ELuzDCXwHUVA= 34 | github.com/Azure/go-autorest/autorest/date v0.2.0/go.mod h1:vcORJHLJEh643/Ioh9+vPmf1Ij9AEBM5FuBIXLmIy0g= 35 | github.com/Azure/go-autorest/autorest/date v0.3.0/go.mod h1:BI0uouVdmngYNUzGWeSYnokU+TrmwEsOqdt8Y6sso74= 36 | github.com/Azure/go-autorest/autorest/mocks v0.1.0/go.mod h1:OTyCOPRA2IgIlWxVYxBee2F5Gr4kF2zd2J5cFRaIDN0= 37 | github.com/Azure/go-autorest/autorest/mocks v0.2.0/go.mod h1:OTyCOPRA2IgIlWxVYxBee2F5Gr4kF2zd2J5cFRaIDN0= 38 | github.com/Azure/go-autorest/autorest/mocks v0.3.0/go.mod h1:a8FDP3DYzQ4RYfVAxAN3SVSiiO77gL2j2ronKKP0syM= 39 | github.com/Azure/go-autorest/autorest/mocks v0.4.0/go.mod h1:LTp+uSrOhSkaKrUy935gNZuuIPPVsHlr9DSOxSayd+k= 40 | github.com/Azure/go-autorest/autorest/mocks v0.4.1/go.mod h1:LTp+uSrOhSkaKrUy935gNZuuIPPVsHlr9DSOxSayd+k= 41 | github.com/Azure/go-autorest/autorest/to v0.2.0/go.mod h1:GunWKJp1AEqgMaGLV+iocmRAJWqST1wQYhyyjXJ3SJc= 42 | github.com/Azure/go-autorest/autorest/to v0.3.0/go.mod h1:MgwOyqaIuKdG4TL/2ywSsIWKAfJfgHDo8ObuUk3t5sA= 43 | github.com/Azure/go-autorest/autorest/validation v0.1.0/go.mod h1:Ha3z/SqBeaalWQvokg3NZAlQTalVMtOIAs1aGK7G6u8= 44 | github.com/Azure/go-autorest/autorest/validation v0.3.0/go.mod h1:yhLgjC0Wda5DYXl6JAsWyUe4KVNffhoDhG0zVzUMo3E= 45 | github.com/Azure/go-autorest/logger v0.1.0/go.mod h1:oExouG+K6PryycPJfVSxi/koC6LSNgds39diKLz7Vrc= 46 | github.com/Azure/go-autorest/logger v0.2.0/go.mod h1:T9E3cAhj2VqvPOtCYAvby9aBXkZmbF5NWuPV8+WeEW8= 47 | github.com/Azure/go-autorest/tracing v0.5.0/go.mod h1:r/s2XiOKccPW3HrqB+W0TQzfbtp2fGCgRFtBroKn4Dk= 48 | github.com/Azure/go-autorest/tracing v0.6.0/go.mod h1:+vhtPC754Xsa23ID7GlGsrdKBpUA79WCAKPPZVC2DeU= 49 | github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= 50 | github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= 51 | github.com/GoogleCloudPlatform/k8s-cloud-provider v0.0.0-20190822182118-27a4ced34534/go.mod h1:iroGtC8B3tQiqtds1l+mgk/BBOrxbqjH+eUfFQYRc14= 52 | github.com/Microsoft/go-winio v0.4.14/go.mod h1:qXqCSQ3Xa7+6tgxaGTIe4Kpcdsi+P8jBhyzoq1bpyYA= 53 | github.com/NYTimes/gziphandler v0.0.0-20170623195520-56545f4a5d46/go.mod h1:3wb06e3pkSAbeQ52E9H9iFoQsEEwGN64994WTCIhntQ= 54 | github.com/PuerkitoBio/purell v1.0.0/go.mod h1:c11w/QuzBsJSee3cPx9rAFu61PvFxuPbtSwDGJws/X0= 55 | github.com/PuerkitoBio/purell v1.1.1/go.mod h1:c11w/QuzBsJSee3cPx9rAFu61PvFxuPbtSwDGJws/X0= 56 | github.com/PuerkitoBio/urlesc v0.0.0-20160726150825-5bd2802263f2/go.mod h1:uGdkoq3SwY9Y+13GIhn11/XLaGBb4BfwItxLd5jeuXE= 57 | github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578/go.mod h1:uGdkoq3SwY9Y+13GIhn11/XLaGBb4BfwItxLd5jeuXE= 58 | github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= 59 | github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= 60 | github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8= 61 | github.com/aws/aws-lambda-go v1.13.3/go.mod h1:4UKl9IzQMoD+QF79YdCuzCwp8VbmG4VAQwij/eHl5CU= 62 | github.com/aws/aws-sdk-go v1.16.26/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= 63 | github.com/aws/aws-sdk-go v1.27.1 h1:MXnqY6SlWySaZAqNnXThOvjRFdiiOuKtC6i7baFdNdU= 64 | github.com/aws/aws-sdk-go v1.27.1/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= 65 | github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= 66 | github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8= 67 | github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= 68 | github.com/blang/semver v3.5.0+incompatible/go.mod h1:kRBLl5iJ+tD4TcOOxsy/0fnwebNt5EWlYSAyrTnjyyk= 69 | github.com/boombuler/barcode v1.0.1-0.20190219062509-6c824513bacc h1:biVzkmvwrH8WK8raXaxBx6fRVTlJILwEwQGL1I/ByEI= 70 | github.com/boombuler/barcode v1.0.1-0.20190219062509-6c824513bacc/go.mod h1:paBWMcWSl3LHKBqUq+rly7CNSldXjb2rDl3JlRe0mD8= 71 | github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= 72 | github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= 73 | github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= 74 | github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= 75 | github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= 76 | github.com/cockroachdb/datadriven v0.0.0-20190809214429-80d97fb3cbaa/go.mod h1:zn76sxSg3SzpJ0PPJaLDCu+Bu0Lg3sKTORVIj19EIF8= 77 | github.com/containerd/containerd v1.3.0/go.mod h1:bC6axHOhabU15QhwfG7w5PipXdVtMXFTttgp+kVtyUA= 78 | github.com/coreos/etcd v3.3.10+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE= 79 | github.com/coreos/go-etcd v2.0.0+incompatible/go.mod h1:Jez6KQU2B/sWsbdaef3ED8NzMklzPG4d5KIOhIy30Tk= 80 | github.com/coreos/go-oidc v2.1.0+incompatible/go.mod h1:CgnwVTmzoESiwO9qyAFEMiHoZ1nMCKZlZ9V6mm3/LKc= 81 | github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= 82 | github.com/coreos/go-semver v0.3.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= 83 | github.com/coreos/go-systemd v0.0.0-20180511133405-39ca1b05acc7/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= 84 | github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= 85 | github.com/coreos/pkg v0.0.0-20160727233714-3ac0863d7acf/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= 86 | github.com/coreos/pkg v0.0.0-20180108230652-97fdf19511ea/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= 87 | github.com/cpuguy83/go-md2man v1.0.10 h1:BSKMNlYxDvnunlTymqtgONjNnaRV1sTpcovwwjF22jk= 88 | github.com/cpuguy83/go-md2man v1.0.10/go.mod h1:SmD6nW6nTyfqj6ABTjUi3V3JVMnlJmwcJI5acqYI6dE= 89 | github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= 90 | github.com/cpuguy83/go-md2man/v2 v2.0.0 h1:EoUDS0afbrsXAZ9YQ9jdu/mZ2sXgT1/2yyNng4PGlyM= 91 | github.com/cpuguy83/go-md2man/v2 v2.0.0/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= 92 | github.com/creack/pty v1.1.7/go.mod h1:lj5s0c3V2DBrqTV7llrYr5NG6My20zk30Fl46Y7DoTY= 93 | github.com/davecgh/go-spew v0.0.0-20151105211317-5215b55f46b2/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 94 | github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 95 | github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= 96 | github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 97 | github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ= 98 | github.com/dimchansky/utfbom v1.1.0/go.mod h1:rO41eb7gLfo8SF1jd9F8HplJm1Fewwi4mQvIirEdv+8= 99 | github.com/dnaeon/go-vcr v1.0.1/go.mod h1:aBB1+wY4s93YsC3HHjMBMrwTj2R9FHDzUr9KyGc8n1E= 100 | github.com/docker/cli v0.0.0-20191017083524-a8ff7f821017/go.mod h1:JLrzqnKDaYBop7H2jaqPtU4hHvMKP+vjCwu2uszcLI8= 101 | github.com/docker/cli v0.0.0-20200109221225-a4f60165b7a3/go.mod h1:JLrzqnKDaYBop7H2jaqPtU4hHvMKP+vjCwu2uszcLI8= 102 | github.com/docker/distribution v2.7.1+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w= 103 | github.com/docker/docker v0.7.3-0.20190327010347-be7ac8be2ae0/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= 104 | github.com/docker/docker v1.4.2-0.20190924003213-a8608b5b67c7/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= 105 | github.com/docker/docker-credential-helpers v0.6.3/go.mod h1:WRaJzqw3CTB9bk10avuGsjVBZsD05qeibJ1/TYlvc0Y= 106 | github.com/docker/go-connections v0.4.0/go.mod h1:Gbd7IOopHjR8Iph03tsViu4nIes5XhDvyHbTtUxmeec= 107 | github.com/docker/go-units v0.4.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= 108 | github.com/docker/spdystream v0.0.0-20160310174837-449fdfce4d96/go.mod h1:Qh8CwZgvJUkLughtfhJv5dyTYa91l1fOUCrgjqmcifM= 109 | github.com/docker/spdystream v0.0.0-20181023171402-6480d4af844c h1:ZfSZ3P3BedhKGUhzj7BQlPSU4OvT6tfOKe3DVHzOA7s= 110 | github.com/docker/spdystream v0.0.0-20181023171402-6480d4af844c/go.mod h1:Qh8CwZgvJUkLughtfhJv5dyTYa91l1fOUCrgjqmcifM= 111 | github.com/docopt/docopt-go v0.0.0-20180111231733-ee0de3bc6815/go.mod h1:WwZ+bS3ebgob9U8Nd0kOddGdZWjyMGR8Wziv+TBNwSE= 112 | github.com/dustin/go-humanize v0.0.0-20171111073723-bb3d318650d4/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= 113 | github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= 114 | github.com/elazarl/goproxy v0.0.0-20170405201442-c4fc26588b6e/go.mod h1:/Zj4wYkgs4iZTTu3o/KG3Itv/qCCa8VVMlb3i9OVuzc= 115 | github.com/elazarl/goproxy v0.0.0-20180725130230-947c36da3153/go.mod h1:/Zj4wYkgs4iZTTu3o/KG3Itv/qCCa8VVMlb3i9OVuzc= 116 | github.com/elazarl/goproxy v0.0.0-20190911111923-ecfe977594f1/go.mod h1:Ro8st/ElPeALwNFlcTpWmkr6IoMFfkjXAvTHpevnDsM= 117 | github.com/elazarl/goproxy/ext v0.0.0-20190711103511-473e67f1d7d2/go.mod h1:gNh8nYJoAm43RfaxurUnxr+N1PwuFV3ZMl/efxlIlY8= 118 | github.com/emicklei/go-restful v0.0.0-20170410110728-ff4f55a20633/go.mod h1:otzb+WCGbkyDHkqmQmT5YD2WR4BBwUdeQoFo8l/7tVs= 119 | github.com/emicklei/go-restful v2.9.5+incompatible/go.mod h1:otzb+WCGbkyDHkqmQmT5YD2WR4BBwUdeQoFo8l/7tVs= 120 | github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= 121 | github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= 122 | github.com/evanphx/json-patch v4.2.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk= 123 | github.com/evanphx/json-patch v4.9.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk= 124 | github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= 125 | github.com/fatih/color v1.9.0/go.mod h1:eQcE1qtQxscV5RaZvpXrrb8Drkc3/DdQ+uUYCNjL+zU= 126 | github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= 127 | github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= 128 | github.com/ghodss/yaml v0.0.0-20150909031657-73d445a93680/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= 129 | github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= 130 | github.com/go-errors/errors v1.0.1/go.mod h1:f4zRHt4oKfwPJE5k8C9vpYG+aDHdBFUsgrm6/TyX73Q= 131 | github.com/go-errors/errors v1.0.2-0.20180813162953-d98b870cc4e0 h1:skJKxRtNmevLqnayafdLe2AsenqRupVmzZSqrvb5caU= 132 | github.com/go-errors/errors v1.0.2-0.20180813162953-d98b870cc4e0/go.mod h1:f4zRHt4oKfwPJE5k8C9vpYG+aDHdBFUsgrm6/TyX73Q= 133 | github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= 134 | github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= 135 | github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE= 136 | github.com/go-logr/logr v0.1.0/go.mod h1:ixOQHD9gLJUVQQ2ZOR7zLEifBX6tGkNJF4QyIY7sIas= 137 | github.com/go-logr/logr v0.2.0 h1:QvGt2nLcHH0WK9orKa+ppBPAxREcH364nPUedEpK0TY= 138 | github.com/go-logr/logr v0.2.0/go.mod h1:z6/tIYblkpsD+a4lm/fGIIU9mZ+XfAiaFtq7xTgseGU= 139 | github.com/go-openapi/jsonpointer v0.0.0-20160704185906-46af16f9f7b1/go.mod h1:+35s3my2LFTysnkMfxsJBAMHj/DoqoB9knIWoYG/Vk0= 140 | github.com/go-openapi/jsonpointer v0.19.2/go.mod h1:3akKfEdA7DF1sugOqz1dVQHBcuDBPKZGEoHC/NkiQRg= 141 | github.com/go-openapi/jsonpointer v0.19.3/go.mod h1:Pl9vOtqEWErmShwVjC8pYs9cog34VGT37dQOVbmoatg= 142 | github.com/go-openapi/jsonreference v0.0.0-20160704190145-13c6e3589ad9/go.mod h1:W3Z9FmVs9qj+KR4zFKmDPGiLdk1D9Rlm7cyMvf57TTg= 143 | github.com/go-openapi/jsonreference v0.19.2/go.mod h1:jMjeRr2HHw6nAVajTXJ4eiUwohSTlpa0o73RUL1owJc= 144 | github.com/go-openapi/jsonreference v0.19.3/go.mod h1:rjx6GuL8TTa9VaixXglHmQmIL98+wF9xc8zWvFonSJ8= 145 | github.com/go-openapi/spec v0.0.0-20160808142527-6aced65f8501/go.mod h1:J8+jY1nAiCcj+friV/PDoE1/3eeccG9LYBs0tYvLOWc= 146 | github.com/go-openapi/spec v0.19.3/go.mod h1:FpwSN1ksY1eteniUU7X0N/BgJ7a4WvBFVA8Lj9mJglo= 147 | github.com/go-openapi/swag v0.0.0-20160704191624-1d0bd113de87/go.mod h1:DXUve3Dpr1UfpPtxFw+EFuQ41HhCWZfha5jSVRG7C7I= 148 | github.com/go-openapi/swag v0.19.2/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk= 149 | github.com/go-openapi/swag v0.19.5/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk= 150 | github.com/go-sql-driver/mysql v1.4.1 h1:g24URVg0OFbNUTx9qqY1IRZ9D9z3iPyi5zKhQZpNwpA= 151 | github.com/go-sql-driver/mysql v1.4.1/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w= 152 | github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= 153 | github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= 154 | github.com/gogo/protobuf v1.2.1/go.mod h1:hp+jE20tsWTFYpLwKvXlhS1hjn+gTNwPg2I6zVXpSg4= 155 | github.com/gogo/protobuf v1.2.2-0.20190723190241-65acae22fc9d/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o= 156 | github.com/gogo/protobuf v1.3.1 h1:DqDEcV5aeaTmdFBePNpYsp3FlcVH/2ISVVM9Qf8PSls= 157 | github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o= 158 | github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= 159 | github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= 160 | github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= 161 | github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= 162 | github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= 163 | github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= 164 | github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y= 165 | github.com/golang/protobuf v0.0.0-20161109072736-4bd1920723d7/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= 166 | github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= 167 | github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= 168 | github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= 169 | github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= 170 | github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= 171 | github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= 172 | github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= 173 | github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= 174 | github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= 175 | github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= 176 | github.com/golang/protobuf v1.4.2 h1:+Z5KGCizgyZCbGh1KZqA0fcLLkwbsjIzS4aV2v7wJX0= 177 | github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= 178 | github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= 179 | github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= 180 | github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= 181 | github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= 182 | github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= 183 | github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 184 | github.com/google/go-containerregistry v0.0.0-20200110202235-f4fb41bf00a3/go.mod h1:2wIuQute9+hhWqvL3vEI7YB0EKluF4WcPzI1eAliazk= 185 | github.com/google/gofuzz v0.0.0-20161122191042-44d81051d367/go.mod h1:HP5RmnzzSNb993RKQDq4+1A4ia9nllfqcQFTQJedwGI= 186 | github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= 187 | github.com/google/gofuzz v1.1.0 h1:Hsa8mG0dQ46ij8Sl2AYJDUv1oA9/d6Vk+3LG99Oe02g= 188 | github.com/google/gofuzz v1.1.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= 189 | github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= 190 | github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= 191 | github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= 192 | github.com/google/pprof v0.0.0-20191218002539-d4f498aebedc/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= 193 | github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= 194 | github.com/google/uuid v1.0.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= 195 | github.com/google/uuid v1.1.1 h1:Gkbcsh/GbpXz7lPftLA3P6TYMwjCLYm83jiFQZF/3gY= 196 | github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= 197 | github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= 198 | github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= 199 | github.com/googleapis/gnostic v0.0.0-20170729233727-0c5108395e2d/go.mod h1:sJBsCZ4ayReDTBIg8b9dl28c5xFWyhBTVRp3pOg5EKY= 200 | github.com/googleapis/gnostic v0.2.2/go.mod h1:sJBsCZ4ayReDTBIg8b9dl28c5xFWyhBTVRp3pOg5EKY= 201 | github.com/googleapis/gnostic v0.4.1 h1:DLJCy1n/vrD4HPjOvYcT8aYQXpPIzoRZONaYwyycI+I= 202 | github.com/googleapis/gnostic v0.4.1/go.mod h1:LRhVm6pbyptWbWbuZ38d1eyptfvIytN3ir6b65WBswg= 203 | github.com/gophercloud/gophercloud v0.1.0/go.mod h1:vxM41WHh5uqHVBMZHzuwNOHh8XEoIEcSTewFxm1c5g8= 204 | github.com/gorilla/mux v1.7.3/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs= 205 | github.com/gorilla/websocket v0.0.0-20170926233335-4201258b820c/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= 206 | github.com/gorilla/websocket v1.4.0/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= 207 | github.com/gregjones/httpcache v0.0.0-20180305231024-9cad4c3443a7/go.mod h1:FecbI9+v66THATjSRHfNgh1IVFe/9kFxbXtjV0ctIMA= 208 | github.com/grpc-ecosystem/go-grpc-middleware v1.0.1-0.20190118093823-f849b5445de4/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs= 209 | github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk= 210 | github.com/grpc-ecosystem/grpc-gateway v1.9.5/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY= 211 | github.com/gruntwork-io/gruntwork-cli v0.7.0 h1:YgSAmfCj9c61H+zuvHwKfYUwlMhu5arnQQLM4RH+CYs= 212 | github.com/gruntwork-io/gruntwork-cli v0.7.0/go.mod h1:jp6Z7NcLF2avpY8v71fBx6hds9eOFPELSuD/VPv7w00= 213 | github.com/gruntwork-io/terratest v0.31.3 h1:iyTRcIaB3rPHwKNLPBpoRHfo18H79dLt71jFhif/K0o= 214 | github.com/gruntwork-io/terratest v0.31.3/go.mod h1:EEgJie28gX/4AD71IFqgMj6e99KP5mi81hEtzmDjxTo= 215 | github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= 216 | github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= 217 | github.com/hashicorp/golang-lru v0.5.3/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4= 218 | github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= 219 | github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= 220 | github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= 221 | github.com/imdario/mergo v0.3.5/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJh5FfA= 222 | github.com/imdario/mergo v0.3.7 h1:Y+UAYTZ7gDEuOfhxKWy+dvb5dRQ6rJjFSdX2HZY1/gI= 223 | github.com/imdario/mergo v0.3.7/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJh5FfA= 224 | github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= 225 | github.com/jinzhu/copier v0.0.0-20190924061706-b57f9002281a h1:zPPuIq2jAWWPTrGt70eK/BSch+gFAGrNzecsoENgu2o= 226 | github.com/jinzhu/copier v0.0.0-20190924061706-b57f9002281a/go.mod h1:yL958EeXv8Ylng6IfnvG4oflryUi3vgA3xPs9hmII1s= 227 | github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af h1:pmfjZENx5imkbgOkpRUYLnmbU7UEFbjtDA2hxJ1ichM= 228 | github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k= 229 | github.com/joefitzgerald/rainbow-reporter v0.1.0/go.mod h1:481CNgqmVHQZzdIbN52CupLJyoVwB10FQ/IQlF1pdL8= 230 | github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo= 231 | github.com/json-iterator/go v0.0.0-20180612202835-f2b4162afba3/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= 232 | github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= 233 | github.com/json-iterator/go v1.1.7/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= 234 | github.com/json-iterator/go v1.1.8/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= 235 | github.com/json-iterator/go v1.1.10 h1:Kz6Cvnvv2wGdaG/V8yMvfkmNiXq9Ya2KUv4rouJJr68= 236 | github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= 237 | github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= 238 | github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= 239 | github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= 240 | github.com/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvWXihfKN4Q= 241 | github.com/kisielk/errcheck v1.2.0/go.mod h1:/BMXB+zMLi60iA8Vv6Ksmxu/1UDYcXs4uQLJ+jE2L00= 242 | github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= 243 | github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= 244 | github.com/konsorten/go-windows-terminal-sequences v1.0.2/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= 245 | github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= 246 | github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= 247 | github.com/kr/pretty v0.2.0/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= 248 | github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= 249 | github.com/kr/pty v1.1.5/go.mod h1:9r2w37qlBe7rQ6e1fg1S/9xpWHSnaqNdHD3WcMdbPDA= 250 | github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= 251 | github.com/magiconair/properties v1.8.0/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= 252 | github.com/mailru/easyjson v0.0.0-20160728113105-d5b7844b561a/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= 253 | github.com/mailru/easyjson v0.0.0-20190614124828-94de47d64c63/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= 254 | github.com/mailru/easyjson v0.0.0-20190626092158-b2ccc519800e/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= 255 | github.com/mailru/easyjson v0.7.0/go.mod h1:KAzv3t3aY1NaHWoQz1+4F1ccyAH66Jk7yos7ldAVICs= 256 | github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= 257 | github.com/mattn/go-colorable v0.1.4/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= 258 | github.com/mattn/go-isatty v0.0.4/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= 259 | github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= 260 | github.com/mattn/go-isatty v0.0.11/go.mod h1:PhnuNfih5lzO57/f3n+odYbM4JtupLOxQOAqxQCu2WE= 261 | github.com/mattn/go-runewidth v0.0.2/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= 262 | github.com/mattn/go-zglob v0.0.1/go.mod h1:9fxibJccNxU2cnpIKLRRFA7zX7qhkJIQWBb449FYHOo= 263 | github.com/mattn/go-zglob v0.0.2-0.20190814121620-e3c945676326/go.mod h1:9fxibJccNxU2cnpIKLRRFA7zX7qhkJIQWBb449FYHOo= 264 | github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= 265 | github.com/maxbrunsfeld/counterfeiter/v6 v6.2.2/go.mod h1:eD9eIE7cdwcMi9rYluz88Jz2VyhSmden33/aXg4oVIY= 266 | github.com/miekg/dns v1.1.31/go.mod h1:KNUDUusw/aVsxyTYZM1oqvCicbwhgbNgztCETuNZ7xM= 267 | github.com/mitchellh/go-homedir v1.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y= 268 | github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= 269 | github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= 270 | github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= 271 | github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg= 272 | github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= 273 | github.com/modern-go/reflect2 v0.0.0-20180320133207-05fbef0ca5da/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= 274 | github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= 275 | github.com/modern-go/reflect2 v1.0.1 h1:9f412s+6RmYXLWZSEzVVgPGK7C2PphHj5RJrvfx9AWI= 276 | github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= 277 | github.com/morikuni/aec v1.0.0/go.mod h1:BbKIizmSmc5MMPqRYbxO4ZU0S0+P200+tUnFx7PXmsc= 278 | github.com/munnerz/goautoneg v0.0.0-20120707110453-a547fc61f48d/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ= 279 | github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ= 280 | github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= 281 | github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f/go.mod h1:ZdcZmHo+o7JKHSa8/e818NopupXU1YMK5fe1lsApnBw= 282 | github.com/olekukonko/tablewriter v0.0.0-20170122224234-a0225b3f23b5/go.mod h1:vsDQFd/mU46D+Z4whnwzcISnGGzXWMclvtLoiIKAKIo= 283 | github.com/onsi/ginkgo v0.0.0-20170829012221-11459a886d9c/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= 284 | github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= 285 | github.com/onsi/ginkgo v1.8.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= 286 | github.com/onsi/ginkgo v1.10.1/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= 287 | github.com/onsi/ginkgo v1.11.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= 288 | github.com/onsi/gomega v0.0.0-20170829124025-dcabb60a477c/go.mod h1:C1qb7wdrVGGVU+Z6iS04AVkA3Q65CEZX59MT0QO5uiA= 289 | github.com/onsi/gomega v1.5.0/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= 290 | github.com/onsi/gomega v1.7.0/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= 291 | github.com/opencontainers/go-digest v1.0.0-rc1/go.mod h1:cMLVZDEM3+U2I4VmLI6N8jQYUd2OVphdqWwCJHrFt2s= 292 | github.com/opencontainers/image-spec v1.0.1/go.mod h1:BtxoFyWECRxE4U/7sNtV5W15zMzWCbyJoFRP3s7yZA0= 293 | github.com/oracle/oci-go-sdk v7.1.0+incompatible/go.mod h1:VQb79nF8Z2cwLkLS35ukwStZIg5F66tcBccjip/j888= 294 | github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= 295 | github.com/peterbourgon/diskv v2.0.1+incompatible/go.mod h1:uqqh8zWWbv1HBMNONnaR/tNboyR3/BZd58JJSHlUSCU= 296 | github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= 297 | github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= 298 | github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= 299 | github.com/pmezard/go-difflib v0.0.0-20151028094244-d8ed2627bdf0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= 300 | github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= 301 | github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= 302 | github.com/pquerna/cachecontrol v0.0.0-20171018203845-0dec1b30a021/go.mod h1:prYjPmNq4d1NPVmpShWobRqXY3q7Vp+80DqgxxUrUIA= 303 | github.com/pquerna/otp v1.2.0 h1:/A3+Jn+cagqayeR3iHs/L62m5ue7710D35zl1zJ1kok= 304 | github.com/pquerna/otp v1.2.0/go.mod h1:dkJfzwRKNiegxyNb54X/3fLwhCynbMspSyWKnvi1AEg= 305 | github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= 306 | github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo= 307 | github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= 308 | github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= 309 | github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= 310 | github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= 311 | github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= 312 | github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= 313 | github.com/remyoudompheng/bigfft v0.0.0-20170806203942-52369c62f446/go.mod h1:uYEyJGbgTkfkS4+E/PavXkNJcbFIpEtjt2B0KDQ5+9M= 314 | github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg= 315 | github.com/rogpeppe/go-charset v0.0.0-20180617210344-2471d30d28b4/go.mod h1:qgYeAmZ5ZIpBWTGllZSQnw97Dj+woV0toclVaRGI8pc= 316 | github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= 317 | github.com/rubiojr/go-vhd v0.0.0-20160810183302-0bfd3b39853c/go.mod h1:DM5xW0nvfNNm2uytzsvhI3OnX8uzaRAg8UX/CnDqbto= 318 | github.com/russross/blackfriday v1.5.2 h1:HyvC0ARfnZBqnXwABFeSZHpKvJHJJfPz81GNueLj0oo= 319 | github.com/russross/blackfriday v1.5.2/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR/rfWxYHBV53g= 320 | github.com/russross/blackfriday/v2 v2.0.1 h1:lPqVAte+HuHNfhJ/0LC98ESWRz8afy9tM/0RK8m9o+Q= 321 | github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= 322 | github.com/satori/go.uuid v1.2.0/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdhQKdks0= 323 | github.com/sclevine/spec v1.2.0/go.mod h1:W4J29eT/Kzv7/b9IWLB055Z+qvVC9vt0Arko24q7p+U= 324 | github.com/shurcooL/sanitized_anchor_name v1.0.0 h1:PdmoCO6wvbs+7yrJyMORt4/BmY5IYyJwS/kOiWx8mHo= 325 | github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc= 326 | github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= 327 | github.com/sirupsen/logrus v1.4.1/go.mod h1:ni0Sbl8bgC9z8RoU9G6nDWqqs/fq4eDPysMBDgk/93Q= 328 | github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE= 329 | github.com/soheilhy/cmux v0.1.4/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4kGIyLM= 330 | github.com/spf13/afero v1.1.2/go.mod h1:j4pytiNVoe2o6bmDsKpLACNPDBIoEAkihy7loJ1B0CQ= 331 | github.com/spf13/afero v1.2.2/go.mod h1:9ZxEEn6pIJ8Rxe320qSDBk6AsU0r9pR7Q4OcevTdifk= 332 | github.com/spf13/cast v1.3.0/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= 333 | github.com/spf13/cobra v0.0.3/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ= 334 | github.com/spf13/cobra v0.0.5/go.mod h1:3K3wKZymM7VvHMDS9+Akkh4K60UwM26emMESw8tLCHU= 335 | github.com/spf13/jwalterweatherman v1.0.0/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo= 336 | github.com/spf13/pflag v0.0.0-20170130214245-9ff6c6923cff/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= 337 | github.com/spf13/pflag v1.0.1/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= 338 | github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= 339 | github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= 340 | github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= 341 | github.com/spf13/viper v1.3.2/go.mod h1:ZiWeW+zYFKm7srdB9IoDzzZXaJaI5eL9QjNiN/DMA2s= 342 | github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= 343 | github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= 344 | github.com/stretchr/objx v0.2.0/go.mod h1:qt09Ya8vawLte6SNmTgCsAVtYtaKzEcn8ATUoHMkEqE= 345 | github.com/stretchr/testify v0.0.0-20151208002404-e3a8ff8ce365/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= 346 | github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= 347 | github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= 348 | github.com/stretchr/testify v1.4.0 h1:2E4SXV/wtOkTonXsotYi4li6zVWxYlZuYNCXe9XRJyk= 349 | github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= 350 | github.com/tmc/grpc-websocket-proxy v0.0.0-20170815181823-89b8d40f7ca8/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= 351 | github.com/ugorji/go/codec v0.0.0-20181204163529-d75b2dcb6bc8/go.mod h1:VFNgLljTbGfSG7qAOspJ7OScBnGdDN/yBr0sguwnwf0= 352 | github.com/urfave/cli v1.20.0/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijbERA= 353 | github.com/urfave/cli v1.22.1/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0= 354 | github.com/urfave/cli v1.22.2 h1:gsqYFH8bb9ekPA12kRo0hfjngWQjkJPlN9R0N78BoUo= 355 | github.com/urfave/cli v1.22.2/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0= 356 | github.com/vdemeester/k8s-pkg-credentialprovider v0.0.0-20200107171650-7c61ffa44238/go.mod h1:JwQJCMWpUDqjZrB5jpw0f5VbN7U95zxFy1ZDpoEarGo= 357 | github.com/vmware/govmomi v0.20.3/go.mod h1:URlwyTFZX72RmxtxuaFL2Uj3fD1JTvZdx59bHWk6aFU= 358 | github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU= 359 | github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77/go.mod h1:aYKd//L2LvnjZzWKhF00oedf4jCCReLcmhLdhm1A27Q= 360 | go.etcd.io/bbolt v1.3.3/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU= 361 | go.etcd.io/etcd v0.0.0-20191023171146-3cf2f69b5738/go.mod h1:dnLIgRNXwCJa5e+c6mIZCrds/GIG4ncV9HhK5PX7jPg= 362 | go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= 363 | go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= 364 | go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= 365 | go.uber.org/atomic v1.3.2/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= 366 | go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0= 367 | go.uber.org/zap v1.10.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q= 368 | golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= 369 | golang.org/x/crypto v0.0.0-20181203042331-505ab145d0a9/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= 370 | golang.org/x/crypto v0.0.0-20190211182817-74369b46fc67/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= 371 | golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= 372 | golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= 373 | golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= 374 | golang.org/x/crypto v0.0.0-20190611184440-5c40567a22f8/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= 375 | golang.org/x/crypto v0.0.0-20190820162420-60c769a6c586/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= 376 | golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= 377 | golang.org/x/crypto v0.0.0-20191206172530-e9b2fee46413/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= 378 | golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9 h1:psW17arqaxU48Z5kZ0CQnkZWQJsqcURM6tKiBApRjXI= 379 | golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= 380 | golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= 381 | golang.org/x/exp v0.0.0-20190125153040-c74c464bbbf2/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= 382 | golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= 383 | golang.org/x/exp v0.0.0-20190312203227-4b39c73a6495/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= 384 | golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= 385 | golang.org/x/exp v0.0.0-20190829153037-c13cbed26979/go.mod h1:86+5VVa7VpoJ4kLfm080zCjGlMRFzhUhsZKEZO7MGek= 386 | golang.org/x/exp v0.0.0-20191227195350-da58074b4299/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= 387 | golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= 388 | golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= 389 | golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= 390 | golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= 391 | golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= 392 | golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= 393 | golang.org/x/lint v0.0.0-20190409202823-959b441ac422/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= 394 | golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= 395 | golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRuDixDT3tpyyb+LUpUlRWLxfhWrs= 396 | golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE= 397 | golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o= 398 | golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc= 399 | golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY= 400 | golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= 401 | golang.org/x/net v0.0.0-20170114055629-f2499483f923/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 402 | golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 403 | golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 404 | golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 405 | golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 406 | golang.org/x/net v0.0.0-20181220203305-927f97764cc3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 407 | golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 408 | golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 409 | golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= 410 | golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= 411 | golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= 412 | golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= 413 | golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= 414 | golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 415 | golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 416 | golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 417 | golang.org/x/net v0.0.0-20190813141303-74dc4d7220e7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 418 | golang.org/x/net v0.0.0-20190827160401-ba9fcec4b297/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 419 | golang.org/x/net v0.0.0-20190923162816-aa69164e4478/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 420 | golang.org/x/net v0.0.0-20191004110552-13f9640d40b9/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 421 | golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 422 | golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= 423 | golang.org/x/net v0.0.0-20200707034311-ab3426394381 h1:VXak5I6aEWmAXeQjA+QSZzlgNrpq9mjcfDemuexIKsU= 424 | golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= 425 | golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= 426 | golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= 427 | golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= 428 | golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= 429 | golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d h1:TzXSXBo42m9gQenoE3b9BGiEpg5IG2JkU5FkPIawgtw= 430 | golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= 431 | golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 432 | golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 433 | golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 434 | golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 435 | golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 436 | golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 437 | golang.org/x/sys v0.0.0-20170830134202-bb24a47a89ea/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 438 | golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 439 | golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 440 | golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 441 | golang.org/x/sys v0.0.0-20181107165924-66b7b1311ac8/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 442 | golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 443 | golang.org/x/sys v0.0.0-20181205085412-a5c9d58dba9a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 444 | golang.org/x/sys v0.0.0-20190209173611-3b5209105503/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 445 | golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 446 | golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 447 | golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 448 | golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 449 | golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 450 | golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 451 | golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 452 | golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 453 | golang.org/x/sys v0.0.0-20190616124812-15dcb6c0061f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 454 | golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 455 | golang.org/x/sys v0.0.0-20190626221950-04f50cda93cb/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 456 | golang.org/x/sys v0.0.0-20190826190057-c7b8b68b1456/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 457 | golang.org/x/sys v0.0.0-20190924154521-2837fb4f24fe/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 458 | golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 459 | golang.org/x/sys v0.0.0-20191010194322-b09406accb47/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 460 | golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 461 | golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 462 | golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 463 | golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 464 | golang.org/x/sys v0.0.0-20200622214017-ed371f2e16b4 h1:5/PjkGUjvEU5Gl6BxmvKRPpqo2uNMv4rcHBMwzk/st8= 465 | golang.org/x/sys v0.0.0-20200622214017-ed371f2e16b4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 466 | golang.org/x/text v0.0.0-20160726164857-2910a502d2bf/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= 467 | golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= 468 | golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= 469 | golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= 470 | golang.org/x/text v0.3.3 h1:cokOdA+Jmi5PJGXLlLllQSgYigAEfHXJAERHVMaCc2k= 471 | golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= 472 | golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= 473 | golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= 474 | golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= 475 | golang.org/x/time v0.0.0-20191024005414-555d28b269f0 h1:/5xXl8Y5W96D+TtHSlonuFqGHIWVuyCkGJLwGh9JJFs= 476 | golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= 477 | golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 478 | golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 479 | golang.org/x/tools v0.0.0-20181011042414-1f849cf54d09/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 480 | golang.org/x/tools v0.0.0-20181030221726-6c7e314b6563/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 481 | golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 482 | golang.org/x/tools v0.0.0-20190206041539-40960b6deb8e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 483 | golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= 484 | golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= 485 | golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= 486 | golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= 487 | golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= 488 | golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= 489 | golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= 490 | golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= 491 | golang.org/x/tools v0.0.0-20190614205625-5aca471b1d59/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= 492 | golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= 493 | golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= 494 | golang.org/x/tools v0.0.0-20190706070813-72ffa07ba3db/go.mod h1:jcCCGcm9btYwXyDqrUWc6MKQKKGJCWEQ3AfLSRIbEuI= 495 | golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 496 | golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 497 | golang.org/x/tools v0.0.0-20190920225731-5eefd052ad72/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 498 | golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 499 | golang.org/x/tools v0.0.0-20191125144606-a911d9008d1f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 500 | golang.org/x/tools v0.0.0-20191205215504-7b8c8591a921/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 501 | golang.org/x/tools v0.0.0-20191216052735-49a3e744a425/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 502 | golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 503 | golang.org/x/tools v0.0.0-20200113040837-eac381796e91/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 504 | golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 505 | golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 506 | golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 507 | gonum.org/v1/gonum v0.0.0-20190331200053-3d26580ed485/go.mod h1:2ltnJ7xHfj0zHS40VVPYEAAMTa3ZGguvHGBSJeRWqE0= 508 | gonum.org/v1/netlib v0.0.0-20190313105609-8cb42192e0e0/go.mod h1:wa6Ws7BG/ESfp6dHfk7C6KdzKA7wR7u/rKwOGE66zvw= 509 | gonum.org/v1/netlib v0.0.0-20190331212654-76723241ea4e/go.mod h1:kS+toOQn6AQKjmKJ7gzohV1XkqsFehRA2FbsbkopSuQ= 510 | google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= 511 | google.golang.org/api v0.6.1-0.20190607001116-5213b8090861/go.mod h1:btoxGiFvQNVUZQ8W08zLtrVS08CNpINPEfxXxgJL1Q4= 512 | google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M= 513 | google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= 514 | google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= 515 | google.golang.org/api v0.15.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= 516 | google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= 517 | google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= 518 | google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= 519 | google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0= 520 | google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= 521 | google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= 522 | google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= 523 | google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= 524 | google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= 525 | google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= 526 | google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= 527 | google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= 528 | google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8= 529 | google.golang.org/genproto v0.0.0-20191230161307-f3c370f40bfb/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= 530 | google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= 531 | google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= 532 | google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= 533 | google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= 534 | google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= 535 | google.golang.org/grpc v1.23.1/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= 536 | google.golang.org/grpc v1.24.0/go.mod h1:XDChyiUovWa60DnaeDeZmSW86xtLtjtZbwvSiRnRtcA= 537 | google.golang.org/grpc v1.26.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= 538 | google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= 539 | google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= 540 | google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= 541 | google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= 542 | google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= 543 | google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= 544 | google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= 545 | google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= 546 | google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= 547 | google.golang.org/protobuf v1.24.0 h1:UhZDfRO8JRQru4/+LlLE0BRKGF8L+PICnvYZmx/fEGA= 548 | google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGjtUeSXeh4= 549 | gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= 550 | gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= 551 | gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= 552 | gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= 553 | gopkg.in/cheggaaa/pb.v1 v1.0.25/go.mod h1:V/YB90LKu/1FcN3WVnfiiE5oMCibMjukxqG/qStrOgw= 554 | gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= 555 | gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys= 556 | gopkg.in/gcfg.v1 v1.2.0/go.mod h1:yesOnuUOFQAhST5vPY4nbZsb/huCgGGXlipJsBn0b3o= 557 | gopkg.in/inf.v0 v0.9.1 h1:73M5CoZyi3ZLMOyDlQh031Cx6N9NDJ2Vvfl76EDAgDc= 558 | gopkg.in/inf.v0 v0.9.1/go.mod h1:cWUDdTG/fYaXco+Dcufb5Vnc6Gp2YChqWtbxRZE0mXw= 559 | gopkg.in/natefinch/lumberjack.v2 v2.0.0/go.mod h1:l0ndWWf7gzL7RNwBG7wST/UCcT4T24xpD6X8LsfU/+k= 560 | gopkg.in/resty.v1 v1.12.0/go.mod h1:mDo4pnntr5jdWRML875a/NmxYqAlA73dVijT2AXvQQo= 561 | gopkg.in/square/go-jose.v2 v2.2.2/go.mod h1:M9dMgbHiYLoDGQrXy7OpJDJWiKiU//h+vD76mk0e1AI= 562 | gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= 563 | gopkg.in/warnings.v0 v0.1.1/go.mod h1:jksf8JmL6Qr/oQM2OXTHunEvvTAsrWBLb6OOjuVWRNI= 564 | gopkg.in/yaml.v2 v2.0.0-20170812160011-eb3733d160e7/go.mod h1:JAlM8MvJe8wmxCU4Bli9HhUf9+ttbYbLASfIpnQbh74= 565 | gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 566 | gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 567 | gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 568 | gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10= 569 | gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 570 | gotest.tools v2.2.0+incompatible/go.mod h1:DsYFclhRJ6vuDpmuTbkuFWG+y2sxOXAzmJt81HFBacw= 571 | honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= 572 | honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= 573 | honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= 574 | honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= 575 | honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg= 576 | k8s.io/api v0.17.0/go.mod h1:npsyOePkeP0CPwyGfXDHxvypiYMJxBWAMpQxCaJ4ZxI= 577 | k8s.io/api v0.19.3 h1:GN6ntFnv44Vptj/b+OnMW7FmzkpDoIDLZRvKX3XH9aU= 578 | k8s.io/api v0.19.3/go.mod h1:VF+5FT1B74Pw3KxMdKyinLo+zynBaMBiAfGMuldcNDs= 579 | k8s.io/apimachinery v0.17.0/go.mod h1:b9qmWdKlLuU9EBh+06BtLcSf/Mu89rWL33naRxs1uZg= 580 | k8s.io/apimachinery v0.19.3 h1:bpIQXlKjB4cB/oNpnNnV+BybGPR7iP5oYpsOTEJ4hgc= 581 | k8s.io/apimachinery v0.19.3/go.mod h1:DnPGDnARWFvYa3pMHgSxtbZb7gpzzAZ1pTfaUNDVlmA= 582 | k8s.io/apiserver v0.17.0/go.mod h1:ABM+9x/prjINN6iiffRVNCBR2Wk7uY4z+EtEGZD48cg= 583 | k8s.io/client-go v0.17.0/go.mod h1:TYgR6EUHs6k45hb6KWjVD6jFZvJV4gHDikv/It0xz+k= 584 | k8s.io/client-go v0.19.3 h1:ctqR1nQ52NUs6LpI0w+a5U+xjYwflFwA13OJKcicMxg= 585 | k8s.io/client-go v0.19.3/go.mod h1:+eEMktZM+MG0KO+PTkci8xnbCZHvj9TqR6Q1XDUIJOM= 586 | k8s.io/cloud-provider v0.17.0/go.mod h1:Ze4c3w2C0bRsjkBUoHpFi+qWe3ob1wI2/7cUn+YQIDE= 587 | k8s.io/code-generator v0.0.0-20191121015212-c4c8f8345c7e/go.mod h1:DVmfPQgxQENqDIzVR2ddLXMH34qeszkKSdH/N+s+38s= 588 | k8s.io/component-base v0.17.0/go.mod h1:rKuRAokNMY2nn2A6LP/MiwpoaMRHpfRnrPaUJJj1Yoc= 589 | k8s.io/csi-translation-lib v0.17.0/go.mod h1:HEF7MEz7pOLJCnxabi45IPkhSsE/KmxPQksuCrHKWls= 590 | k8s.io/gengo v0.0.0-20190128074634-0689ccc1d7d6/go.mod h1:ezvh/TsK7cY6rbqRK0oQQ8IAqLxYwwyPxAX1Pzy0ii0= 591 | k8s.io/gengo v0.0.0-20190822140433-26a664648505/go.mod h1:ezvh/TsK7cY6rbqRK0oQQ8IAqLxYwwyPxAX1Pzy0ii0= 592 | k8s.io/gengo v0.0.0-20200413195148-3a45101e95ac/go.mod h1:ezvh/TsK7cY6rbqRK0oQQ8IAqLxYwwyPxAX1Pzy0ii0= 593 | k8s.io/klog v0.0.0-20181102134211-b9b56d5dfc92/go.mod h1:Gq+BEi5rUBO/HRz0bTSXDUcqjScdoY3a9IHpCEIOOfk= 594 | k8s.io/klog v0.3.0/go.mod h1:Gq+BEi5rUBO/HRz0bTSXDUcqjScdoY3a9IHpCEIOOfk= 595 | k8s.io/klog v1.0.0 h1:Pt+yjF5aB1xDSVbau4VsWe+dQNzA0qv1LlXdC2dF6Q8= 596 | k8s.io/klog v1.0.0/go.mod h1:4Bi6QPql/J/LkTDqv7R/cd3hPo4k2DG6Ptcz060Ez5I= 597 | k8s.io/klog/v2 v2.0.0/go.mod h1:PBfzABfn139FHAV07az/IF9Wp1bkk3vpT2XSJ76fSDE= 598 | k8s.io/klog/v2 v2.2.0 h1:XRvcwJozkgZ1UQJmfMGpvRthQHOvihEhYtDfAaxMz/A= 599 | k8s.io/klog/v2 v2.2.0/go.mod h1:Od+F08eJP+W3HUb4pSrPpgp9DGU4GzlpG/TmITuYh/Y= 600 | k8s.io/kube-openapi v0.0.0-20191107075043-30be4d16710a/go.mod h1:1TqjTSzOxsLGIKfj0lK8EeCP7K1iUG65v09OM0/WG5E= 601 | k8s.io/kube-openapi v0.0.0-20200805222855-6aeccd4b50c6/go.mod h1:UuqjUnNftUyPE5H64/qeyjQoUZhGpeFDVdxjTeEVN2o= 602 | k8s.io/legacy-cloud-providers v0.17.0/go.mod h1:DdzaepJ3RtRy+e5YhNtrCYwlgyK87j/5+Yfp0L9Syp8= 603 | k8s.io/utils v0.0.0-20191114184206-e782cd3c129f/go.mod h1:sZAwmy6armz5eXlNoLmJcl4F1QuKu7sr+mFQ0byX7Ew= 604 | k8s.io/utils v0.0.0-20200729134348-d5654de09c73 h1:uJmqzgNWG7XyClnU/mLPBWwfKKF1K8Hf8whTseBgJcg= 605 | k8s.io/utils v0.0.0-20200729134348-d5654de09c73/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA= 606 | modernc.org/cc v1.0.0/go.mod h1:1Sk4//wdnYJiUIxnW8ddKpaOJCF37yAdqYnkxUpaYxw= 607 | modernc.org/golex v1.0.0/go.mod h1:b/QX9oBD/LhixY6NDh+IdGv17hgB+51fET1i2kPSmvk= 608 | modernc.org/mathutil v1.0.0/go.mod h1:wU0vUrJsVWBZ4P6e7xtFJEhFSNsfRLJ8H458uRjg03k= 609 | modernc.org/strutil v1.0.0/go.mod h1:lstksw84oURvj9y3tn8lGvRxyRC1S2+g5uuIzNfIOBs= 610 | modernc.org/xc v1.0.0/go.mod h1:mRNCo0bvLjGhHO9WsyuKVU4q0ceiDDDoEeWDJHrNx8I= 611 | rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= 612 | sigs.k8s.io/structured-merge-diff v0.0.0-20190525122527-15d366b2352e/go.mod h1:wWxsB5ozmmv/SG7nM11ayaAW51xMvak/t1r0CSlcokI= 613 | sigs.k8s.io/structured-merge-diff v1.0.1-0.20191108220359-b1b620dd3f06 h1:zD2IemQ4LmOcAumeiyDWXKUI2SO0NYDe3H6QGvPOVgU= 614 | sigs.k8s.io/structured-merge-diff v1.0.1-0.20191108220359-b1b620dd3f06/go.mod h1:/ULNhyfzRopfcjskuui0cTITekDduZ7ycKN3oUT9R18= 615 | sigs.k8s.io/structured-merge-diff/v4 v4.0.1 h1:YXTMot5Qz/X1iBRJhAt+vI+HVttY0WkSqqhKxQ0xVbA= 616 | sigs.k8s.io/structured-merge-diff/v4 v4.0.1/go.mod h1:bJZC9H9iH24zzfZ/41RGcq60oK1F7G282QMXDPYydCw= 617 | sigs.k8s.io/yaml v1.1.0/go.mod h1:UJmg0vDUVViEyp3mgSv9WPwZCDxu4rQW1olrI1uml+o= 618 | sigs.k8s.io/yaml v1.2.0 h1:kr/MCeFWJWTwyaHoR9c8EjH9OumOmoF9YGiZd7lFm/Q= 619 | sigs.k8s.io/yaml v1.2.0/go.mod h1:yfXDCHCao9+ENCvLSE62v9VSji2MKu5jeNfTrofGhJc= 620 | -------------------------------------------------------------------------------- /test/setup.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | apk add --update unzip curl dep git build-base 4 | 5 | # Unzip terraform binary 6 | unzip terraform-release/terraform_*_linux_amd64.zip -d /usr/local/bin 7 | chmod +x /usr/local/bin/terraform 8 | -------------------------------------------------------------------------------- /test/test_pipeline.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | jobs: 3 | - name: job-hello-world 4 | public: true 5 | plan: 6 | - task: hello-world 7 | config: 8 | platform: linux 9 | image_resource: 10 | type: docker-image 11 | source: {repository: busybox} 12 | run: 13 | path: echo 14 | args: [hello world] 15 | -------------------------------------------------------------------------------- /vault-auth/client.tf: -------------------------------------------------------------------------------- 1 | resource "vault_aws_auth_backend_client" "concourse" { 2 | backend = var.vault_aws_auth_backend_path 3 | iam_server_id_header_value = replace(replace(var.vault_server_url, "/^http(s)?:///", ""), "/", "") 4 | } 5 | -------------------------------------------------------------------------------- /vault-auth/main.tf: -------------------------------------------------------------------------------- 1 | 2 | terraform { 3 | required_version = "~> 1.0" 4 | 5 | required_providers { 6 | vault = { 7 | source = "hashicorp/vault" 8 | version = "~> 3.5" 9 | } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /vault-auth/policy.tf: -------------------------------------------------------------------------------- 1 | resource "vault_policy" "concourse" { 2 | name = var.vault_concourse_role_name 3 | 4 | policy = <