diff --git a/.bumpversion.cfg b/.bumpversion.cfg index 1797337..fab32b7 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 0.2.1 +current_version = 1.0.0 commit = True message = Bumps version to {new_version} tag = False diff --git a/.gitignore b/.gitignore index eb3c473..39ed771 100644 --- a/.gitignore +++ b/.gitignore @@ -18,3 +18,5 @@ tardigrade-ci/ # eclint .git/ +# terratest +tests/go.* diff --git a/Makefile b/Makefile index f89e970..cc9c554 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,5 @@ SHELL := /bin/bash --include $(shell curl -sSL -o .tardigrade-ci "https://raw.githubusercontent.com/plus3it/tardigrade-ci/master/bootstrap/Makefile.bootstrap"; echo .tardigrade-ci) +export TIMEOUT=50m +-include $(shell curl -sSL -o .tardigrade-ci "https://raw.githubusercontent.com/plus3it/tardigrade-ci/master/bootstrap/Makefile.bootstrap"; echo .tardigrade-ci) diff --git a/README.md b/README.md index 163b276..fea8456 100644 --- a/README.md +++ b/README.md @@ -1,47 +1,75 @@ -# terraform-aws-tardigrade-transit-gateway-attachment +# terraform-aws-tardigrade-transit-gateway -This module assumes there are 2 accounts involved in the process. The first account is the `owner` of the transit gateway and -has shared it with the second account. This module will attach a VPC that exists in the second account to the shared transit -gateway and then go into the first account and accept the attachment. +This module will manage a Transit Gateway, as well as its Route Tables, Routes, VPC attachments, Route +Table associations and propagations, and VPC routes associated with the VPC attachments. -## Tests +## Submodules -Given the necessity of two accounts to test this module, the tests assume one of the AWS profiles used for credentials is -called `owner`. +This module includes several submodules for different workflows and use cases. +- [`cross-account-vpc-attachment`](modules/cross-account-vpc-attachment): Creates a cross-account Transit + Gateway VPC Attachment by managing the invite/accept interaction between two accounts. Requires two + providers, one for each account. The providers must be different accounts, and must be using the same + region. The Transit Gateway must be shared using the AWS Resource Access Manager. +- [`cross-region-peering-attachment`](modules/cross-region-peering-attachment):: Creates a cross-region + Peering Attachment, managing the invite/accept workflow between the two regions. Requires two providers, + one for each region. The providers may be the same or different account, but **must** be different + regions. +- [`peering-accepter`](modules/peering-accepter): Accepts a peering attachment request. Used by the + cross-region-peering-attachment module. +- [`peering-attachment`](modules/peering-attachment): Sends a peering attachment invite. Used by the + cross-region-peering-attachment module. +- [`route`](modules/route): Creates a Transit Gateway Route. +- [`route-table`](modules/route-table): Creates a Transit Gateway Route Table. +- [`vpc-accepter`](modules/vpc-accepter): Accepts a VPC attachment request. Used by the cross-account-vpc-attachment + module. Will also the create Transit Gateway Route Table association and propagations for the attachment, + and will manage VPC routes associated with the attachment. +- [`vpc-attachment`](modules/vpc-attachment): Sends a VPC attachment invite. Used by the cross-account-vpc-attachment + module. Will also the create Transit Gateway Route Table association and propagations for the attachment, + and will manage VPC routes associated with the attachment. ## Requirements -No requirements. +| Name | Version | +|------|---------| +| terraform | >= 0.13.0 | ## Providers | Name | Version | |------|---------| | aws | n/a | -| aws.owner | n/a | -| null | n/a | ## Inputs | Name | Description | Type | Default | Required | |------|-------------|------|---------|:--------:| -| create\_tgw\_attachment | Controls whether to create the TGW attachment | `bool` | `true` | no | -| dependencies | List of resource dependencies to force terraform to wait until they are done | `list(string)` | `[]` | no | -| dns\_support | (Optional) Whether DNS support is enabled. Valid values: disable, enable. | `string` | `"enable"` | no | -| name | The name of the TGW attachment for tagging purposes | `string` | `null` | no | -| owner\_routes | List of AWS route objects to create with the "owner" provider. Each route will be created with a target of the transit gateway. |
list(object({
route_table_id = string
destination_cidr_block = string
destination_ipv6_cidr_block = string
}))
| `[]` | no | -| routes | List of AWS route objects to create with the "aws" provider. Each route will be created with a target of the transit gateway. |
list(object({
route_table_id = string
destination_cidr_block = string
destination_ipv6_cidr_block = string
}))
| `[]` | no | -| subnet\_ids | A list of subnets inside the VPC | `list` | `[]` | no | -| tags | A map of tags to apply to the TGW attachment | `map` | `{}` | no | -| transit\_gateway\_id | The ID of the Transit Gateway | `string` | `null` | no | -| vpc\_id | VPC ID to attach to the TGW | `string` | `null` | no | +| amazon\_side\_asn | Private Autonomous System Number (ASN) for the Amazon side of a BGP session (range is 64512 to 65534 for 16-bit ASNs and 4200000000 to 4294967294 for 32-bit ASN) | `number` | `64512` | no | +| auto\_accept\_shared\_attachments | Whether resource attachment requests are automatically accepted (valid values: disable, enable) | `string` | `"disable"` | no | +| default\_route\_table\_association | Whether resource attachments are automatically associated with the default association route table (valid values: disable, enable) | `string` | `"enable"` | no | +| default\_route\_table\_propagation | Whether resource attachments automatically propagate routes to the default propagation route table (valid values: disable, enable) | `string` | `"enable"` | no | +| description | Description of the EC2 Transit Gateway | `string` | `null` | no | +| dns\_support | Whether DNS support is enabled (valid values: disable, enable) | `string` | `"enable"` | no | +| route\_tables | List of TGW route tables to create with the transit gateway |
list(object({
# `name` used as for_each key
name = string
tags = map(string)
}))
| `[]` | no | +| routes | List of TGW routes to add to TGW route tables |
list(object({
# `name` used as for_each key
name = string
blackhole = bool
default_route_table = bool
destination_cidr_block = string
# name from `vpc_attachments` or id of a pre-existing tgw attachment
transit_gateway_attachment = string
# name from `route_tables` or id of a pre-existing route table
transit_gateway_route_table = string
}))
| `[]` | no | +| tags | Map of tags to apply to the TGW and associated resources | `map(string)` | `{}` | no | +| vpc\_attachments | List of VPC attachments to create with the transit gateway |
list(object({
# `name` used as for_each key
name = string
subnet_ids = list(string)
dns_support = string
ipv6_support = string
tags = map(string)
vpc_routes = list(object({
# `name` is used as for_each key
name = string
route_table_id = string
destination_cidr_block = string
destination_ipv6_cidr_block = string
}))
transit_gateway_default_route_table_association = bool
transit_gateway_default_route_table_propagation = bool
# name from `route_tables` or id of a pre-existing route table
transit_gateway_route_table_association = string
# list of route table names from `route_tables` or ids of pre-existing route tables
transit_gateway_route_table_propagations = list(string)
}))
| `[]` | no | +| vpn\_ecmp\_support | Whether VPN Equal Cost Multipath Protocol support is enabled (valid values: disable, enable) | `string` | `"disable"` | no | ## Outputs | Name | Description | |------|-------------| -| transit\_gateway\_attachment\_id | The ID of the Transit Gateway Attachment | +| route\_tables | Map of TGW route table objects | +| routes | Map of TGW route objects | +| transit\_gateway | Object with attributes of the Transit Gateway | +| vpc\_attachments | Map of TGW peering attachment objects | + +## Testing + +This module has tests that require multiple providers. In order to simplify the provider config, it +assumes you have AWS Profiles named `resource-owner` and `resource-member`. These profiles should +resolve a credential for two different accounts. diff --git a/main.tf b/main.tf index 9350b84..42f8204 100644 --- a/main.tf +++ b/main.tf @@ -1,72 +1,81 @@ -provider "aws" {} - -provider "aws" { - alias = "owner" +terraform { + required_version = ">= 0.13.0" } -resource "aws_ec2_transit_gateway_vpc_attachment" "this" { - count = var.create_tgw_attachment ? 1 : 0 - - provider = aws - - subnet_ids = var.subnet_ids - transit_gateway_id = var.transit_gateway_id - vpc_id = var.vpc_id - dns_support = var.dns_support - tags = merge(var.tags, map("Name", var.name)) - - depends_on = [null_resource.dependencies] +resource aws_ec2_transit_gateway this { + amazon_side_asn = var.amazon_side_asn + auto_accept_shared_attachments = var.auto_accept_shared_attachments + default_route_table_association = var.default_route_table_association + default_route_table_propagation = var.default_route_table_propagation + description = var.description + dns_support = var.dns_support + tags = var.tags + vpn_ecmp_support = var.vpn_ecmp_support } -resource "aws_ec2_transit_gateway_vpc_attachment_accepter" "this" { - count = local.create_tgw_accepter ? 1 : 0 +module route_tables { + source = "./modules/route-table" + for_each = { for route_table in var.route_tables : route_table.name => route_table } - provider = aws.owner + transit_gateway_id = aws_ec2_transit_gateway.this.id - transit_gateway_attachment_id = aws_ec2_transit_gateway_vpc_attachment.this[0].id - tags = merge(var.tags, map("Name", var.name)) + tags = merge( + { "Name" : each.key }, + each.value.tags, + ) } -resource "aws_route" "this" { - count = var.create_tgw_attachment ? length(var.routes) : 0 - - provider = aws - - route_table_id = var.routes[count.index].route_table_id - destination_cidr_block = var.routes[count.index].destination_cidr_block - destination_ipv6_cidr_block = var.routes[count.index].destination_ipv6_cidr_block - transit_gateway_id = local.create_tgw_accepter ? aws_ec2_transit_gateway_vpc_attachment_accepter.this[0].transit_gateway_id : aws_ec2_transit_gateway_vpc_attachment.this[0].transit_gateway_id +module routes { + source = "./modules/route" + for_each = { for route in var.routes : route.name => route } + + blackhole = each.value.blackhole + destination_cidr_block = each.value.destination_cidr_block + + transit_gateway_route_table_id = each.value.default_route_table ? ( + aws_ec2_transit_gateway.this.association_default_route_table_id) : ( + try( + module.route_tables[each.value.transit_gateway_route_table].route_table.id, + each.value.transit_gateway_route_table + ) + ) + + transit_gateway_attachment_id = try( + module.vpc_attachments[each.value.transit_gateway_attachment].vpc_attachment.id, + each.value.transit_gateway_attachment + ) } -resource "aws_route" "owner" { - count = var.create_tgw_attachment ? length(var.owner_routes) : 0 - - provider = aws.owner +module vpc_attachments { + source = "./modules/vpc-attachment" + for_each = { for attachment in var.vpc_attachments : attachment.name => attachment } - route_table_id = var.owner_routes[count.index].route_table_id - destination_cidr_block = var.owner_routes[count.index].destination_cidr_block - destination_ipv6_cidr_block = var.owner_routes[count.index].destination_ipv6_cidr_block - transit_gateway_id = local.create_tgw_accepter ? aws_ec2_transit_gateway_vpc_attachment_accepter.this[0].transit_gateway_id : aws_ec2_transit_gateway_vpc_attachment.this[0].transit_gateway_id -} + subnet_ids = each.value.subnet_ids + transit_gateway_id = aws_ec2_transit_gateway.this.id + dns_support = each.value.dns_support + ipv6_support = each.value.ipv6_support + vpc_routes = each.value.vpc_routes -resource "null_resource" "dependencies" { - count = var.create_tgw_attachment ? 1 : 0 + transit_gateway_default_route_table_association = each.value.transit_gateway_default_route_table_association + transit_gateway_default_route_table_propagation = each.value.transit_gateway_default_route_table_propagation - triggers = { - this = join(",", var.dependencies) + transit_gateway_route_table_association = each.value.transit_gateway_route_table_association == null ? null : { + transit_gateway_route_table_id = try( + module.route_tables[each.value.transit_gateway_route_table_association].route_table.id, + each.value.transit_gateway_route_table_association + ) } -} - -data "aws_caller_identity" "this" { - count = var.create_tgw_attachment ? 1 : 0 -} - -data "aws_caller_identity" "owner" { - count = var.create_tgw_attachment ? 1 : 0 - - provider = aws.owner -} -locals { - create_tgw_accepter = var.create_tgw_attachment ? data.aws_caller_identity.this[0].account_id != data.aws_caller_identity.owner[0].account_id : false + transit_gateway_route_table_propagations = [for route_table in each.value.transit_gateway_route_table_propagations : { + name = route_table + transit_gateway_route_table_id = try( + module.route_tables[route_table].route_table.id, + route_table + ) + }] + + tags = merge( + { "Name" : each.key }, + each.value.tags, + ) } diff --git a/modules/cross-account-vpc-attachment/README.md b/modules/cross-account-vpc-attachment/README.md new file mode 100644 index 0000000..c0ad130 --- /dev/null +++ b/modules/cross-account-vpc-attachment/README.md @@ -0,0 +1,45 @@ +# terraform-aws-tardigrade-transit-gateway/cross-account-vpc-attachment + +Terraform module for managing a cross-account Transit Gateway VPC Attachment. + + +## Requirements + +No requirements. + +## Providers + +| Name | Version | +|------|---------| +| aws.owner | n/a | + +## Inputs + +| Name | Description | Type | Default | Required | +|------|-------------|------|---------|:--------:| +| ram\_resource\_association\_id | ID of the RAM resource association for the Transit Gateway | `string` | n/a | yes | +| ram\_share\_id | ID of the RAM Share associated with the Transit Gateway | `string` | n/a | yes | +| subnet\_ids | List of subnets to associate with the VPC attachment | `list(string)` | n/a | yes | +| transit\_gateway\_id | ID of the Transit Gateway | `string` | n/a | yes | +| dns\_support | Whether DNS support is enabled. Valid values: disable, enable. | `string` | `"enable"` | no | +| ipv6\_support | Whether IPv6 support is enabled. Valid values: disable, enable | `string` | `"disable"` | no | +| routes | List of TGW route objects with a target of the VPC attachment in the `aws.owner` account (TGW route tables are *only* in the `aws.owner` account) |
list(object({
# `name` is used as for_each key
name = string
destination_cidr_block = string
transit_gateway_route_table_id = string
}))
| `[]` | no | +| tags | Map of tags to apply to the TGW attachments | `map(string)` | `{}` | no | +| transit\_gateway\_default\_route\_table\_association | Boolean whether the VPC Attachment should be associated to the Transit Gateway default route table | `bool` | `true` | no | +| transit\_gateway\_default\_route\_table\_propagation | Boolean whether the VPC Attachment should propagate routes to the Transit Gateway propagation default route table | `bool` | `true` | no | +| transit\_gateway\_route\_table\_association | ID of the Transit Gateway route table to associate with the VPC attachment (an attachment can be associated with a single TGW route table) |
object({
transit_gateway_route_table_id = string
})
| `null` | no | +| transit\_gateway\_route\_table\_propagations | List of Transit Gateway route tables this VPC attachment will propagate routes to |
list(object({
# `name` is used as for_each key
name = string
transit_gateway_route_table_id = string
}))
| `[]` | no | +| vpc\_routes | List of VPC route objects with a target of the transit gateway. |
list(object({
# `name` is used as for_each key
name = string
provider = string
route_table_id = string
destination_cidr_block = string
destination_ipv6_cidr_block = string
}))
| `[]` | no | + +## Outputs + +| Name | Description | +|------|-------------| +| route\_table\_association | Object with the Transit Gateway route table association attributes | +| route\_table\_propagations | Map of Transit Gateway route table propagation objects | +| routes | Map of Transit Gateway route objects | +| vpc\_accepter | Object with the Transit Gateway VPC attachment accepter attributes | +| vpc\_attachment | Object with the Transit Gateway VPC attachment attributes | +| vpc\_routes | Map of VPC route objects | + + diff --git a/modules/cross-account-vpc-attachment/main.tf b/modules/cross-account-vpc-attachment/main.tf new file mode 100644 index 0000000..6fb0328 --- /dev/null +++ b/modules/cross-account-vpc-attachment/main.tf @@ -0,0 +1,65 @@ +provider aws { + alias = "owner" +} + +module vpc_attachment { + source = "../vpc-attachment" + + subnet_ids = var.subnet_ids + transit_gateway_id = var.transit_gateway_id + cross_account = true + dns_support = var.dns_support + ipv6_support = var.ipv6_support + vpc_routes = [for route in var.vpc_routes : route if route.provider == "aws"] + + tags = merge( + { + ram_share_id = var.ram_share_id + ram_resource_association_id = var.ram_resource_association_id + }, + var.tags, + ) +} + +module vpc_accepter { + source = "../vpc-accepter" + providers = { + aws = aws.owner + } + + transit_gateway_attachment_id = module.vpc_attachment.vpc_attachment.id + vpc_routes = [for route in var.vpc_routes : route if route.provider == "aws.owner"] + tags = var.tags + + transit_gateway_route_table_association = var.transit_gateway_route_table_association + transit_gateway_route_table_propagations = var.transit_gateway_route_table_propagations + + # default assocation and propagation values must be: + # `false` if the transit gateway has no default route table (== "disable") + transit_gateway_default_route_table_association = ( + data.aws_ec2_transit_gateway.this.default_route_table_association == "disable") ? false : ( + var.transit_gateway_default_route_table_association + ) + + transit_gateway_default_route_table_propagation = ( + data.aws_ec2_transit_gateway.this.default_route_table_propagation == "disable") ? false : ( + var.transit_gateway_default_route_table_propagation + ) +} + +module routes { + source = "../route" + for_each = { for route in var.routes : route.name => route } + providers = { + aws = aws.owner + } + + destination_cidr_block = each.value.destination_cidr_block + transit_gateway_attachment_id = module.vpc_accepter.vpc_attachment_accepter.id + transit_gateway_route_table_id = each.value.transit_gateway_route_table_id +} + +data aws_ec2_transit_gateway this { + provider = aws.owner + id = var.transit_gateway_id +} diff --git a/modules/cross-account-vpc-attachment/outputs.tf b/modules/cross-account-vpc-attachment/outputs.tf new file mode 100644 index 0000000..49db689 --- /dev/null +++ b/modules/cross-account-vpc-attachment/outputs.tf @@ -0,0 +1,32 @@ +output vpc_attachment { + description = "Object with the Transit Gateway VPC attachment attributes" + value = module.vpc_attachment.vpc_attachment +} + +output vpc_accepter { + description = "Object with the Transit Gateway VPC attachment accepter attributes" + value = module.vpc_accepter.vpc_attachment_accepter +} + +output route_table_association { + description = "Object with the Transit Gateway route table association attributes" + value = module.vpc_accepter.route_table_association +} + +output route_table_propagations { + description = "Map of Transit Gateway route table propagation objects" + value = module.vpc_accepter.route_table_propagations +} + +output routes { + description = "Map of Transit Gateway route objects" + value = module.routes +} + +output vpc_routes { + description = "Map of VPC route objects" + value = merge( + module.vpc_attachment.vpc_routes, + module.vpc_accepter.vpc_routes, + ) +} diff --git a/modules/cross-account-vpc-attachment/variables.tf b/modules/cross-account-vpc-attachment/variables.tf new file mode 100644 index 0000000..d087553 --- /dev/null +++ b/modules/cross-account-vpc-attachment/variables.tf @@ -0,0 +1,103 @@ +variable ram_share_id { + description = "ID of the RAM Share associated with the Transit Gateway" + type = string +} + +variable ram_resource_association_id { + description = "ID of the RAM resource association for the Transit Gateway" + type = string +} + +variable subnet_ids { + description = "List of subnets to associate with the VPC attachment" + type = list(string) +} + +variable transit_gateway_id { + description = "ID of the Transit Gateway" + type = string +} + +variable dns_support { + description = "Whether DNS support is enabled. Valid values: disable, enable." + type = string + default = "enable" + validation { + condition = contains(["enable", "disable"], var.dns_support) + error_message = "`dns_support` must be one of: \"enable\", \"disable\"." + } +} + +variable ipv6_support { + description = "Whether IPv6 support is enabled. Valid values: disable, enable" + type = string + default = "disable" + validation { + condition = contains(["enable", "disable"], var.ipv6_support) + error_message = "`ipv6_support` must be one of: \"enable\", \"disable\"." + } +} + +variable routes { + description = "List of TGW route objects with a target of the VPC attachment in the `aws.owner` account (TGW route tables are *only* in the `aws.owner` account)" + type = list(object({ + # `name` is used as for_each key + name = string + destination_cidr_block = string + transit_gateway_route_table_id = string + })) + default = [] +} + +variable tags { + description = "Map of tags to apply to the TGW attachments" + type = map(string) + default = {} +} + +variable transit_gateway_default_route_table_association { + description = "Boolean whether the VPC Attachment should be associated to the Transit Gateway default route table" + type = bool + default = true +} + +variable transit_gateway_default_route_table_propagation { + description = "Boolean whether the VPC Attachment should propagate routes to the Transit Gateway propagation default route table" + type = bool + default = true +} + +variable transit_gateway_route_table_association { + description = "ID of the Transit Gateway route table to associate with the VPC attachment (an attachment can be associated with a single TGW route table)" + type = object({ + transit_gateway_route_table_id = string + }) + default = null +} + +variable transit_gateway_route_table_propagations { + description = "List of Transit Gateway route tables this VPC attachment will propagate routes to" + type = list(object({ + # `name` is used as for_each key + name = string + transit_gateway_route_table_id = string + })) + default = [] +} + +variable vpc_routes { + description = "List of VPC route objects with a target of the transit gateway." + type = list(object({ + # `name` is used as for_each key + name = string + provider = string + route_table_id = string + destination_cidr_block = string + destination_ipv6_cidr_block = string + })) + default = [] + validation { + condition = length(setsubtract(var.vpc_routes[*].provider, ["aws", "aws.owner"])) == 0 + error_message = "The `provider` attribute for each VPC route must be one of: \"aws\", \"aws.owner\"." + } +} diff --git a/modules/cross-region-peering-attachment/README.md b/modules/cross-region-peering-attachment/README.md new file mode 100644 index 0000000..79ac593 --- /dev/null +++ b/modules/cross-region-peering-attachment/README.md @@ -0,0 +1,32 @@ +# terraform-aws-tardigrade-transit-gateway/cross-region-peering-attachment + +Terraform module for managing a cross-region Transit Gateway Peering Attachment. The two providers +may be the same or different accounts, but must be different regions. + + +## Requirements + +No requirements. + +## Providers + +No provider. + +## Inputs + +| Name | Description | Type | Default | Required | +|------|-------------|------|---------|:--------:| +| peer\_region | Region of EC2 Transit Gateway to peer with | `string` | n/a | yes | +| peer\_transit\_gateway\_id | ID of the Transit Gateway to peer with | `string` | n/a | yes | +| transit\_gateway\_id | ID of the Transit Gateway | `string` | n/a | yes | +| peer\_account\_id | ID of the AWS account that owns the Transit Gateway peer | `string` | `null` | no | +| tags | Map of tags to apply to the TGW peering attachments | `map(string)` | `{}` | no | + +## Outputs + +| Name | Description | +|------|-------------| +| peering\_accepter | Object with the Transit Gateway peering attachment accepter attributes | +| peering\_attachment | Object with the Transit Gateway peering attachment attributes | + + diff --git a/modules/cross-region-peering-attachment/main.tf b/modules/cross-region-peering-attachment/main.tf new file mode 100644 index 0000000..1c47bf9 --- /dev/null +++ b/modules/cross-region-peering-attachment/main.tf @@ -0,0 +1,24 @@ +provider aws { + alias = "peer" +} + +module peering_attachment { + source = "../peering-attachment" + + peer_account_id = var.peer_account_id + peer_region = var.peer_region + peer_transit_gateway_id = var.peer_transit_gateway_id + transit_gateway_id = var.transit_gateway_id + tags = var.tags +} + +module peering_accepter { + source = "../peering-accepter" + providers = { + aws = aws.peer + } + + peering_attachment_id = module.peering_attachment.peering_attachment.id + + tags = var.tags +} diff --git a/modules/cross-region-peering-attachment/outputs.tf b/modules/cross-region-peering-attachment/outputs.tf new file mode 100644 index 0000000..009222f --- /dev/null +++ b/modules/cross-region-peering-attachment/outputs.tf @@ -0,0 +1,9 @@ +output peering_attachment { + description = "Object with the Transit Gateway peering attachment attributes" + value = module.peering_attachment.peering_attachment +} + +output peering_accepter { + description = "Object with the Transit Gateway peering attachment accepter attributes" + value = module.peering_accepter.peering_attachment_accepter +} diff --git a/modules/cross-region-peering-attachment/variables.tf b/modules/cross-region-peering-attachment/variables.tf new file mode 100644 index 0000000..a16705f --- /dev/null +++ b/modules/cross-region-peering-attachment/variables.tf @@ -0,0 +1,26 @@ +variable transit_gateway_id { + description = "ID of the Transit Gateway" + type = string +} + +variable peer_region { + description = "Region of EC2 Transit Gateway to peer with" + type = string +} + +variable peer_transit_gateway_id { + description = "ID of the Transit Gateway to peer with" + type = string +} + +variable peer_account_id { + description = "ID of the AWS account that owns the Transit Gateway peer" + type = string + default = null +} + +variable tags { + description = "Map of tags to apply to the TGW peering attachments" + type = map(string) + default = {} +} diff --git a/modules/peering-accepter/README.md b/modules/peering-accepter/README.md new file mode 100644 index 0000000..64b4ca5 --- /dev/null +++ b/modules/peering-accepter/README.md @@ -0,0 +1,29 @@ +# terraform-aws-tardigrade-transit-gateway/peering-accepter + +Terraform module for managing a Transit Gateway Peering Attachment Accepter. + + +## Requirements + +No requirements. + +## Providers + +| Name | Version | +|------|---------| +| aws | n/a | + +## Inputs + +| Name | Description | Type | Default | Required | +|------|-------------|------|---------|:--------:| +| peering\_attachment\_id | ID of the TGW peering attachment | `string` | n/a | yes | +| tags | Map of tags to apply to the TGW peering attachment | `map(string)` | `{}` | no | + +## Outputs + +| Name | Description | +|------|-------------| +| peering\_attachment\_accepter | Object with the Transit Gateway peering attachment accepter attributes | + + diff --git a/modules/peering-accepter/main.tf b/modules/peering-accepter/main.tf new file mode 100644 index 0000000..b84d7a2 --- /dev/null +++ b/modules/peering-accepter/main.tf @@ -0,0 +1,5 @@ +resource aws_ec2_transit_gateway_peering_attachment_accepter this { + transit_gateway_attachment_id = var.peering_attachment_id + + tags = var.tags +} diff --git a/modules/peering-accepter/outputs.tf b/modules/peering-accepter/outputs.tf new file mode 100644 index 0000000..f24066f --- /dev/null +++ b/modules/peering-accepter/outputs.tf @@ -0,0 +1,4 @@ +output peering_attachment_accepter { + description = "Object with the Transit Gateway peering attachment accepter attributes" + value = aws_ec2_transit_gateway_peering_attachment_accepter.this +} diff --git a/modules/peering-accepter/variables.tf b/modules/peering-accepter/variables.tf new file mode 100644 index 0000000..ea25f9b --- /dev/null +++ b/modules/peering-accepter/variables.tf @@ -0,0 +1,10 @@ +variable peering_attachment_id { + description = "ID of the TGW peering attachment" + type = string +} + +variable tags { + description = "Map of tags to apply to the TGW peering attachment" + type = map(string) + default = {} +} diff --git a/modules/peering-attachment/README.md b/modules/peering-attachment/README.md new file mode 100644 index 0000000..40910a0 --- /dev/null +++ b/modules/peering-attachment/README.md @@ -0,0 +1,32 @@ +# terraform-aws-tardigrade-transit-gateway/peering-attachment + +Terraform module for managing a Transit Gateway Peering Attachment. + + +## Requirements + +No requirements. + +## Providers + +| Name | Version | +|------|---------| +| aws | n/a | + +## Inputs + +| Name | Description | Type | Default | Required | +|------|-------------|------|---------|:--------:| +| peer\_region | Region of EC2 Transit Gateway to peer with | `string` | n/a | yes | +| peer\_transit\_gateway\_id | ID of the Transit Gateway to peer with | `string` | n/a | yes | +| transit\_gateway\_id | ID of the Transit Gateway | `string` | n/a | yes | +| peer\_account\_id | ID of the AWS account that owns the Transit Gateway peer | `string` | `null` | no | +| tags | Map of tags to apply to the TGW peering attachment | `map(string)` | `{}` | no | + +## Outputs + +| Name | Description | +|------|-------------| +| peering\_attachment | Object with the Transit Gateway peering attachment attributes | + + diff --git a/modules/peering-attachment/main.tf b/modules/peering-attachment/main.tf new file mode 100644 index 0000000..088332f --- /dev/null +++ b/modules/peering-attachment/main.tf @@ -0,0 +1,7 @@ +resource aws_ec2_transit_gateway_peering_attachment this { + peer_account_id = var.peer_account_id + peer_region = var.peer_region + peer_transit_gateway_id = var.peer_transit_gateway_id + transit_gateway_id = var.transit_gateway_id + tags = var.tags +} diff --git a/modules/peering-attachment/outputs.tf b/modules/peering-attachment/outputs.tf new file mode 100644 index 0000000..f851ab8 --- /dev/null +++ b/modules/peering-attachment/outputs.tf @@ -0,0 +1,4 @@ +output peering_attachment { + description = "Object with the Transit Gateway peering attachment attributes" + value = aws_ec2_transit_gateway_peering_attachment.this +} diff --git a/modules/peering-attachment/variables.tf b/modules/peering-attachment/variables.tf new file mode 100644 index 0000000..069659d --- /dev/null +++ b/modules/peering-attachment/variables.tf @@ -0,0 +1,26 @@ +variable transit_gateway_id { + description = "ID of the Transit Gateway" + type = string +} + +variable peer_region { + description = "Region of EC2 Transit Gateway to peer with" + type = string +} + +variable peer_transit_gateway_id { + description = "ID of the Transit Gateway to peer with" + type = string +} + +variable peer_account_id { + description = "ID of the AWS account that owns the Transit Gateway peer" + type = string + default = null +} + +variable tags { + description = "Map of tags to apply to the TGW peering attachment" + type = map(string) + default = {} +} diff --git a/modules/route-table/README.md b/modules/route-table/README.md new file mode 100644 index 0000000..4be6643 --- /dev/null +++ b/modules/route-table/README.md @@ -0,0 +1,29 @@ +# terraform-aws-tardigrade-transit-gateway/route-table + +Terraform module for managing a Transit Gateway Route Table. + + +## Requirements + +No requirements. + +## Providers + +| Name | Version | +|------|---------| +| aws | n/a | + +## Inputs + +| Name | Description | Type | Default | Required | +|------|-------------|------|---------|:--------:| +| transit\_gateway\_id | ID of EC2 Transit Gateway | `string` | n/a | yes | +| tags | Map of tags to apply to the TGW route table | `map(string)` | `{}` | no | + +## Outputs + +| Name | Description | +|------|-------------| +| route\_table | Object with the Transit Gateway route table attributes | + + diff --git a/modules/route-table/main.tf b/modules/route-table/main.tf new file mode 100644 index 0000000..ef14ecf --- /dev/null +++ b/modules/route-table/main.tf @@ -0,0 +1,4 @@ +resource aws_ec2_transit_gateway_route_table this { + transit_gateway_id = var.transit_gateway_id + tags = var.tags +} diff --git a/modules/route-table/outputs.tf b/modules/route-table/outputs.tf new file mode 100644 index 0000000..adcb610 --- /dev/null +++ b/modules/route-table/outputs.tf @@ -0,0 +1,4 @@ +output route_table { + description = "Object with the Transit Gateway route table attributes" + value = aws_ec2_transit_gateway_route_table.this +} diff --git a/modules/route-table/variables.tf b/modules/route-table/variables.tf new file mode 100644 index 0000000..15c22a2 --- /dev/null +++ b/modules/route-table/variables.tf @@ -0,0 +1,10 @@ +variable transit_gateway_id { + description = "ID of EC2 Transit Gateway" + type = string +} + +variable tags { + description = "Map of tags to apply to the TGW route table" + type = map(string) + default = {} +} diff --git a/modules/route/README.md b/modules/route/README.md new file mode 100644 index 0000000..0c546b0 --- /dev/null +++ b/modules/route/README.md @@ -0,0 +1,31 @@ +# terraform-aws-tardigrade-transit-gateway/route + +Terraform module for managing a Transit Gateway Route. + + +## Requirements + +No requirements. + +## Providers + +| Name | Version | +|------|---------| +| aws | n/a | + +## Inputs + +| Name | Description | Type | Default | Required | +|------|-------------|------|---------|:--------:| +| destination\_cidr\_block | IPv4 CIDR range used for destination matches | `string` | n/a | yes | +| transit\_gateway\_route\_table\_id | ID of EC2 Transit Gateway Route Table | `string` | n/a | yes | +| blackhole | Boolean indicating whether to drop traffic that matches this route | `bool` | `false` | no | +| transit\_gateway\_attachment\_id | ID of EC2 Transit Gateway Attachment (required if `blackhole` is `false`) | `string` | `null` | no | + +## Outputs + +| Name | Description | +|------|-------------| +| route | Object with the Transit Gateway route attributes | + + diff --git a/modules/route/main.tf b/modules/route/main.tf new file mode 100644 index 0000000..98a6b06 --- /dev/null +++ b/modules/route/main.tf @@ -0,0 +1,6 @@ +resource aws_ec2_transit_gateway_route this { + blackhole = var.blackhole + destination_cidr_block = var.destination_cidr_block + transit_gateway_attachment_id = var.transit_gateway_attachment_id + transit_gateway_route_table_id = var.transit_gateway_route_table_id +} diff --git a/modules/route/outputs.tf b/modules/route/outputs.tf new file mode 100644 index 0000000..2911b8c --- /dev/null +++ b/modules/route/outputs.tf @@ -0,0 +1,4 @@ +output route { + description = "Object with the Transit Gateway route attributes" + value = aws_ec2_transit_gateway_route.this +} diff --git a/modules/route/variables.tf b/modules/route/variables.tf new file mode 100644 index 0000000..86081b6 --- /dev/null +++ b/modules/route/variables.tf @@ -0,0 +1,22 @@ +variable destination_cidr_block { + description = "IPv4 CIDR range used for destination matches" + type = string +} + +variable transit_gateway_route_table_id { + description = "ID of EC2 Transit Gateway Route Table" + type = string +} + +variable blackhole { + description = "Boolean indicating whether to drop traffic that matches this route" + type = bool + default = false +} + + +variable transit_gateway_attachment_id { + description = "ID of EC2 Transit Gateway Attachment (required if `blackhole` is `false`)" + type = string + default = null +} diff --git a/modules/vpc-accepter/README.md b/modules/vpc-accepter/README.md new file mode 100644 index 0000000..9009f37 --- /dev/null +++ b/modules/vpc-accepter/README.md @@ -0,0 +1,39 @@ +# terraform-aws-tardigrade-transit-gateway/vpc-accepter + +Terraform module for managing a Transit Gateway VPC Attachment Accepter. This module is used in a +cross-account VPC attachment workflow. This module will manage the attachment, as well as any Transit +Gateway route table association or propagations, and VPC routes. + + +## Requirements + +No requirements. + +## Providers + +| Name | Version | +|------|---------| +| aws | n/a | + +## Inputs + +| Name | Description | Type | Default | Required | +|------|-------------|------|---------|:--------:| +| transit\_gateway\_attachment\_id | ID of the TGW attachment | `string` | n/a | yes | +| tags | Map of tags to apply to the TGW attachment | `map(string)` | `{}` | no | +| transit\_gateway\_default\_route\_table\_association | Boolean whether the VPC Attachment should be associated to the Transit Gateway default route table | `bool` | `true` | no | +| transit\_gateway\_default\_route\_table\_propagation | Boolean whether the VPC Attachment should propagate routes to the Transit Gateway propagation default route table | `bool` | `true` | no | +| transit\_gateway\_route\_table\_association | ID of the Transit Gateway route table to associate with the VPC attachment (an attachment can be associated with a single TGW route table) |
object({
transit_gateway_route_table_id = string
})
| `null` | no | +| transit\_gateway\_route\_table\_propagations | List of Transit Gateway route tables this VPC attachment will propagate routes to |
list(object({
# `name` is used as for_each key
name = string
transit_gateway_route_table_id = string
}))
| `[]` | no | +| vpc\_routes | List of VPC route objects with a target of the VPC attachment |
list(object({
route_table_id = string
destination_cidr_block = string
destination_ipv6_cidr_block = string
}))
| `[]` | no | + +## Outputs + +| Name | Description | +|------|-------------| +| route\_table\_association | Object with the Transit Gateway route table association attributes | +| route\_table\_propagations | Map of Transit Gateway route table propagation objects | +| vpc\_attachment\_accepter | Object with the Transit Gateway VPC attachment accepter attributes | +| vpc\_routes | Map of VPC route objects | + + diff --git a/modules/vpc-accepter/main.tf b/modules/vpc-accepter/main.tf new file mode 100644 index 0000000..04f9965 --- /dev/null +++ b/modules/vpc-accepter/main.tf @@ -0,0 +1,31 @@ +resource aws_ec2_transit_gateway_vpc_attachment_accepter this { + transit_gateway_attachment_id = var.transit_gateway_attachment_id + + transit_gateway_default_route_table_association = var.transit_gateway_default_route_table_association + transit_gateway_default_route_table_propagation = var.transit_gateway_default_route_table_propagation + + tags = var.tags +} + +resource aws_ec2_transit_gateway_route_table_association this { + count = var.transit_gateway_route_table_association != null ? 1 : 0 + + transit_gateway_attachment_id = aws_ec2_transit_gateway_vpc_attachment_accepter.this.id + transit_gateway_route_table_id = var.transit_gateway_route_table_association.transit_gateway_route_table_id +} + +resource aws_ec2_transit_gateway_route_table_propagation this { + for_each = { for route_table in var.transit_gateway_route_table_propagations : route_table.name => route_table } + + transit_gateway_attachment_id = aws_ec2_transit_gateway_vpc_attachment_accepter.this.id + transit_gateway_route_table_id = each.value.transit_gateway_route_table_id +} + +resource aws_route this { + for_each = { for route in var.vpc_routes : route.name => route } + + route_table_id = each.value.route_table_id + destination_cidr_block = each.value.destination_cidr_block + destination_ipv6_cidr_block = each.value.destination_ipv6_cidr_block + transit_gateway_id = aws_ec2_transit_gateway_vpc_attachment_accepter.this.transit_gateway_id +} diff --git a/modules/vpc-accepter/outputs.tf b/modules/vpc-accepter/outputs.tf new file mode 100644 index 0000000..c3b8cb2 --- /dev/null +++ b/modules/vpc-accepter/outputs.tf @@ -0,0 +1,22 @@ +output vpc_attachment_accepter { + description = "Object with the Transit Gateway VPC attachment accepter attributes" + # accepter tags are null on initial apply rather than "known after apply" + # this can cause a diff on second apply when the entire resource is output + # in the caller config. workaround is to explicitly set tags to var.tags + value = merge(aws_ec2_transit_gateway_vpc_attachment_accepter.this, { tags = var.tags }) +} + +output route_table_association { + description = "Object with the Transit Gateway route table association attributes" + value = var.transit_gateway_route_table_association != null ? aws_ec2_transit_gateway_route_table_association.this[0] : null +} + +output route_table_propagations { + description = "Map of Transit Gateway route table propagation objects" + value = aws_ec2_transit_gateway_route_table_propagation.this +} + +output vpc_routes { + description = "Map of VPC route objects" + value = aws_route.this +} diff --git a/modules/vpc-accepter/variables.tf b/modules/vpc-accepter/variables.tf new file mode 100644 index 0000000..6642b1d --- /dev/null +++ b/modules/vpc-accepter/variables.tf @@ -0,0 +1,50 @@ +variable transit_gateway_attachment_id { + description = "ID of the TGW attachment" + type = string +} + +variable tags { + description = "Map of tags to apply to the TGW attachment" + type = map(string) + default = {} +} + +variable transit_gateway_default_route_table_association { + description = "Boolean whether the VPC Attachment should be associated to the Transit Gateway default route table" + type = bool + default = true +} + +variable transit_gateway_default_route_table_propagation { + description = "Boolean whether the VPC Attachment should propagate routes to the Transit Gateway propagation default route table" + type = bool + default = true +} + +variable transit_gateway_route_table_association { + description = "ID of the Transit Gateway route table to associate with the VPC attachment (an attachment can be associated with a single TGW route table)" + type = object({ + transit_gateway_route_table_id = string + }) + default = null +} + +variable transit_gateway_route_table_propagations { + description = "List of Transit Gateway route tables this VPC attachment will propagate routes to" + type = list(object({ + # `name` is used as for_each key + name = string + transit_gateway_route_table_id = string + })) + default = [] +} + +variable vpc_routes { + description = "List of VPC route objects with a target of the VPC attachment" + type = list(object({ + route_table_id = string + destination_cidr_block = string + destination_ipv6_cidr_block = string + })) + default = [] +} diff --git a/modules/vpc-attachment/README.md b/modules/vpc-attachment/README.md new file mode 100644 index 0000000..79dba3c --- /dev/null +++ b/modules/vpc-attachment/README.md @@ -0,0 +1,42 @@ +# terraform-aws-tardigrade-transit-gateway/vpc-attachment + +Terraform module for managing a Transit Gateway VPC Attachment. This module will manage the attachment, +as well as any Transit Gateway route table association or propagations, and VPC routes. + + +## Requirements + +No requirements. + +## Providers + +| Name | Version | +|------|---------| +| aws | n/a | + +## Inputs + +| Name | Description | Type | Default | Required | +|------|-------------|------|---------|:--------:| +| subnet\_ids | List of subnets to associate with the VPC attachment | `list(string)` | n/a | yes | +| transit\_gateway\_id | ID of the Transit Gateway | `string` | n/a | yes | +| cross\_account | Boolean whether this is a cross-account Transit Gateway shared via Resource Access Manager | `bool` | `false` | no | +| dns\_support | Whether DNS support is enabled. Valid values: disable, enable | `string` | `"enable"` | no | +| ipv6\_support | Whether IPv6 support is enabled. Valid values: disable, enable | `string` | `"disable"` | no | +| tags | Map of tags to apply to the TGW VPC attachment | `map(string)` | `{}` | no | +| transit\_gateway\_default\_route\_table\_association | Boolean whether the VPC Attachment should be associated to the Transit Gateway default route table | `bool` | `true` | no | +| transit\_gateway\_default\_route\_table\_propagation | Boolean whether the VPC Attachment should propagate routes to the Transit Gateway propagation default route table | `bool` | `true` | no | +| transit\_gateway\_route\_table\_association | ID of the Transit Gateway route table to associate with the VPC attachment (an attachment can be associated with a single TGW route table) |
object({
transit_gateway_route_table_id = string
})
| `null` | no | +| transit\_gateway\_route\_table\_propagations | List of Transit Gateway route tables this VPC attachment will propagate routes to |
list(object({
# `name` is used as for_each key
name = string
transit_gateway_route_table_id = string
}))
| `[]` | no | +| vpc\_routes | List of VPC route objects with a target of the VPC attachment |
list(object({
# `name` is used as for_each key
name = string
route_table_id = string
destination_cidr_block = string
destination_ipv6_cidr_block = string
}))
| `[]` | no | + +## Outputs + +| Name | Description | +|------|-------------| +| route\_table\_association | Object with the Transit Gateway route table association attributes | +| route\_table\_propagations | Map of Transit Gateway route table propagation objects | +| vpc\_attachment | Object with the Transit Gateway VPC attachment attributes | +| vpc\_routes | Map of VPC route objects | + + diff --git a/modules/vpc-attachment/main.tf b/modules/vpc-attachment/main.tf new file mode 100644 index 0000000..06d135e --- /dev/null +++ b/modules/vpc-attachment/main.tf @@ -0,0 +1,55 @@ +resource aws_ec2_transit_gateway_vpc_attachment this { + subnet_ids = var.subnet_ids + transit_gateway_id = var.transit_gateway_id + vpc_id = data.aws_subnet.one.vpc_id + dns_support = var.dns_support + ipv6_support = var.ipv6_support + tags = var.tags + + # default assocation and propagation values must be: + # `true` if transit gateway is owned by another account (shared using RAM) + # `false` if the transit gateway has no default route table (== "disable") + transit_gateway_default_route_table_association = ( + var.cross_account) ? true : ( + data.aws_ec2_transit_gateway.this[0].default_route_table_association == "disable") ? false : ( + var.transit_gateway_default_route_table_association + ) + + transit_gateway_default_route_table_propagation = ( + var.cross_account) ? true : ( + data.aws_ec2_transit_gateway.this[0].default_route_table_propagation == "disable") ? false : ( + var.transit_gateway_default_route_table_propagation + ) +} + +resource aws_ec2_transit_gateway_route_table_association this { + count = var.transit_gateway_route_table_association != null ? 1 : 0 + + transit_gateway_attachment_id = aws_ec2_transit_gateway_vpc_attachment.this.id + transit_gateway_route_table_id = var.transit_gateway_route_table_association.transit_gateway_route_table_id +} + +resource aws_ec2_transit_gateway_route_table_propagation this { + for_each = { for route_table in var.transit_gateway_route_table_propagations : route_table.name => route_table } + + transit_gateway_attachment_id = aws_ec2_transit_gateway_vpc_attachment.this.id + transit_gateway_route_table_id = each.value.transit_gateway_route_table_id +} + +resource aws_route this { + for_each = { for route in var.vpc_routes : route.name => route } + + route_table_id = each.value.route_table_id + destination_cidr_block = each.value.destination_cidr_block + destination_ipv6_cidr_block = each.value.destination_ipv6_cidr_block + transit_gateway_id = aws_ec2_transit_gateway_vpc_attachment.this.transit_gateway_id +} + +data aws_subnet one { + id = var.subnet_ids[0] +} + +data aws_ec2_transit_gateway this { + count = var.cross_account ? 0 : 1 + id = var.transit_gateway_id +} diff --git a/modules/vpc-attachment/outputs.tf b/modules/vpc-attachment/outputs.tf new file mode 100644 index 0000000..76b7122 --- /dev/null +++ b/modules/vpc-attachment/outputs.tf @@ -0,0 +1,19 @@ +output vpc_attachment { + description = "Object with the Transit Gateway VPC attachment attributes" + value = aws_ec2_transit_gateway_vpc_attachment.this +} + +output route_table_association { + description = "Object with the Transit Gateway route table association attributes" + value = var.transit_gateway_route_table_association != null ? aws_ec2_transit_gateway_route_table_association.this[0] : null +} + +output route_table_propagations { + description = "Map of Transit Gateway route table propagation objects" + value = aws_ec2_transit_gateway_route_table_propagation.this +} + +output vpc_routes { + description = "Map of VPC route objects" + value = aws_route.this +} diff --git a/modules/vpc-attachment/variables.tf b/modules/vpc-attachment/variables.tf new file mode 100644 index 0000000..5119441 --- /dev/null +++ b/modules/vpc-attachment/variables.tf @@ -0,0 +1,83 @@ +variable subnet_ids { + description = "List of subnets to associate with the VPC attachment" + type = list(string) +} + +variable transit_gateway_id { + description = "ID of the Transit Gateway" + type = string +} + +variable cross_account { + description = "Boolean whether this is a cross-account Transit Gateway shared via Resource Access Manager" + type = bool + default = false +} + +variable dns_support { + description = "Whether DNS support is enabled. Valid values: disable, enable" + type = string + default = "enable" + validation { + condition = contains(["enable", "disable"], var.dns_support) + error_message = "`dns_support` must be one of: \"enable\", \"disable\"." + } +} + +variable ipv6_support { + description = "Whether IPv6 support is enabled. Valid values: disable, enable" + type = string + default = "disable" + validation { + condition = contains(["enable", "disable"], var.ipv6_support) + error_message = "`ipv6_support` must be one of: \"enable\", \"disable\"." + } +} + +variable transit_gateway_default_route_table_association { + description = "Boolean whether the VPC Attachment should be associated to the Transit Gateway default route table" + type = bool + default = true +} + +variable transit_gateway_default_route_table_propagation { + description = "Boolean whether the VPC Attachment should propagate routes to the Transit Gateway propagation default route table" + type = bool + default = true +} + +variable transit_gateway_route_table_association { + description = "ID of the Transit Gateway route table to associate with the VPC attachment (an attachment can be associated with a single TGW route table)" + type = object({ + transit_gateway_route_table_id = string + }) + default = null +} + +variable transit_gateway_route_table_propagations { + description = "List of Transit Gateway route tables this VPC attachment will propagate routes to" + type = list(object({ + # `name` is used as for_each key + name = string + transit_gateway_route_table_id = string + })) + default = [] +} + +variable tags { + description = "Map of tags to apply to the TGW VPC attachment" + type = map(string) + default = {} +} + +variable vpc_routes { + description = "List of VPC route objects with a target of the VPC attachment" + type = list(object({ + # `name` is used as for_each key + name = string + route_table_id = string + destination_cidr_block = string + destination_ipv6_cidr_block = string + })) + default = [] +} diff --git a/outputs.tf b/outputs.tf index 0c72aa6..0621867 100644 --- a/outputs.tf +++ b/outputs.tf @@ -1,4 +1,19 @@ -output "transit_gateway_attachment_id" { - description = "The ID of the Transit Gateway Attachment" - value = length(aws_ec2_transit_gateway_vpc_attachment.this) > 0 ? aws_ec2_transit_gateway_vpc_attachment.this[0].id : null +output transit_gateway { + description = "Object with attributes of the Transit Gateway" + value = aws_ec2_transit_gateway.this +} + +output vpc_attachments { + description = "Map of TGW peering attachment objects" + value = module.vpc_attachments +} + +output route_tables { + description = "Map of TGW route table objects" + value = module.route_tables +} + +output routes { + description = "Map of TGW route objects" + value = module.routes } diff --git a/tests/create_attachment/README.md b/tests/create_attachment/README.md deleted file mode 100644 index 78a5958..0000000 --- a/tests/create_attachment/README.md +++ /dev/null @@ -1,25 +0,0 @@ -# CREATE ATTACHMENT TEST - - - -## Requirements - -| Name | Version | -|------|---------| -| terraform | ~> 0.12.0 | - -## Providers - -| Name | Version | -|------|---------| -| terraform | n/a | - -## Inputs - -No input. - -## Outputs - -No output. - - diff --git a/tests/create_attachment/main.tf b/tests/create_attachment/main.tf deleted file mode 100644 index 7bfe19f..0000000 --- a/tests/create_attachment/main.tf +++ /dev/null @@ -1,62 +0,0 @@ -terraform { - required_version = "~> 0.12.0" -} - -provider aws { - region = "us-east-1" -} - -provider aws { - region = "us-east-1" - alias = "owner" - profile = "owner" -} - -data "terraform_remote_state" "prereq" { - backend = "local" - config = { - path = "prereq/terraform.tfstate" - } -} - -module "vpc" { - source = "git::https://github.com/terraform-aws-modules/terraform-aws-vpc.git?ref=v2.15.0" - - providers = { - aws = aws - } - - name = "tardigrade-tgw-${local.test_id}" - cidr = "10.0.0.0/16" - azs = ["us-east-1a", "us-east-1b"] - private_subnets = ["10.0.1.0/24", "10.0.2.0/24"] -} - -module "create_attachment" { - source = "../../" - - providers = { - aws = aws - aws.owner = aws.owner - } - - create_tgw_attachment = true - name = "tardigrade-tgw-${local.test_id}" - routes = local.routes - subnet_ids = module.vpc.private_subnets - transit_gateway_id = data.terraform_remote_state.prereq.outputs.tgw_id - vpc_id = module.vpc.vpc_id -} - -locals { - test_id = data.terraform_remote_state.prereq.outputs.test_id - remote_ipv4_cidr = "10.1.0.0/16" - - routes = [for rt in concat(module.vpc.public_route_table_ids, module.vpc.private_route_table_ids) : - { - route_table_id = rt - destination_cidr_block = local.remote_ipv4_cidr - destination_ipv6_cidr_block = null - } - ] -} diff --git a/tests/create_attachment/prereq/main.tf b/tests/create_attachment/prereq/main.tf deleted file mode 100644 index 8379904..0000000 --- a/tests/create_attachment/prereq/main.tf +++ /dev/null @@ -1,72 +0,0 @@ -terraform { - required_version = "~> 0.12.0" -} - -provider aws { - region = "us-east-1" -} - -provider aws { - region = "us-east-1" - alias = "owner" - profile = "owner" -} - -data "aws_caller_identity" "this" {} - -data "aws_caller_identity" "owner" { - provider = aws.owner -} - -resource "random_string" "this" { - length = 6 - upper = false - special = false - number = false -} - -resource "aws_ram_resource_share" "this" { - provider = aws.owner - - name = "tardigrade-tgw-${local.test_id}" - allow_external_principals = true - - tags = { - Environment = "testing" - } -} - -resource "aws_ec2_transit_gateway" "this" { - provider = aws.owner - - description = "tardigrade-tgw-${local.test_id}" -} - -resource "aws_ram_resource_association" "this" { - provider = aws.owner - - resource_arn = aws_ec2_transit_gateway.this.arn - resource_share_arn = aws_ram_resource_share.this.arn -} - -resource "aws_ram_principal_association" "this" { - count = local.create_ram_principal_association ? 1 : 0 - provider = aws.owner - - principal = data.aws_caller_identity.this.account_id - resource_share_arn = aws_ram_resource_share.this.arn -} - -locals { - test_id = random_string.this.result - - create_ram_principal_association = data.aws_caller_identity.this.account_id != data.aws_caller_identity.owner.account_id -} - -output "tgw_id" { - value = aws_ec2_transit_gateway.this.id -} - -output "test_id" { - value = local.test_id -} diff --git a/tests/create_attachment_ram_share/main.tf b/tests/create_attachment_ram_share/main.tf deleted file mode 100644 index 5d8c212..0000000 --- a/tests/create_attachment_ram_share/main.tf +++ /dev/null @@ -1,105 +0,0 @@ -terraform { - required_version = "~> 0.12.0" -} - -provider aws { - region = "us-east-1" -} - -provider aws { - region = "us-east-1" - alias = "owner" - profile = "owner" -} - -module "create_attachment" { - source = "../../" - - providers = { - aws = aws - aws.owner = aws.owner - } - - create_tgw_attachment = true - name = "tardigrade-tgw-${local.test_id}" - routes = local.routes - subnet_ids = module.vpc.private_subnets - transit_gateway_id = aws_ec2_transit_gateway.this.id - vpc_id = module.vpc.vpc_id - - dependencies = [ - aws_ram_resource_association.this.id, - ] -} - -module "vpc" { - source = "git::https://github.com/terraform-aws-modules/terraform-aws-vpc.git?ref=v2.15.0" - - providers = { - aws = aws - } - - name = "tardigrade-tgw-${local.test_id}" - cidr = "10.0.0.0/16" - azs = ["us-east-1a", "us-east-1b"] - private_subnets = ["10.0.1.0/24", "10.0.2.0/24"] -} - -resource "aws_ram_resource_share" "this" { - provider = aws.owner - - name = "tardigrade-tgw-${local.test_id}" - allow_external_principals = true - - tags = { - Environment = "testing" - } -} - -resource "aws_ec2_transit_gateway" "this" { - provider = aws.owner - - description = "tardigrade-tgw-${local.test_id}" -} - -resource "aws_ram_resource_association" "this" { - provider = aws.owner - - resource_arn = aws_ec2_transit_gateway.this.arn - resource_share_arn = aws_ram_resource_share.this.arn -} - -resource "aws_ram_principal_association" "this" { - count = local.create_ram_principal_association ? 1 : 0 - provider = aws.owner - - principal = data.aws_caller_identity.this.account_id - resource_share_arn = aws_ram_resource_share.this.arn -} - -resource "random_string" "this" { - length = 6 - upper = false - special = false - number = false -} - -data "aws_caller_identity" "this" {} - -data "aws_caller_identity" "owner" { - provider = aws.owner -} - -locals { - test_id = random_string.this.result - create_ram_principal_association = data.aws_caller_identity.this.account_id != data.aws_caller_identity.owner.account_id - remote_ipv4_cidr = "10.1.0.0/16" - - routes = [for rt in concat(module.vpc.public_route_table_ids, module.vpc.private_route_table_ids) : - { - route_table_id = rt - destination_cidr_block = local.remote_ipv4_cidr - destination_ipv6_cidr_block = null - } - ] -} diff --git a/tests/cross-account-vpc-attachment/main.tf b/tests/cross-account-vpc-attachment/main.tf new file mode 100644 index 0000000..111af30 --- /dev/null +++ b/tests/cross-account-vpc-attachment/main.tf @@ -0,0 +1,157 @@ +provider aws { + region = "us-east-1" + profile = "resource-member" +} + +provider aws { + region = "us-east-1" + alias = "owner" + profile = "resource-owner" +} + +module vpc_attachment { + source = "../../modules/cross-account-vpc-attachment" + + providers = { + aws = aws + aws.owner = aws.owner + } + + ram_share_id = module.ram_share_accepter.share_accepter.share_id + ram_resource_association_id = module.ram_share.resource_associations["tardigrade-tgw"].resource_association.id + + subnet_ids = module.vpc.private_subnets + transit_gateway_id = module.tgw.transit_gateway.id + routes = local.routes + vpc_routes = local.vpc_routes + + transit_gateway_route_table_association = { + transit_gateway_route_table_id = module.tgw.route_tables["foo-${local.id}"].route_table.id + } + + transit_gateway_route_table_propagations = [ + { + # `name` is used as for_each key + name = "foo-${local.id}" + transit_gateway_route_table_id = module.tgw.route_tables["foo-${local.id}"].route_table.id + }, + { + name = "bar-${local.id}" + transit_gateway_route_table_id = module.tgw.route_tables["bar-${local.id}"].route_table.id + }, + ] +} + +module tgw { + source = "../.." + providers = { + aws = aws.owner + } + + description = "tardigrade-tgw-${local.id}" + route_tables = local.route_tables + + default_route_table_association = "disable" + default_route_table_propagation = "disable" + + tags = { + Name = "tardigrade-testing-${local.id}" + } +} + +locals { + id = data.terraform_remote_state.prereq.outputs.test_id.result + + vpc_routes = [for i, rt in concat(module.vpc.public_route_table_ids, module.vpc.private_route_table_ids) : + { + name = "route-${i}" + provider = "aws" + route_table_id = rt + destination_cidr_block = "10.1.0.0/16" + destination_ipv6_cidr_block = null + } + ] + + routes = [for i, rt in [ + { + destination_cidr_block = "10.2.0.0/24" + transit_gateway_route_table_id = module.tgw.route_tables["foo-${local.id}"].route_table.id + }, + { + destination_cidr_block = "10.3.0.0/24" + transit_gateway_route_table_id = module.tgw.route_tables["bar-${local.id}"].route_table.id + }, + ] : merge(rt, { name = "route-${i}-${local.id}" })] + + route_tables = [ + { + name = "foo-${local.id}" + tags = {} + attachment_associations = [] + attachment_propagations = [] + routes = [] + }, + { + name = "bar-${local.id}" + tags = {} + attachment_associations = [] + attachment_propagations = [] + routes = [ + { + name = "route-bar1-${local.id}" + blackhole = true + destination_cidr_block = "10.4.0.0/24" + transit_gateway_attachment_id = null + }, + ] + }, + ] +} + +module ram_share { + source = "git::https://github.com/plus3it/terraform-aws-tardigrade-ram-share.git?ref=3.0.0" + providers = { + aws = aws.owner + } + + name = "tardigrade-tgw-${local.id}" + allow_external_principals = true + + resources = [ + { + name = "tardigrade-tgw" + resource_arn = module.tgw.transit_gateway.arn + }, + ] +} + +module ram_share_accepter { + source = "git::https://github.com/plus3it/terraform-aws-tardigrade-ram-share.git//modules/cross_account_principal_association?ref=3.0.0" + + providers = { + aws = aws + aws.owner = aws.owner + } + + resource_share_arn = module.ram_share.resource_share.arn +} + +module vpc { + source = "git::https://github.com/terraform-aws-modules/terraform-aws-vpc.git?ref=v2.57.0" + + name = "tardigrade-tgw-${local.id}" + cidr = "10.0.0.0/16" + azs = ["us-east-1a", "us-east-1b"] + private_subnets = ["10.0.1.0/24", "10.0.2.0/24"] +} + +data terraform_remote_state prereq { + backend = "local" + config = { + path = "prereq/terraform.tfstate" + } +} + +output vpc_attachment { + value = module.vpc_attachment +} diff --git a/tests/cross-account-vpc-attachment/prereq/main.tf b/tests/cross-account-vpc-attachment/prereq/main.tf new file mode 100644 index 0000000..90da233 --- /dev/null +++ b/tests/cross-account-vpc-attachment/prereq/main.tf @@ -0,0 +1,10 @@ +resource random_string this { + length = 6 + upper = false + special = false + number = false +} + +output test_id { + value = random_string.this +} diff --git a/tests/cross-region-peering-attachment/main.tf b/tests/cross-region-peering-attachment/main.tf new file mode 100644 index 0000000..7a63634 --- /dev/null +++ b/tests/cross-region-peering-attachment/main.tf @@ -0,0 +1,75 @@ +provider aws { + region = "us-east-1" + profile = "resource-member" +} + +provider aws { + region = "us-east-2" + alias = "peer" + profile = "resource-owner" +} + +module peering_attachment { + source = "../../modules/cross-region-peering-attachment" + + providers = { + aws = aws + aws.peer = aws.peer + } + + peer_account_id = data.aws_caller_identity.peer.account_id + peer_region = data.aws_region.peer.name + peer_transit_gateway_id = module.tgw_peer.transit_gateway.id + transit_gateway_id = module.tgw.transit_gateway.id + + tags = { + Name = "tardigrade-testing-${local.id}" + } +} + +module tgw { + source = "../.." + + description = "tardigrade-tgw-${local.id}" + + tags = { + Name = "tardigrade-testing-${local.id}" + } +} + +module tgw_peer { + source = "../.." + providers = { + aws = aws.peer + } + + description = "tardigrade-tgw-${local.id}" + + tags = { + Name = "tardigrade-testing-${local.id}" + } +} + + +locals { + id = data.terraform_remote_state.prereq.outputs.test_id.result +} + +data terraform_remote_state prereq { + backend = "local" + config = { + path = "prereq/terraform.tfstate" + } +} + +data aws_caller_identity peer { + provider = aws.peer +} + +data aws_region peer { + provider = aws.peer +} + +output peering_attachment { + value = module.peering_attachment +} diff --git a/tests/cross-region-peering-attachment/prereq/main.tf b/tests/cross-region-peering-attachment/prereq/main.tf new file mode 100644 index 0000000..90da233 --- /dev/null +++ b/tests/cross-region-peering-attachment/prereq/main.tf @@ -0,0 +1,10 @@ +resource random_string this { + length = 6 + upper = false + special = false + number = false +} + +output test_id { + value = random_string.this +} diff --git a/tests/go.mod b/tests/go.mod deleted file mode 100644 index d81ccbb..0000000 --- a/tests/go.mod +++ /dev/null @@ -1,5 +0,0 @@ -module terraform-aws-tardigrade-transit-gateway-attachment/tests - -go 1.13 - -require github.com/gruntwork-io/terratest v0.30.7 diff --git a/tests/go.sum b/tests/go.sum deleted file mode 100644 index 94b613f..0000000 --- a/tests/go.sum +++ /dev/null @@ -1,663 +0,0 @@ -cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= -cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= -cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU= -cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6AU= -cloud.google.com/go v0.44.2/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= -cloud.google.com/go v0.45.1/go.mod h1:RpBamKRgapWJb87xiFSdk4g1CME7QZg3uwTez+TSTjc= -cloud.google.com/go v0.46.3/go.mod h1:a6bKKbmY7er1mI7TEI4lsAkts/mkhTSZK8w33B4RAg0= -cloud.google.com/go v0.51.0/go.mod h1:hWtGJ6gnXH+KgDv+V0zFGDvpi07n3z8ZNj3T1RW0Gcw= -cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= -cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE= -cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I= -cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw= -dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= -github.com/Azure/azure-sdk-for-go v32.5.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc= -github.com/Azure/azure-sdk-for-go v35.0.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc= -github.com/Azure/azure-sdk-for-go v38.0.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc= -github.com/Azure/azure-sdk-for-go v38.1.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc= -github.com/Azure/azure-sdk-for-go v46.0.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc= -github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78/go.mod h1:LmzpDX56iTiv29bbRTIsUNlaFfuhWRQBWjQdVyAevI8= -github.com/Azure/go-autorest v14.2.0+incompatible/go.mod h1:r+4oMnoxhatjLLJ6zxSWATqVooLgysK6ZNox3g/xq24= -github.com/Azure/go-autorest/autorest v0.9.0/go.mod h1:xyHB1BMZT0cuDHU7I0+g046+BFDTQ8rEZB0s4Yfa6bI= -github.com/Azure/go-autorest/autorest v0.9.1/go.mod h1:xyHB1BMZT0cuDHU7I0+g046+BFDTQ8rEZB0s4Yfa6bI= -github.com/Azure/go-autorest/autorest v0.9.3/go.mod h1:GsRuLYvwzLjjjRoWEIyMUaYq8GNUx2nRB378IPt/1p0= -github.com/Azure/go-autorest/autorest v0.11.0/go.mod h1:JFgpikqFJ/MleTTxwepExTKnFUKKszPS8UavbQYUMuw= -github.com/Azure/go-autorest/autorest v0.11.5/go.mod h1:foo3aIXRQ90zFve3r0QiDsrjGDUwWhKl0ZOQy1CT14k= -github.com/Azure/go-autorest/autorest/adal v0.5.0/go.mod h1:8Z9fGy2MpX0PvDjB1pEgQTmVqjGhiHBW7RJJEciWzS0= -github.com/Azure/go-autorest/autorest/adal v0.6.0/go.mod h1:Z6vX6WXXuyieHAXwMj0S6HY6e6wcHn37qQMBQlvY3lc= -github.com/Azure/go-autorest/autorest/adal v0.8.0/go.mod h1:Z6vX6WXXuyieHAXwMj0S6HY6e6wcHn37qQMBQlvY3lc= -github.com/Azure/go-autorest/autorest/adal v0.8.1/go.mod h1:ZjhuQClTqx435SRJ2iMlOxPYt3d2C/T/7TiQCVZSn3Q= -github.com/Azure/go-autorest/autorest/adal v0.9.0/go.mod h1:/c022QCutn2P7uY+/oQWWNcK9YU+MH96NgK+jErpbcg= -github.com/Azure/go-autorest/autorest/adal v0.9.2/go.mod h1:/3SMAM86bP6wC9Ev35peQDUeqFZBMH07vvUOmg4z/fE= -github.com/Azure/go-autorest/autorest/azure/auth v0.3.0/go.mod h1:CI4BQYBct8NS7BXNBBX+RchsFsUu5+oz+OSyR/ZIi7U= -github.com/Azure/go-autorest/autorest/azure/auth v0.4.2/go.mod h1:90gmfKdlmKgfjUpnCEpOJzsUEjrWDSLwHIG73tSXddM= -github.com/Azure/go-autorest/autorest/azure/auth v0.5.1/go.mod h1:ea90/jvmnAwDrSooLH4sRIehEPtG/EPUXavDh31MnA4= -github.com/Azure/go-autorest/autorest/azure/cli v0.3.0/go.mod h1:rNYMNAefZMRowqCV0cVhr/YDW5dD7afFq9nXAXL4ykE= -github.com/Azure/go-autorest/autorest/azure/cli v0.3.1/go.mod h1:ZG5p860J94/0kI9mNJVoIoLgXcirM2gF5i2kWloofxw= -github.com/Azure/go-autorest/autorest/azure/cli v0.4.0/go.mod h1:JljT387FplPzBA31vUcvsetLKF3pec5bdAxjVU4kI2s= -github.com/Azure/go-autorest/autorest/date v0.1.0/go.mod h1:plvfp3oPSKwf2DNjlBjWF/7vwR+cUD/ELuzDCXwHUVA= -github.com/Azure/go-autorest/autorest/date v0.2.0/go.mod h1:vcORJHLJEh643/Ioh9+vPmf1Ij9AEBM5FuBIXLmIy0g= -github.com/Azure/go-autorest/autorest/date v0.3.0/go.mod h1:BI0uouVdmngYNUzGWeSYnokU+TrmwEsOqdt8Y6sso74= -github.com/Azure/go-autorest/autorest/mocks v0.1.0/go.mod h1:OTyCOPRA2IgIlWxVYxBee2F5Gr4kF2zd2J5cFRaIDN0= -github.com/Azure/go-autorest/autorest/mocks v0.2.0/go.mod h1:OTyCOPRA2IgIlWxVYxBee2F5Gr4kF2zd2J5cFRaIDN0= -github.com/Azure/go-autorest/autorest/mocks v0.3.0/go.mod h1:a8FDP3DYzQ4RYfVAxAN3SVSiiO77gL2j2ronKKP0syM= -github.com/Azure/go-autorest/autorest/mocks v0.4.0/go.mod h1:LTp+uSrOhSkaKrUy935gNZuuIPPVsHlr9DSOxSayd+k= -github.com/Azure/go-autorest/autorest/mocks v0.4.1/go.mod h1:LTp+uSrOhSkaKrUy935gNZuuIPPVsHlr9DSOxSayd+k= -github.com/Azure/go-autorest/autorest/to v0.2.0/go.mod h1:GunWKJp1AEqgMaGLV+iocmRAJWqST1wQYhyyjXJ3SJc= -github.com/Azure/go-autorest/autorest/to v0.3.0/go.mod h1:MgwOyqaIuKdG4TL/2ywSsIWKAfJfgHDo8ObuUk3t5sA= -github.com/Azure/go-autorest/autorest/validation v0.1.0/go.mod h1:Ha3z/SqBeaalWQvokg3NZAlQTalVMtOIAs1aGK7G6u8= -github.com/Azure/go-autorest/autorest/validation v0.2.0/go.mod h1:3EEqHnBxQGHXRYq3HT1WyXAvT7LLY3tl70hw6tQIbjI= -github.com/Azure/go-autorest/autorest/validation v0.3.0/go.mod h1:yhLgjC0Wda5DYXl6JAsWyUe4KVNffhoDhG0zVzUMo3E= -github.com/Azure/go-autorest/logger v0.1.0/go.mod h1:oExouG+K6PryycPJfVSxi/koC6LSNgds39diKLz7Vrc= -github.com/Azure/go-autorest/logger v0.2.0/go.mod h1:T9E3cAhj2VqvPOtCYAvby9aBXkZmbF5NWuPV8+WeEW8= -github.com/Azure/go-autorest/tracing v0.5.0/go.mod h1:r/s2XiOKccPW3HrqB+W0TQzfbtp2fGCgRFtBroKn4Dk= -github.com/Azure/go-autorest/tracing v0.6.0/go.mod h1:+vhtPC754Xsa23ID7GlGsrdKBpUA79WCAKPPZVC2DeU= -github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= -github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= -github.com/GoogleCloudPlatform/k8s-cloud-provider v0.0.0-20190822182118-27a4ced34534/go.mod h1:iroGtC8B3tQiqtds1l+mgk/BBOrxbqjH+eUfFQYRc14= -github.com/Masterminds/semver v1.5.0/go.mod h1:MB6lktGJrhw8PrUyiEoblNEGEQ+RzHPF078ddwwvV3Y= -github.com/Microsoft/go-winio v0.4.14/go.mod h1:qXqCSQ3Xa7+6tgxaGTIe4Kpcdsi+P8jBhyzoq1bpyYA= -github.com/NYTimes/gziphandler v0.0.0-20170623195520-56545f4a5d46/go.mod h1:3wb06e3pkSAbeQ52E9H9iFoQsEEwGN64994WTCIhntQ= -github.com/PuerkitoBio/purell v1.0.0/go.mod h1:c11w/QuzBsJSee3cPx9rAFu61PvFxuPbtSwDGJws/X0= -github.com/PuerkitoBio/purell v1.1.1/go.mod h1:c11w/QuzBsJSee3cPx9rAFu61PvFxuPbtSwDGJws/X0= -github.com/PuerkitoBio/urlesc v0.0.0-20160726150825-5bd2802263f2/go.mod h1:uGdkoq3SwY9Y+13GIhn11/XLaGBb4BfwItxLd5jeuXE= -github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578/go.mod h1:uGdkoq3SwY9Y+13GIhn11/XLaGBb4BfwItxLd5jeuXE= -github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= -github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= -github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8= -github.com/aws/aws-lambda-go v1.13.3/go.mod h1:4UKl9IzQMoD+QF79YdCuzCwp8VbmG4VAQwij/eHl5CU= -github.com/aws/aws-sdk-go v1.16.26/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= -github.com/aws/aws-sdk-go v1.23.8/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= -github.com/aws/aws-sdk-go v1.27.1/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= -github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= -github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8= -github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= -github.com/blang/semver v3.5.0+incompatible/go.mod h1:kRBLl5iJ+tD4TcOOxsy/0fnwebNt5EWlYSAyrTnjyyk= -github.com/boombuler/barcode v1.0.1-0.20190219062509-6c824513bacc/go.mod h1:paBWMcWSl3LHKBqUq+rly7CNSldXjb2rDl3JlRe0mD8= -github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= -github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= -github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= -github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= -github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= -github.com/cockroachdb/datadriven v0.0.0-20190809214429-80d97fb3cbaa/go.mod h1:zn76sxSg3SzpJ0PPJaLDCu+Bu0Lg3sKTORVIj19EIF8= -github.com/containerd/containerd v1.3.0/go.mod h1:bC6axHOhabU15QhwfG7w5PipXdVtMXFTttgp+kVtyUA= -github.com/coreos/etcd v3.3.10+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE= -github.com/coreos/go-etcd v2.0.0+incompatible/go.mod h1:Jez6KQU2B/sWsbdaef3ED8NzMklzPG4d5KIOhIy30Tk= -github.com/coreos/go-oidc v2.1.0+incompatible/go.mod h1:CgnwVTmzoESiwO9qyAFEMiHoZ1nMCKZlZ9V6mm3/LKc= -github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= -github.com/coreos/go-semver v0.3.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= -github.com/coreos/go-systemd v0.0.0-20180511133405-39ca1b05acc7/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= -github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= -github.com/coreos/pkg v0.0.0-20160727233714-3ac0863d7acf/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= -github.com/coreos/pkg v0.0.0-20180108230652-97fdf19511ea/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= -github.com/cpuguy83/go-md2man v1.0.10/go.mod h1:SmD6nW6nTyfqj6ABTjUi3V3JVMnlJmwcJI5acqYI6dE= -github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= -github.com/cpuguy83/go-md2man/v2 v2.0.0/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= -github.com/creack/pty v1.1.7/go.mod h1:lj5s0c3V2DBrqTV7llrYr5NG6My20zk30Fl46Y7DoTY= -github.com/davecgh/go-spew v0.0.0-20151105211317-5215b55f46b2/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= -github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ= -github.com/dimchansky/utfbom v1.1.0/go.mod h1:rO41eb7gLfo8SF1jd9F8HplJm1Fewwi4mQvIirEdv+8= -github.com/dnaeon/go-vcr v1.0.1/go.mod h1:aBB1+wY4s93YsC3HHjMBMrwTj2R9FHDzUr9KyGc8n1E= -github.com/docker/cli v0.0.0-20191017083524-a8ff7f821017/go.mod h1:JLrzqnKDaYBop7H2jaqPtU4hHvMKP+vjCwu2uszcLI8= -github.com/docker/cli v0.0.0-20200109221225-a4f60165b7a3/go.mod h1:JLrzqnKDaYBop7H2jaqPtU4hHvMKP+vjCwu2uszcLI8= -github.com/docker/distribution v2.7.1+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w= -github.com/docker/docker v0.7.3-0.20190327010347-be7ac8be2ae0/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= -github.com/docker/docker v1.4.2-0.20190924003213-a8608b5b67c7/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= -github.com/docker/docker-credential-helpers v0.6.3/go.mod h1:WRaJzqw3CTB9bk10avuGsjVBZsD05qeibJ1/TYlvc0Y= -github.com/docker/go-connections v0.4.0/go.mod h1:Gbd7IOopHjR8Iph03tsViu4nIes5XhDvyHbTtUxmeec= -github.com/docker/go-units v0.4.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= -github.com/docker/spdystream v0.0.0-20160310174837-449fdfce4d96/go.mod h1:Qh8CwZgvJUkLughtfhJv5dyTYa91l1fOUCrgjqmcifM= -github.com/docker/spdystream v0.0.0-20181023171402-6480d4af844c/go.mod h1:Qh8CwZgvJUkLughtfhJv5dyTYa91l1fOUCrgjqmcifM= -github.com/docopt/docopt-go v0.0.0-20180111231733-ee0de3bc6815/go.mod h1:WwZ+bS3ebgob9U8Nd0kOddGdZWjyMGR8Wziv+TBNwSE= -github.com/dustin/go-humanize v0.0.0-20171111073723-bb3d318650d4/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= -github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= -github.com/elazarl/goproxy v0.0.0-20170405201442-c4fc26588b6e/go.mod h1:/Zj4wYkgs4iZTTu3o/KG3Itv/qCCa8VVMlb3i9OVuzc= -github.com/elazarl/goproxy v0.0.0-20180725130230-947c36da3153/go.mod h1:/Zj4wYkgs4iZTTu3o/KG3Itv/qCCa8VVMlb3i9OVuzc= -github.com/elazarl/goproxy v0.0.0-20190911111923-ecfe977594f1/go.mod h1:Ro8st/ElPeALwNFlcTpWmkr6IoMFfkjXAvTHpevnDsM= -github.com/elazarl/goproxy/ext v0.0.0-20190711103511-473e67f1d7d2/go.mod h1:gNh8nYJoAm43RfaxurUnxr+N1PwuFV3ZMl/efxlIlY8= -github.com/emicklei/go-restful v0.0.0-20170410110728-ff4f55a20633/go.mod h1:otzb+WCGbkyDHkqmQmT5YD2WR4BBwUdeQoFo8l/7tVs= -github.com/emicklei/go-restful v2.9.5+incompatible/go.mod h1:otzb+WCGbkyDHkqmQmT5YD2WR4BBwUdeQoFo8l/7tVs= -github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= -github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= -github.com/evanphx/json-patch v4.2.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk= -github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= -github.com/fatih/color v1.9.0/go.mod h1:eQcE1qtQxscV5RaZvpXrrb8Drkc3/DdQ+uUYCNjL+zU= -github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= -github.com/ghodss/yaml v0.0.0-20150909031657-73d445a93680/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= -github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= -github.com/globalsign/mgo v0.0.0-20181015135952-eeefdecb41b8/go.mod h1:xkRDCp4j0OGD1HRkm4kmhM+pmpv3AKq5SU7GMg4oO/Q= -github.com/go-errors/errors v1.0.1/go.mod h1:f4zRHt4oKfwPJE5k8C9vpYG+aDHdBFUsgrm6/TyX73Q= -github.com/go-errors/errors v1.0.2-0.20180813162953-d98b870cc4e0/go.mod h1:f4zRHt4oKfwPJE5k8C9vpYG+aDHdBFUsgrm6/TyX73Q= -github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= -github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= -github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE= -github.com/go-logr/logr v0.1.0/go.mod h1:ixOQHD9gLJUVQQ2ZOR7zLEifBX6tGkNJF4QyIY7sIas= -github.com/go-openapi/jsonpointer v0.0.0-20160704185906-46af16f9f7b1/go.mod h1:+35s3my2LFTysnkMfxsJBAMHj/DoqoB9knIWoYG/Vk0= -github.com/go-openapi/jsonpointer v0.19.2/go.mod h1:3akKfEdA7DF1sugOqz1dVQHBcuDBPKZGEoHC/NkiQRg= -github.com/go-openapi/jsonpointer v0.19.3/go.mod h1:Pl9vOtqEWErmShwVjC8pYs9cog34VGT37dQOVbmoatg= -github.com/go-openapi/jsonreference v0.0.0-20160704190145-13c6e3589ad9/go.mod h1:W3Z9FmVs9qj+KR4zFKmDPGiLdk1D9Rlm7cyMvf57TTg= -github.com/go-openapi/jsonreference v0.19.2/go.mod h1:jMjeRr2HHw6nAVajTXJ4eiUwohSTlpa0o73RUL1owJc= -github.com/go-openapi/jsonreference v0.19.3/go.mod h1:rjx6GuL8TTa9VaixXglHmQmIL98+wF9xc8zWvFonSJ8= -github.com/go-openapi/spec v0.0.0-20160808142527-6aced65f8501/go.mod h1:J8+jY1nAiCcj+friV/PDoE1/3eeccG9LYBs0tYvLOWc= -github.com/go-openapi/spec v0.19.3/go.mod h1:FpwSN1ksY1eteniUU7X0N/BgJ7a4WvBFVA8Lj9mJglo= -github.com/go-openapi/swag v0.0.0-20160704191624-1d0bd113de87/go.mod h1:DXUve3Dpr1UfpPtxFw+EFuQ41HhCWZfha5jSVRG7C7I= -github.com/go-openapi/swag v0.19.2/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk= -github.com/go-openapi/swag v0.19.5/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk= -github.com/go-sql-driver/mysql v1.4.1/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w= -github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= -github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= -github.com/gogo/protobuf v1.2.1/go.mod h1:hp+jE20tsWTFYpLwKvXlhS1hjn+gTNwPg2I6zVXpSg4= -github.com/gogo/protobuf v1.2.2-0.20190723190241-65acae22fc9d/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o= -github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o= -github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= -github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= -github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= -github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= -github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= -github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= -github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y= -github.com/golang/protobuf v0.0.0-20161109072736-4bd1920723d7/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= -github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= -github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= -github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= -github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= -github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-containerregistry v0.0.0-20200110202235-f4fb41bf00a3/go.mod h1:2wIuQute9+hhWqvL3vEI7YB0EKluF4WcPzI1eAliazk= -github.com/google/gofuzz v0.0.0-20161122191042-44d81051d367/go.mod h1:HP5RmnzzSNb993RKQDq4+1A4ia9nllfqcQFTQJedwGI= -github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= -github.com/google/gofuzz v1.1.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= -github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= -github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= -github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= -github.com/google/pprof v0.0.0-20191218002539-d4f498aebedc/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= -github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= -github.com/google/uuid v0.0.0-20161128191214-064e2069ce9c/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/google/uuid v1.0.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= -github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= -github.com/googleapis/gnostic v0.0.0-20170729233727-0c5108395e2d/go.mod h1:sJBsCZ4ayReDTBIg8b9dl28c5xFWyhBTVRp3pOg5EKY= -github.com/googleapis/gnostic v0.1.0/go.mod h1:sJBsCZ4ayReDTBIg8b9dl28c5xFWyhBTVRp3pOg5EKY= -github.com/googleapis/gnostic v0.2.2/go.mod h1:sJBsCZ4ayReDTBIg8b9dl28c5xFWyhBTVRp3pOg5EKY= -github.com/googleapis/gnostic v0.3.1/go.mod h1:on+2t9HRStVgn95RSsFWFz+6Q0Snyqv1awfrALZdbtU= -github.com/gophercloud/gophercloud v0.1.0/go.mod h1:vxM41WHh5uqHVBMZHzuwNOHh8XEoIEcSTewFxm1c5g8= -github.com/gorilla/mux v1.7.3/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs= -github.com/gorilla/websocket v0.0.0-20170926233335-4201258b820c/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= -github.com/gorilla/websocket v1.4.0/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= -github.com/gregjones/httpcache v0.0.0-20180305231024-9cad4c3443a7/go.mod h1:FecbI9+v66THATjSRHfNgh1IVFe/9kFxbXtjV0ctIMA= -github.com/gregjones/httpcache v0.0.0-20190611155906-901d90724c79/go.mod h1:FecbI9+v66THATjSRHfNgh1IVFe/9kFxbXtjV0ctIMA= -github.com/grpc-ecosystem/go-grpc-middleware v1.0.1-0.20190118093823-f849b5445de4/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs= -github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk= -github.com/grpc-ecosystem/grpc-gateway v1.9.5/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY= -github.com/gruntwork-io/gruntwork-cli v0.5.1/go.mod h1:IBX21bESC1/LGoV7jhXKUnTQTZgQ6dYRsoj/VqxUSZQ= -github.com/gruntwork-io/gruntwork-cli v0.7.0/go.mod h1:jp6Z7NcLF2avpY8v71fBx6hds9eOFPELSuD/VPv7w00= -github.com/gruntwork-io/terratest v0.22.2 h1:rIuiDbe5Ur+EYePWtqtzsdXojUfJECXdD92hQRKY5sk= -github.com/gruntwork-io/terratest v0.22.2/go.mod h1:veL2PxiS2Z5S63ERnyiIY/sxgmXJpZD8YZybiqvduwQ= -github.com/gruntwork-io/terratest v0.22.3 h1:MReIa0Fz/BYe31A9SlCO9SIarO2pWNjlcDed6JAZASo= -github.com/gruntwork-io/terratest v0.22.3/go.mod h1:veL2PxiS2Z5S63ERnyiIY/sxgmXJpZD8YZybiqvduwQ= -github.com/gruntwork-io/terratest v0.22.4 h1:6VQOgtmPjoAIhQ33Ac4qDj71ZwkrCenFbPGF9Sl7ik0= -github.com/gruntwork-io/terratest v0.22.4/go.mod h1:+fVff0FQYuRzCF3LKpKF9ac+4w384LDcwLZt7O/KmEE= -github.com/gruntwork-io/terratest v0.23.0 h1:JmGeqO0r5zRLAV55T67NEmPZArz9lN3RKd0moAKhIT4= -github.com/gruntwork-io/terratest v0.23.0/go.mod h1:+fVff0FQYuRzCF3LKpKF9ac+4w384LDcwLZt7O/KmEE= -github.com/gruntwork-io/terratest v0.23.4 h1:3H8/gS4XJvy3AwPyvil3yMMeiBB6FrGP9IvJI6e2uis= -github.com/gruntwork-io/terratest v0.23.4/go.mod h1:ds4v1EDndcBq3zNUPs1uot0YGWDbk++I5KPSOSJ6df4= -github.com/gruntwork-io/terratest v0.23.5 h1:BNTc2uUMT/YuYv+l3TKQcvdbXQNk+tk+Db0PED9cbdw= -github.com/gruntwork-io/terratest v0.23.5/go.mod h1:ds4v1EDndcBq3zNUPs1uot0YGWDbk++I5KPSOSJ6df4= -github.com/gruntwork-io/terratest v0.24.1 h1:aTdBGUkUDHUW6v7zYhMpk8PD8YnCCJT74MqwUIpXv7o= -github.com/gruntwork-io/terratest v0.24.1/go.mod h1:0MCPUGIgQaAXOmw0qRLqyIXs8q6yoNPB3aZt4SkdH0M= -github.com/gruntwork-io/terratest v0.24.2 h1:ZL7s7ZaVPRds+HqtPFh8gXjFVpKRNAAbwyVPYx3lH50= -github.com/gruntwork-io/terratest v0.24.2/go.mod h1:0MCPUGIgQaAXOmw0qRLqyIXs8q6yoNPB3aZt4SkdH0M= -github.com/gruntwork-io/terratest v0.25.0 h1:4Sz8q5DVEqeCC+eAfN+apL/PnqsmurGsn+fGRnZGeKU= -github.com/gruntwork-io/terratest v0.25.0/go.mod h1:0MCPUGIgQaAXOmw0qRLqyIXs8q6yoNPB3aZt4SkdH0M= -github.com/gruntwork-io/terratest v0.25.1 h1:iRjRwya0hkq+pxqkZPDj9k4w/Qi+q7LZInns7e4g32U= -github.com/gruntwork-io/terratest v0.25.1/go.mod h1:0MCPUGIgQaAXOmw0qRLqyIXs8q6yoNPB3aZt4SkdH0M= -github.com/gruntwork-io/terratest v0.25.2 h1:UUdWzWgljehlwz88RD/AjSdn68UiTXrFQ7x+Be9gXAw= -github.com/gruntwork-io/terratest v0.25.2/go.mod h1:0MCPUGIgQaAXOmw0qRLqyIXs8q6yoNPB3aZt4SkdH0M= -github.com/gruntwork-io/terratest v0.26.0 h1:RFDr6nh/zn3rN1bZjZ9kYrEXIKof5T0AMEjgn+tXETw= -github.com/gruntwork-io/terratest v0.26.0/go.mod h1:ONEOU6Fv3a1rN16Z5t5yWbV57DkVC7665yRyvu3aWnk= -github.com/gruntwork-io/terratest v0.26.1 h1:T+R6sxhr4hTkbhOl9EIp/xTJm6070YcM5sCG0tR4xXg= -github.com/gruntwork-io/terratest v0.26.1/go.mod h1:ONEOU6Fv3a1rN16Z5t5yWbV57DkVC7665yRyvu3aWnk= -github.com/gruntwork-io/terratest v0.26.2 h1:Q2909tK8EihfT3144SI/MxFmVLmEwtagnHVFRagiVAg= -github.com/gruntwork-io/terratest v0.26.2/go.mod h1:ONEOU6Fv3a1rN16Z5t5yWbV57DkVC7665yRyvu3aWnk= -github.com/gruntwork-io/terratest v0.26.3 h1:2ECsZ5XwEZ685uIvraMCc/42NGNThidZJNmFrHLzdD0= -github.com/gruntwork-io/terratest v0.26.3/go.mod h1:ONEOU6Fv3a1rN16Z5t5yWbV57DkVC7665yRyvu3aWnk= -github.com/gruntwork-io/terratest v0.26.4 h1:KjQbDAXm8vgGe41iFQVh45kquxF3xIGTPvpZhIK/GO0= -github.com/gruntwork-io/terratest v0.26.4/go.mod h1:ONEOU6Fv3a1rN16Z5t5yWbV57DkVC7665yRyvu3aWnk= -github.com/gruntwork-io/terratest v0.26.5 h1:dZpFKHF/uG6nrNY0lfZSvcF+GV5cfl+7sHsYhfe/oWU= -github.com/gruntwork-io/terratest v0.26.5/go.mod h1:ONEOU6Fv3a1rN16Z5t5yWbV57DkVC7665yRyvu3aWnk= -github.com/gruntwork-io/terratest v0.26.6 h1:blOAXLQFIN0nR3BTlg0LDG1Hmj15Q9wo790RS6bMjV4= -github.com/gruntwork-io/terratest v0.26.6/go.mod h1:ONEOU6Fv3a1rN16Z5t5yWbV57DkVC7665yRyvu3aWnk= -github.com/gruntwork-io/terratest v0.27.0 h1:BRsgWUGQHS6XC4beDe0b5ToeKp40hZCq0+h/awA6fu8= -github.com/gruntwork-io/terratest v0.27.0/go.mod h1:ONEOU6Fv3a1rN16Z5t5yWbV57DkVC7665yRyvu3aWnk= -github.com/gruntwork-io/terratest v0.27.1 h1:cUmpCwK+zmhmSEmjwKiM406uTRBp9UTq0lxNeZmOND8= -github.com/gruntwork-io/terratest v0.27.1/go.mod h1:ONEOU6Fv3a1rN16Z5t5yWbV57DkVC7665yRyvu3aWnk= -github.com/gruntwork-io/terratest v0.27.2 h1:T3TXpOWSHP/3hR4EWHuv/byWkkHuHGjA1ycVrdf3ThQ= -github.com/gruntwork-io/terratest v0.27.2/go.mod h1:ONEOU6Fv3a1rN16Z5t5yWbV57DkVC7665yRyvu3aWnk= -github.com/gruntwork-io/terratest v0.27.3 h1:kDTrA+b+OoqDkwLs0A7THgK8WPXyHfuPiZB2XvR5vVU= -github.com/gruntwork-io/terratest v0.27.3/go.mod h1:ONEOU6Fv3a1rN16Z5t5yWbV57DkVC7665yRyvu3aWnk= -github.com/gruntwork-io/terratest v0.27.4 h1:+Pgf3pHRPgVjNv0/MyLWwySmKUcmL+wT6fewu6F4sBE= -github.com/gruntwork-io/terratest v0.27.4/go.mod h1:ONEOU6Fv3a1rN16Z5t5yWbV57DkVC7665yRyvu3aWnk= -github.com/gruntwork-io/terratest v0.27.5 h1:o+D1Ea65RnQV9e/k57cTpnQprYN+MOXJm9U44TYYWX0= -github.com/gruntwork-io/terratest v0.27.5/go.mod h1:HJRmpi3vO3QGbYFPnNe5eYjDF3j9INnvXceYq3pKOo4= -github.com/gruntwork-io/terratest v0.28.0 h1:7Zfr6cJ0xhIQ1gGZZetRibp+QyC5aGc1wXJHj7NuhHY= -github.com/gruntwork-io/terratest v0.28.0/go.mod h1:HJRmpi3vO3QGbYFPnNe5eYjDF3j9INnvXceYq3pKOo4= -github.com/gruntwork-io/terratest v0.28.1 h1:WVvr/4b+SKdQ0LygU76SZjrT6D+FihWbcvXKS62BTFs= -github.com/gruntwork-io/terratest v0.28.1/go.mod h1:HJRmpi3vO3QGbYFPnNe5eYjDF3j9INnvXceYq3pKOo4= -github.com/gruntwork-io/terratest v0.28.2 h1:M9CMfS/5unIawxYlz55eRDWH16AH522OAJcUc+zsKv4= -github.com/gruntwork-io/terratest v0.28.2/go.mod h1:lTntpr4gGDzb2YEQ1GTjC5G/xw9ixMwxGmZkPCk1O0A= -github.com/gruntwork-io/terratest v0.28.3 h1:7nrfpOp35m7l+6y9l8UrR+qHCnrxizjoX/d6HWFyRsY= -github.com/gruntwork-io/terratest v0.28.3/go.mod h1:lTntpr4gGDzb2YEQ1GTjC5G/xw9ixMwxGmZkPCk1O0A= -github.com/gruntwork-io/terratest v0.28.4 h1:uUIFB/0cRLJqvh3MM2Uk4JLEH749xg9Zo8hQifEout4= -github.com/gruntwork-io/terratest v0.28.4/go.mod h1:lTntpr4gGDzb2YEQ1GTjC5G/xw9ixMwxGmZkPCk1O0A= -github.com/gruntwork-io/terratest v0.28.5 h1:B3Cd45sc18V0Ieaw9JrIl/U27c2mPdwc0pOAF3hGMn4= -github.com/gruntwork-io/terratest v0.28.5/go.mod h1:lTntpr4gGDzb2YEQ1GTjC5G/xw9ixMwxGmZkPCk1O0A= -github.com/gruntwork-io/terratest v0.28.6 h1:SCCEEt8HxQWAfvd5kYIhStoMERt+ihg/hyU+jIyIGqk= -github.com/gruntwork-io/terratest v0.28.6/go.mod h1:lTntpr4gGDzb2YEQ1GTjC5G/xw9ixMwxGmZkPCk1O0A= -github.com/gruntwork-io/terratest v0.28.7 h1:ByAgxm2beencqQYiV4LDtrz+a9XS7BYZioGtl2GeaQY= -github.com/gruntwork-io/terratest v0.28.7/go.mod h1:PkVylPuUNmItkfOTwSiFreYA4FkanK8AluBuNeGxQOw= -github.com/gruntwork-io/terratest v0.28.8 h1:ARuUf7wG4b6kA6zUzRglg9utsLXdQVuk8Ye+k9g0Kbg= -github.com/gruntwork-io/terratest v0.28.8/go.mod h1:PkVylPuUNmItkfOTwSiFreYA4FkanK8AluBuNeGxQOw= -github.com/gruntwork-io/terratest v0.28.10 h1:4K3idJK5atavZ7iwY+L+RPCA7lFwPu87dVnoFOaoPzI= -github.com/gruntwork-io/terratest v0.28.10/go.mod h1:PkVylPuUNmItkfOTwSiFreYA4FkanK8AluBuNeGxQOw= -github.com/gruntwork-io/terratest v0.28.11 h1:PBNHA+0NSiovDQbSsvQAp1vUWvyldzioaTWj5zvOKDU= -github.com/gruntwork-io/terratest v0.28.11/go.mod h1:PkVylPuUNmItkfOTwSiFreYA4FkanK8AluBuNeGxQOw= -github.com/gruntwork-io/terratest v0.28.12 h1:XPLiZMV0XkRGNj1JRVvvZ2wj99tiQ4CWYfDtPI9cBlI= -github.com/gruntwork-io/terratest v0.28.12/go.mod h1:PkVylPuUNmItkfOTwSiFreYA4FkanK8AluBuNeGxQOw= -github.com/gruntwork-io/terratest v0.28.13 h1:wzydkaIekNMuIpeU/ksgxuUFwc0wgEL5Y5hVkPAzni4= -github.com/gruntwork-io/terratest v0.28.13/go.mod h1:PkVylPuUNmItkfOTwSiFreYA4FkanK8AluBuNeGxQOw= -github.com/gruntwork-io/terratest v0.28.14 h1:X8AND6VxMdy7vmLiSVwKjuFm83KmWE5s6wssjBQPNuQ= -github.com/gruntwork-io/terratest v0.28.14/go.mod h1:PkVylPuUNmItkfOTwSiFreYA4FkanK8AluBuNeGxQOw= -github.com/gruntwork-io/terratest v0.28.15 h1:in1DRBq8/RjxMyb6Amr1SRrczOK/hGnPi+gQXOOtbZI= -github.com/gruntwork-io/terratest v0.28.15/go.mod h1:PkVylPuUNmItkfOTwSiFreYA4FkanK8AluBuNeGxQOw= -github.com/gruntwork-io/terratest v0.29.0 h1:EyPLLxglZIHJ0jU1cbx2NJT7A3MVEmPle8ENWDDwVAA= -github.com/gruntwork-io/terratest v0.29.0/go.mod h1:aVz7181EP4okz7LMx6BLpiF7bL8wkq+h57V6uicvoc0= -github.com/gruntwork-io/terratest v0.30.0 h1:1USVQG4Rg7Fp5WLuTjgU6kt+o7GM0ZcllYcsKXGv7nI= -github.com/gruntwork-io/terratest v0.30.0/go.mod h1:7dNmTD2zDKUEVqfmvcUU5c9mZi+986mcXNzhzqPYPg8= -github.com/gruntwork-io/terratest v0.30.3 h1:fhtpTsWp8MJbluCqliCRpeAjAkAWD0+n4KuhEROx3Ac= -github.com/gruntwork-io/terratest v0.30.3/go.mod h1:7dNmTD2zDKUEVqfmvcUU5c9mZi+986mcXNzhzqPYPg8= -github.com/gruntwork-io/terratest v0.30.4 h1:lSCNPWIve5bpUonwkmQXcnXP1+vny7Haxv3/QRZ3rGM= -github.com/gruntwork-io/terratest v0.30.4/go.mod h1:7dNmTD2zDKUEVqfmvcUU5c9mZi+986mcXNzhzqPYPg8= -github.com/gruntwork-io/terratest v0.30.5 h1:IQHAge+A3Sp9XGgQo7mikqFDhJK/Cc2ciej4AF93iUU= -github.com/gruntwork-io/terratest v0.30.5/go.mod h1:7dNmTD2zDKUEVqfmvcUU5c9mZi+986mcXNzhzqPYPg8= -github.com/gruntwork-io/terratest v0.30.6 h1:CApJ/auCKe5it8M739nTHpfK6fEH3VleMqzInadu/Bk= -github.com/gruntwork-io/terratest v0.30.6/go.mod h1:7dNmTD2zDKUEVqfmvcUU5c9mZi+986mcXNzhzqPYPg8= -github.com/gruntwork-io/terratest v0.30.7 h1:RmvfWTngHv9Mat2AF4++Znte8Znkz585/IzDvUgz84o= -github.com/gruntwork-io/terratest v0.30.7/go.mod h1:7dNmTD2zDKUEVqfmvcUU5c9mZi+986mcXNzhzqPYPg8= -github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= -github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= -github.com/hashicorp/golang-lru v0.5.3/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4= -github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= -github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= -github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= -github.com/imdario/mergo v0.3.5/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJh5FfA= -github.com/imdario/mergo v0.3.7/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJh5FfA= -github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= -github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k= -github.com/joefitzgerald/rainbow-reporter v0.1.0/go.mod h1:481CNgqmVHQZzdIbN52CupLJyoVwB10FQ/IQlF1pdL8= -github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo= -github.com/json-iterator/go v0.0.0-20180612202835-f2b4162afba3/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= -github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= -github.com/json-iterator/go v1.1.7/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= -github.com/json-iterator/go v1.1.8/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= -github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= -github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= -github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= -github.com/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvWXihfKN4Q= -github.com/kisielk/errcheck v1.2.0/go.mod h1:/BMXB+zMLi60iA8Vv6Ksmxu/1UDYcXs4uQLJ+jE2L00= -github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= -github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= -github.com/konsorten/go-windows-terminal-sequences v1.0.2/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= -github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= -github.com/kr/pretty v0.1.0 h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI= -github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= -github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= -github.com/kr/pty v1.1.5/go.mod h1:9r2w37qlBe7rQ6e1fg1S/9xpWHSnaqNdHD3WcMdbPDA= -github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE= -github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= -github.com/magiconair/properties v1.8.0/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= -github.com/magiconair/properties v1.8.1 h1:ZC2Vc7/ZFkGmsVC9KvOjumD+G5lXy2RtTKyzRKO2BQ4= -github.com/magiconair/properties v1.8.1/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= -github.com/mailru/easyjson v0.0.0-20160728113105-d5b7844b561a/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= -github.com/mailru/easyjson v0.0.0-20190614124828-94de47d64c63/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= -github.com/mailru/easyjson v0.0.0-20190626092158-b2ccc519800e/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= -github.com/mailru/easyjson v0.7.0/go.mod h1:KAzv3t3aY1NaHWoQz1+4F1ccyAH66Jk7yos7ldAVICs= -github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= -github.com/mattn/go-colorable v0.1.4/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= -github.com/mattn/go-isatty v0.0.4/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= -github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= -github.com/mattn/go-isatty v0.0.11/go.mod h1:PhnuNfih5lzO57/f3n+odYbM4JtupLOxQOAqxQCu2WE= -github.com/mattn/go-runewidth v0.0.2/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= -github.com/mattn/go-zglob v0.0.1/go.mod h1:9fxibJccNxU2cnpIKLRRFA7zX7qhkJIQWBb449FYHOo= -github.com/mattn/go-zglob v0.0.2-0.20190814121620-e3c945676326/go.mod h1:9fxibJccNxU2cnpIKLRRFA7zX7qhkJIQWBb449FYHOo= -github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= -github.com/maxbrunsfeld/counterfeiter/v6 v6.2.2/go.mod h1:eD9eIE7cdwcMi9rYluz88Jz2VyhSmden33/aXg4oVIY= -github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= -github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= -github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= -github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= -github.com/modern-go/reflect2 v0.0.0-20180320133207-05fbef0ca5da/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= -github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= -github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= -github.com/morikuni/aec v1.0.0/go.mod h1:BbKIizmSmc5MMPqRYbxO4ZU0S0+P200+tUnFx7PXmsc= -github.com/munnerz/goautoneg v0.0.0-20120707110453-a547fc61f48d/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ= -github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ= -github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= -github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f/go.mod h1:ZdcZmHo+o7JKHSa8/e818NopupXU1YMK5fe1lsApnBw= -github.com/olekukonko/tablewriter v0.0.0-20170122224234-a0225b3f23b5/go.mod h1:vsDQFd/mU46D+Z4whnwzcISnGGzXWMclvtLoiIKAKIo= -github.com/onsi/ginkgo v0.0.0-20170829012221-11459a886d9c/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= -github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= -github.com/onsi/ginkgo v1.8.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= -github.com/onsi/ginkgo v1.10.1/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= -github.com/onsi/ginkgo v1.11.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= -github.com/onsi/gomega v0.0.0-20170829124025-dcabb60a477c/go.mod h1:C1qb7wdrVGGVU+Z6iS04AVkA3Q65CEZX59MT0QO5uiA= -github.com/onsi/gomega v1.5.0/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= -github.com/onsi/gomega v1.7.0/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= -github.com/opencontainers/go-digest v1.0.0-rc1/go.mod h1:cMLVZDEM3+U2I4VmLI6N8jQYUd2OVphdqWwCJHrFt2s= -github.com/opencontainers/image-spec v1.0.1/go.mod h1:BtxoFyWECRxE4U/7sNtV5W15zMzWCbyJoFRP3s7yZA0= -github.com/oracle/oci-go-sdk v7.1.0+incompatible/go.mod h1:VQb79nF8Z2cwLkLS35ukwStZIg5F66tcBccjip/j888= -github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= -github.com/peterbourgon/diskv v2.0.1+incompatible/go.mod h1:uqqh8zWWbv1HBMNONnaR/tNboyR3/BZd58JJSHlUSCU= -github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= -github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= -github.com/pkg/errors v0.9.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= -github.com/pmezard/go-difflib v0.0.0-20151028094244-d8ed2627bdf0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= -github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/pquerna/cachecontrol v0.0.0-20171018203845-0dec1b30a021/go.mod h1:prYjPmNq4d1NPVmpShWobRqXY3q7Vp+80DqgxxUrUIA= -github.com/pquerna/otp v1.2.0/go.mod h1:dkJfzwRKNiegxyNb54X/3fLwhCynbMspSyWKnvi1AEg= -github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= -github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo= -github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= -github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= -github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= -github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= -github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= -github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= -github.com/remyoudompheng/bigfft v0.0.0-20170806203942-52369c62f446/go.mod h1:uYEyJGbgTkfkS4+E/PavXkNJcbFIpEtjt2B0KDQ5+9M= -github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg= -github.com/rogpeppe/go-charset v0.0.0-20180617210344-2471d30d28b4/go.mod h1:qgYeAmZ5ZIpBWTGllZSQnw97Dj+woV0toclVaRGI8pc= -github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= -github.com/rubiojr/go-vhd v0.0.0-20160810183302-0bfd3b39853c/go.mod h1:DM5xW0nvfNNm2uytzsvhI3OnX8uzaRAg8UX/CnDqbto= -github.com/russross/blackfriday v1.5.2/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR/rfWxYHBV53g= -github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= -github.com/satori/go.uuid v1.2.0/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdhQKdks0= -github.com/sclevine/spec v1.2.0/go.mod h1:W4J29eT/Kzv7/b9IWLB055Z+qvVC9vt0Arko24q7p+U= -github.com/shopspring/decimal v0.0.0-20200105231215-408a2507e114/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o= -github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc= -github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= -github.com/sirupsen/logrus v1.4.1/go.mod h1:ni0Sbl8bgC9z8RoU9G6nDWqqs/fq4eDPysMBDgk/93Q= -github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE= -github.com/soheilhy/cmux v0.1.4/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4kGIyLM= -github.com/spf13/afero v1.1.2/go.mod h1:j4pytiNVoe2o6bmDsKpLACNPDBIoEAkihy7loJ1B0CQ= -github.com/spf13/afero v1.2.2/go.mod h1:9ZxEEn6pIJ8Rxe320qSDBk6AsU0r9pR7Q4OcevTdifk= -github.com/spf13/cast v1.3.0/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= -github.com/spf13/cobra v0.0.3/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ= -github.com/spf13/cobra v0.0.5/go.mod h1:3K3wKZymM7VvHMDS9+Akkh4K60UwM26emMESw8tLCHU= -github.com/spf13/jwalterweatherman v1.0.0/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo= -github.com/spf13/pflag v0.0.0-20170130214245-9ff6c6923cff/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= -github.com/spf13/pflag v1.0.1/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= -github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= -github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= -github.com/spf13/viper v1.3.2/go.mod h1:ZiWeW+zYFKm7srdB9IoDzzZXaJaI5eL9QjNiN/DMA2s= -github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/objx v0.2.0/go.mod h1:qt09Ya8vawLte6SNmTgCsAVtYtaKzEcn8ATUoHMkEqE= -github.com/stretchr/testify v0.0.0-20151208002404-e3a8ff8ce365/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= -github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= -github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= -github.com/stretchr/testify v1.4.0 h1:2E4SXV/wtOkTonXsotYi4li6zVWxYlZuYNCXe9XRJyk= -github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= -github.com/tmc/grpc-websocket-proxy v0.0.0-20170815181823-89b8d40f7ca8/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= -github.com/ugorji/go/codec v0.0.0-20181204163529-d75b2dcb6bc8/go.mod h1:VFNgLljTbGfSG7qAOspJ7OScBnGdDN/yBr0sguwnwf0= -github.com/urfave/cli v1.20.0/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijbERA= -github.com/urfave/cli v1.21.0/go.mod h1:lxDj6qX9Q6lWQxIrbrT0nwecwUtRnhVZAJjJZrVUZZQ= -github.com/urfave/cli v1.22.1/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0= -github.com/urfave/cli v1.22.2/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0= -github.com/vdemeester/k8s-pkg-credentialprovider v0.0.0-20200107171650-7c61ffa44238/go.mod h1:JwQJCMWpUDqjZrB5jpw0f5VbN7U95zxFy1ZDpoEarGo= -github.com/vmware/govmomi v0.20.3/go.mod h1:URlwyTFZX72RmxtxuaFL2Uj3fD1JTvZdx59bHWk6aFU= -github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU= -github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77/go.mod h1:aYKd//L2LvnjZzWKhF00oedf4jCCReLcmhLdhm1A27Q= -go.etcd.io/bbolt v1.3.3/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU= -go.etcd.io/etcd v0.0.0-20191023171146-3cf2f69b5738/go.mod h1:dnLIgRNXwCJa5e+c6mIZCrds/GIG4ncV9HhK5PX7jPg= -go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= -go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= -go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= -go.uber.org/atomic v1.3.2/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= -go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0= -go.uber.org/zap v1.10.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q= -golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= -golang.org/x/crypto v0.0.0-20181203042331-505ab145d0a9/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= -golang.org/x/crypto v0.0.0-20190211182817-74369b46fc67/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= -golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/crypto v0.0.0-20190418165655-df01cb2cc480/go.mod h1:WFFai1msRO1wXaEeE5yQxYXgSfI8pQAWXbQop6sCtWE= -golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20190611184440-5c40567a22f8/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20190820162420-60c769a6c586 h1:7KByu05hhLed2MO29w7p1XfZvZ13m8mub3shuVftRs0= -golang.org/x/crypto v0.0.0-20190820162420-60c769a6c586/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20191206172530-e9b2fee46413/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20200109152110-61a87790db17/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20200220183623-bac4c82f6975/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= -golang.org/x/exp v0.0.0-20190125153040-c74c464bbbf2/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= -golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= -golang.org/x/exp v0.0.0-20190312203227-4b39c73a6495/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= -golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= -golang.org/x/exp v0.0.0-20190829153037-c13cbed26979/go.mod h1:86+5VVa7VpoJ4kLfm080zCjGlMRFzhUhsZKEZO7MGek= -golang.org/x/exp v0.0.0-20191227195350-da58074b4299/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= -golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= -golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= -golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= -golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= -golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= -golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/lint v0.0.0-20190409202823-959b441ac422/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRuDixDT3tpyyb+LUpUlRWLxfhWrs= -golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE= -golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o= -golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc= -golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY= -golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= -golang.org/x/net v0.0.0-20170114055629-f2499483f923/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20181220203305-927f97764cc3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= -golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20190813141303-74dc4d7220e7 h1:fHDIZ2oxGnUZRN6WgWFCbYBjH9uqVPRCUVUDhs0wnbA= -golang.org/x/net v0.0.0-20190813141303-74dc4d7220e7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20190827160401-ba9fcec4b297/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20191004110552-13f9640d40b9/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= -golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sys v0.0.0-20170830134202-bb24a47a89ea/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20181107165924-66b7b1311ac8/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20181205085412-a5c9d58dba9a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190209173611-3b5209105503/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190403152447-81d4e9dc473e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190616124812-15dcb6c0061f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190626221950-04f50cda93cb/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a h1:aYOabOQFp6Vj6W1F80affTUvO9UxmJRx8K0gsfABByQ= -golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190826190057-c7b8b68b1456/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191010194322-b09406accb47/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191022100944-742c48ecaeb7/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191110163157-d32e6e3b99c4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200107162124-548cf772de50/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/text v0.0.0-20160726164857-2910a502d2bf/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= -golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20181011042414-1f849cf54d09/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20181030221726-6c7e314b6563/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20190206041539-40960b6deb8e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= -golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= -golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= -golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= -golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= -golang.org/x/tools v0.0.0-20190614205625-5aca471b1d59/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= -golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= -golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= -golang.org/x/tools v0.0.0-20190706070813-72ffa07ba3db/go.mod h1:jcCCGcm9btYwXyDqrUWc6MKQKKGJCWEQ3AfLSRIbEuI= -golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20190920225731-5eefd052ad72/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191125144606-a911d9008d1f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191205215504-7b8c8591a921/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200113040837-eac381796e91/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -gonum.org/v1/gonum v0.0.0-20190331200053-3d26580ed485/go.mod h1:2ltnJ7xHfj0zHS40VVPYEAAMTa3ZGguvHGBSJeRWqE0= -gonum.org/v1/netlib v0.0.0-20190313105609-8cb42192e0e0/go.mod h1:wa6Ws7BG/ESfp6dHfk7C6KdzKA7wR7u/rKwOGE66zvw= -gonum.org/v1/netlib v0.0.0-20190331212654-76723241ea4e/go.mod h1:kS+toOQn6AQKjmKJ7gzohV1XkqsFehRA2FbsbkopSuQ= -google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= -google.golang.org/api v0.6.1-0.20190607001116-5213b8090861/go.mod h1:btoxGiFvQNVUZQ8W08zLtrVS08CNpINPEfxXxgJL1Q4= -google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M= -google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= -google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= -google.golang.org/api v0.9.1-0.20190821000710-329ecc3c9c34/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= -google.golang.org/api v0.15.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= -google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= -google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= -google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= -google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0= -google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= -google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= -google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= -google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= -google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= -google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= -google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= -google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= -google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8= -google.golang.org/genproto v0.0.0-20191230161307-f3c370f40bfb/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20200108215221-bd8f9a0ef82f/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= -google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= -google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= -google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= -google.golang.org/grpc v1.23.1/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= -google.golang.org/grpc v1.24.0/go.mod h1:XDChyiUovWa60DnaeDeZmSW86xtLtjtZbwvSiRnRtcA= -google.golang.org/grpc v1.26.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= -gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= -gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33q108Sa+fhmuc+sWQYwY= -gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/cheggaaa/pb.v1 v1.0.25/go.mod h1:V/YB90LKu/1FcN3WVnfiiE5oMCibMjukxqG/qStrOgw= -gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= -gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys= -gopkg.in/gcfg.v1 v1.2.0/go.mod h1:yesOnuUOFQAhST5vPY4nbZsb/huCgGGXlipJsBn0b3o= -gopkg.in/inf.v0 v0.9.1/go.mod h1:cWUDdTG/fYaXco+Dcufb5Vnc6Gp2YChqWtbxRZE0mXw= -gopkg.in/natefinch/lumberjack.v2 v2.0.0/go.mod h1:l0ndWWf7gzL7RNwBG7wST/UCcT4T24xpD6X8LsfU/+k= -gopkg.in/resty.v1 v1.12.0/go.mod h1:mDo4pnntr5jdWRML875a/NmxYqAlA73dVijT2AXvQQo= -gopkg.in/square/go-jose.v2 v2.2.2/go.mod h1:M9dMgbHiYLoDGQrXy7OpJDJWiKiU//h+vD76mk0e1AI= -gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= -gopkg.in/warnings.v0 v0.1.1/go.mod h1:jksf8JmL6Qr/oQM2OXTHunEvvTAsrWBLb6OOjuVWRNI= -gopkg.in/yaml.v2 v2.0.0-20170812160011-eb3733d160e7/go.mod h1:JAlM8MvJe8wmxCU4Bli9HhUf9+ttbYbLASfIpnQbh74= -gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw= -gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gotest.tools v2.2.0+incompatible/go.mod h1:DsYFclhRJ6vuDpmuTbkuFWG+y2sxOXAzmJt81HFBacw= -honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg= -k8s.io/api v0.0.0-20181110191121-a33c8200050f/go.mod h1:iuAfoD4hCxJ8Onx9kaTIt30j7jUFS00AXQi6QMi99vA= -k8s.io/api v0.17.0/go.mod h1:npsyOePkeP0CPwyGfXDHxvypiYMJxBWAMpQxCaJ4ZxI= -k8s.io/api v0.18.3/go.mod h1:UOaMwERbqJMfeeeHc8XJKawj4P9TgDRnViIqqBeH2QA= -k8s.io/apimachinery v0.0.0-20190704094520-6f131bee5e2c/go.mod h1:ccL7Eh7zubPUSh9A3USN90/OzHNSVN6zxzde07TDCL0= -k8s.io/apimachinery v0.17.0/go.mod h1:b9qmWdKlLuU9EBh+06BtLcSf/Mu89rWL33naRxs1uZg= -k8s.io/apimachinery v0.18.3/go.mod h1:OaXp26zu/5J7p0f92ASynJa1pZo06YlV9fG7BoWbCko= -k8s.io/apiserver v0.17.0/go.mod h1:ABM+9x/prjINN6iiffRVNCBR2Wk7uY4z+EtEGZD48cg= -k8s.io/client-go v0.0.0-20190704095228-386e588352a4/go.mod h1:7vJpHMYJwNQCWgzmNV+VYUl1zCObLyodBc8nIyt8L5s= -k8s.io/client-go v0.17.0/go.mod h1:TYgR6EUHs6k45hb6KWjVD6jFZvJV4gHDikv/It0xz+k= -k8s.io/client-go v0.18.3/go.mod h1:4a/dpQEvzAhT1BbuWW09qvIaGw6Gbu1gZYiQZIi1DMw= -k8s.io/cloud-provider v0.17.0/go.mod h1:Ze4c3w2C0bRsjkBUoHpFi+qWe3ob1wI2/7cUn+YQIDE= -k8s.io/code-generator v0.0.0-20191121015212-c4c8f8345c7e/go.mod h1:DVmfPQgxQENqDIzVR2ddLXMH34qeszkKSdH/N+s+38s= -k8s.io/component-base v0.17.0/go.mod h1:rKuRAokNMY2nn2A6LP/MiwpoaMRHpfRnrPaUJJj1Yoc= -k8s.io/csi-translation-lib v0.17.0/go.mod h1:HEF7MEz7pOLJCnxabi45IPkhSsE/KmxPQksuCrHKWls= -k8s.io/gengo v0.0.0-20190128074634-0689ccc1d7d6/go.mod h1:ezvh/TsK7cY6rbqRK0oQQ8IAqLxYwwyPxAX1Pzy0ii0= -k8s.io/gengo v0.0.0-20190822140433-26a664648505/go.mod h1:ezvh/TsK7cY6rbqRK0oQQ8IAqLxYwwyPxAX1Pzy0ii0= -k8s.io/klog v0.0.0-20181102134211-b9b56d5dfc92/go.mod h1:Gq+BEi5rUBO/HRz0bTSXDUcqjScdoY3a9IHpCEIOOfk= -k8s.io/klog v0.3.0/go.mod h1:Gq+BEi5rUBO/HRz0bTSXDUcqjScdoY3a9IHpCEIOOfk= -k8s.io/klog v1.0.0/go.mod h1:4Bi6QPql/J/LkTDqv7R/cd3hPo4k2DG6Ptcz060Ez5I= -k8s.io/kube-openapi v0.0.0-20191107075043-30be4d16710a/go.mod h1:1TqjTSzOxsLGIKfj0lK8EeCP7K1iUG65v09OM0/WG5E= -k8s.io/kube-openapi v0.0.0-20200410145947-61e04a5be9a6/go.mod h1:GRQhZsXIAJ1xR0C9bd8UpWHZ5plfAS9fzPjJuQ6JL3E= -k8s.io/kubernetes v1.11.10/go.mod h1:ocZa8+6APFNC2tX1DZASIbocyYT5jHzqFVsY5aoB7Jk= -k8s.io/legacy-cloud-providers v0.17.0/go.mod h1:DdzaepJ3RtRy+e5YhNtrCYwlgyK87j/5+Yfp0L9Syp8= -k8s.io/utils v0.0.0-20191114184206-e782cd3c129f/go.mod h1:sZAwmy6armz5eXlNoLmJcl4F1QuKu7sr+mFQ0byX7Ew= -k8s.io/utils v0.0.0-20200324210504-a9aa75ae1b89/go.mod h1:sZAwmy6armz5eXlNoLmJcl4F1QuKu7sr+mFQ0byX7Ew= -modernc.org/cc v1.0.0/go.mod h1:1Sk4//wdnYJiUIxnW8ddKpaOJCF37yAdqYnkxUpaYxw= -modernc.org/golex v1.0.0/go.mod h1:b/QX9oBD/LhixY6NDh+IdGv17hgB+51fET1i2kPSmvk= -modernc.org/mathutil v1.0.0/go.mod h1:wU0vUrJsVWBZ4P6e7xtFJEhFSNsfRLJ8H458uRjg03k= -modernc.org/strutil v1.0.0/go.mod h1:lstksw84oURvj9y3tn8lGvRxyRC1S2+g5uuIzNfIOBs= -modernc.org/xc v1.0.0/go.mod h1:mRNCo0bvLjGhHO9WsyuKVU4q0ceiDDDoEeWDJHrNx8I= -rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= -sigs.k8s.io/structured-merge-diff v0.0.0-20190525122527-15d366b2352e/go.mod h1:wWxsB5ozmmv/SG7nM11ayaAW51xMvak/t1r0CSlcokI= -sigs.k8s.io/structured-merge-diff v1.0.1-0.20191108220359-b1b620dd3f06/go.mod h1:/ULNhyfzRopfcjskuui0cTITekDduZ7ycKN3oUT9R18= -sigs.k8s.io/structured-merge-diff/v3 v3.0.0-20200116222232-67a7b8c61874/go.mod h1:PlARxl6Hbt/+BC80dRLi1qAmnMqwqDg62YvvVkZjemw= -sigs.k8s.io/structured-merge-diff/v3 v3.0.0/go.mod h1:PlARxl6Hbt/+BC80dRLi1qAmnMqwqDg62YvvVkZjemw= -sigs.k8s.io/yaml v1.1.0/go.mod h1:UJmg0vDUVViEyp3mgSv9WPwZCDxu4rQW1olrI1uml+o= -sigs.k8s.io/yaml v1.2.0/go.mod h1:yfXDCHCao9+ENCvLSE62v9VSji2MKu5jeNfTrofGhJc= diff --git a/tests/no_attachment/README.md b/tests/no_attachment/README.md deleted file mode 100644 index a32a0b9..0000000 --- a/tests/no_attachment/README.md +++ /dev/null @@ -1,23 +0,0 @@ -# NO ATTACHMENT TEST - - - -## Requirements - -| Name | Version | -|------|---------| -| terraform | ~> 0.12.0 | - -## Providers - -No provider. - -## Inputs - -No input. - -## Outputs - -No output. - - diff --git a/tests/no_attachment/main.tf b/tests/no_attachment/main.tf deleted file mode 100644 index 4dcb912..0000000 --- a/tests/no_attachment/main.tf +++ /dev/null @@ -1,24 +0,0 @@ -terraform { - required_version = "~> 0.12.0" -} - -provider aws { - region = "us-east-1" -} - -provider aws { - region = "us-east-1" - profile = "owner" - alias = "owner" -} - -module "create_attachment" { - source = "../../" - - providers = { - aws = aws - aws.owner = aws.owner - } - - create_tgw_attachment = false -} diff --git a/tests/tgw/main.tf b/tests/tgw/main.tf new file mode 100644 index 0000000..401a901 --- /dev/null +++ b/tests/tgw/main.tf @@ -0,0 +1,161 @@ +provider aws { + region = "us-east-1" +} + +module tgw { + source = "../.." + + amazon_side_asn = 64512 + auto_accept_shared_attachments = "disable" + default_route_table_association = "enable" + default_route_table_propagation = "enable" + description = "Testing for tardigrade ${local.id}" + dns_support = "enable" + vpn_ecmp_support = "disable" + + route_tables = local.route_tables + routes = local.routes + vpc_attachments = local.vpc_attachments + + tags = { + Name = "tardigrade-testing-${local.id}" + } +} + +locals { + id = data.terraform_remote_state.prereq.outputs.test_id.result + + route_tables = [ + { + # name used as for_each key + name = "foo-${local.id}" + tags = {} + }, + { + name = "bar-${local.id}" + tags = {} + }, + ] + + routes = [ + { + # `name` used as for_each key + name = "route-foo-foo-10.2.0.0/24" + blackhole = false + default_route_table = false + destination_cidr_block = "10.2.0.0/24" + # name from `vpc_attachments` or id of a pre-existing tgw attachment + transit_gateway_attachment = "foo-${local.id}" + # name from `route_tables` or id of a pre-existing route table + transit_gateway_route_table = "foo-${local.id}" + }, + { + name = "route-foo-bar-10.3.0.0/24" + blackhole = false + default_route_table = false + destination_cidr_block = "10.3.0.0/24" + transit_gateway_attachment = "foo-${local.id}" + transit_gateway_route_table = "bar-${local.id}" + }, + { + name = "route-foo-blackhole-10.4.0.0/24" + blackhole = true + default_route_table = false + destination_cidr_block = "10.4.0.0/24" + # null is valid when blackhole is true + transit_gateway_attachment = null + transit_gateway_route_table = "foo-${local.id}" + }, + { + name = "route-default-foo-10.2.0.0/24" + blackhole = false + default_route_table = true + destination_cidr_block = "10.2.0.0/24" + transit_gateway_attachment = "foo-${local.id}" + transit_gateway_route_table = null + }, + { + name = "route-default-blackhole-10.4.0.0/24" + blackhole = true + default_route_table = true + destination_cidr_block = "10.4.0.0/24" + transit_gateway_attachment = null + transit_gateway_route_table = null + }, + ] + + vpc_attachments = [ + { + # name used as for_each key + name = "foo-${local.id}" + subnet_ids = module.vpc1.private_subnets + dns_support = "enable" + ipv6_support = "disable" + tags = {} + vpc_routes = [ + { + # name used as for_each key + name = "route-foo1-${local.id}" + route_table_id = module.vpc1.private_route_table_ids[0] + destination_cidr_block = "10.1.0.0/24" + destination_ipv6_cidr_block = null + } + ] + transit_gateway_default_route_table_association = false + transit_gateway_default_route_table_propagation = false + transit_gateway_route_table_association = "foo-${local.id}" + transit_gateway_route_table_propagations = [ + "foo-${local.id}", + "bar-${local.id}", + ] + }, + { + name = "bar-${local.id}" + subnet_ids = module.vpc2.private_subnets + dns_support = "enable" + ipv6_support = "disable" + tags = {} + vpc_routes = [ + { + name = "route-bar1-${local.id}" + route_table_id = module.vpc2.private_route_table_ids[0] + destination_cidr_block = "10.0.0.0/24" + destination_ipv6_cidr_block = null + } + ] + transit_gateway_default_route_table_association = true + transit_gateway_default_route_table_propagation = true + transit_gateway_route_table_association = null + transit_gateway_route_table_propagations = [] + }, + ] +} + +module "vpc1" { + source = "git::https://github.com/terraform-aws-modules/terraform-aws-vpc.git?ref=v2.57.0" + + name = "tardigrade-testing-vpc1-${local.id}" + cidr = "10.0.0.0/16" + azs = ["us-east-1a", "us-east-1b"] + private_subnets = ["10.0.1.0/24", "10.0.2.0/24"] +} + +module "vpc2" { + source = "git::https://github.com/terraform-aws-modules/terraform-aws-vpc.git?ref=v2.57.0" + + name = "tardigrade-testing-vpc2-${local.id}" + cidr = "10.1.0.0/16" + azs = ["us-east-1a", "us-east-1b"] + private_subnets = ["10.1.1.0/24", "10.1.2.0/24"] +} + +data terraform_remote_state prereq { + backend = "local" + config = { + path = "prereq/terraform.tfstate" + } +} + +output tgw { + value = module.tgw +} diff --git a/tests/tgw/prereq/main.tf b/tests/tgw/prereq/main.tf new file mode 100644 index 0000000..90da233 --- /dev/null +++ b/tests/tgw/prereq/main.tf @@ -0,0 +1,10 @@ +resource random_string this { + length = 6 + upper = false + special = false + number = false +} + +output test_id { + value = random_string.this +} diff --git a/variables.tf b/variables.tf index a1bd368..6c70626 100644 --- a/variables.tf +++ b/variables.tf @@ -1,67 +1,119 @@ -variable "create_tgw_attachment" { - description = "Controls whether to create the TGW attachment" - type = bool - default = true +variable amazon_side_asn { + description = "Private Autonomous System Number (ASN) for the Amazon side of a BGP session (range is 64512 to 65534 for 16-bit ASNs and 4200000000 to 4294967294 for 32-bit ASN)" + type = number + default = 64512 } -variable "dependencies" { - description = "List of resource dependencies to force terraform to wait until they are done" - default = [] - type = list(string) +variable auto_accept_shared_attachments { + description = "Whether resource attachment requests are automatically accepted (valid values: disable, enable)" + type = string + default = "disable" + validation { + condition = contains(["enable", "disable"], var.auto_accept_shared_attachments) + error_message = "`auto_accept_shared_attachments` must be one of: \"enable\", \"disable\"." + } } -variable "name" { - description = "The name of the TGW attachment for tagging purposes" +variable default_route_table_association { + description = "Whether resource attachments are automatically associated with the default association route table (valid values: disable, enable)" type = string - default = null + default = "enable" + validation { + condition = contains(["enable", "disable"], var.default_route_table_association) + error_message = "`default_route_table_association` must be one of: \"enable\", \"disable\"." + } } -variable "dns_support" { - description = "(Optional) Whether DNS support is enabled. Valid values: disable, enable." +variable default_route_table_propagation { + description = "Whether resource attachments automatically propagate routes to the default propagation route table (valid values: disable, enable)" type = string default = "enable" + validation { + condition = contains(["enable", "disable"], var.default_route_table_propagation) + error_message = "`default_route_table_propagation` must be one of: \"enable\", \"disable\"." + } } -variable "owner_routes" { - description = "List of AWS route objects to create with the \"owner\" provider. Each route will be created with a target of the transit gateway." - type = list(object({ - route_table_id = string - destination_cidr_block = string - destination_ipv6_cidr_block = string - })) - default = [] +variable description { + description = "Description of the EC2 Transit Gateway" + type = string + default = null } -variable "routes" { - description = "List of AWS route objects to create with the \"aws\" provider. Each route will be created with a target of the transit gateway." - type = list(object({ - route_table_id = string - destination_cidr_block = string - destination_ipv6_cidr_block = string - })) - default = [] +variable dns_support { + description = "Whether DNS support is enabled (valid values: disable, enable)" + type = string + default = "enable" + validation { + condition = contains(["enable", "disable"], var.dns_support) + error_message = "`dns_support` must be one of: \"enable\", \"disable\"." + } } -variable "subnet_ids" { - description = "A list of subnets inside the VPC" - type = list - default = [] +variable tags { + description = "Map of tags to apply to the TGW and associated resources" + type = map(string) + default = {} } -variable "transit_gateway_id" { - description = "The ID of the Transit Gateway" +variable vpn_ecmp_support { + description = "Whether VPN Equal Cost Multipath Protocol support is enabled (valid values: disable, enable)" type = string - default = null + default = "disable" + validation { + condition = contains(["enable", "disable"], var.vpn_ecmp_support) + error_message = "`vpn_ecmp_support` must be one of: \"enable\", \"disable\"." + } } -variable "vpc_id" { - description = "VPC ID to attach to the TGW" - type = string - default = null +variable route_tables { + description = "List of TGW route tables to create with the transit gateway" + type = list(object({ + # `name` used as for_each key + name = string + tags = map(string) + })) + default = [] } -variable "tags" { - description = "A map of tags to apply to the TGW attachment" - type = map - default = {} +variable routes { + description = "List of TGW routes to add to TGW route tables" + type = list(object({ + # `name` used as for_each key + name = string + blackhole = bool + default_route_table = bool + destination_cidr_block = string + # name from `vpc_attachments` or id of a pre-existing tgw attachment + transit_gateway_attachment = string + # name from `route_tables` or id of a pre-existing route table + transit_gateway_route_table = string + })) + default = [] +} + +variable vpc_attachments { + description = "List of VPC attachments to create with the transit gateway" + type = list(object({ + # `name` used as for_each key + name = string + subnet_ids = list(string) + dns_support = string + ipv6_support = string + tags = map(string) + vpc_routes = list(object({ + # `name` is used as for_each key + name = string + route_table_id = string + destination_cidr_block = string + destination_ipv6_cidr_block = string + })) + transit_gateway_default_route_table_association = bool + transit_gateway_default_route_table_propagation = bool + # name from `route_tables` or id of a pre-existing route table + transit_gateway_route_table_association = string + # list of route table names from `route_tables` or ids of pre-existing route tables + transit_gateway_route_table_propagations = list(string) + })) + default = [] }