diff --git a/README.md b/README.md index 8138cbb..8623316 100644 --- a/README.md +++ b/README.md @@ -306,7 +306,6 @@ No modules. | [instance\_type](#input\_instance\_type) | The type of the instance. If present then `instance_requirements` cannot be present | `string` | `null` | no | | [kernel\_id](#input\_kernel\_id) | The kernel ID | `string` | `null` | no | | [key\_name](#input\_key\_name) | The key name that should be used for the instance | `string` | `null` | no | -| [launch\_template](#input\_launch\_template) | Name of an existing launch template to be used (created outside of this module) | `string` | `null` | no | | [launch\_template\_description](#input\_launch\_template\_description) | Description of the launch template | `string` | `null` | no | | [launch\_template\_name](#input\_launch\_template\_name) | Name of launch template to be created | `string` | `""` | no | | [launch\_template\_use\_name\_prefix](#input\_launch\_template\_use\_name\_prefix) | Determines whether to use `launch_template_name` as is or create a unique name beginning with the `launch_template_name` as the prefix | `bool` | `true` | no | diff --git a/examples/complete/main.tf b/examples/complete/main.tf index ad4694f..d4ad875 100644 --- a/examples/complete/main.tf +++ b/examples/complete/main.tf @@ -112,7 +112,6 @@ module "external" { # Launch template create_launch_template = false - launch_template = aws_launch_template.this.name tags = local.tags } diff --git a/main.tf b/main.tf index 565b042..469b0cc 100644 --- a/main.tf +++ b/main.tf @@ -5,7 +5,6 @@ locals { create = var.create && var.putin_khuylo launch_template_name = coalesce(var.launch_template_name, var.name) - launch_template = var.create_launch_template ? aws_launch_template.this[0].name : var.launch_template launch_template_version = var.create_launch_template && var.launch_template_version == null ? aws_launch_template.this[0].latest_version : var.launch_template_version asg_tags = merge( diff --git a/variables.tf b/variables.tf index 7b04a87..3bd1b28 100644 --- a/variables.tf +++ b/variables.tf @@ -31,12 +31,6 @@ variable "instance_name" { default = "" } -variable "launch_template" { - description = "Name of an existing launch template to be used (created outside of this module)" - type = string - default = null -} - variable "launch_template_version" { description = "Launch template version. Can be version number, `$Latest`, or `$Default`" type = string