From f3082f0933302d25be870559cedd67e498d70309 Mon Sep 17 00:00:00 2001 From: Vlad Borovtsov Date: Fri, 26 Jan 2024 20:36:04 +0100 Subject: [PATCH 1/2] Remove template provider mention as its not required anymore; fix a small typo in required terraform version --- README.md | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 583695f..e33261d 100644 --- a/README.md +++ b/README.md @@ -28,17 +28,16 @@ Security scanning is graciously provided by Bridgecrew. ## Requirements -| Name | Version | -|------|---------| -| [terraform](#requirement\_terraform) | >= 0.13 | -| [local](#requirement\_local) | ~> 1.2 | +| Name | Version | +|------|----------| +| [terraform](#requirement\_terraform) | \>= 0.13 | +| [local](#requirement\_local) | ~> 1.2 | ## Providers | Name | Version | |------|---------| | [aws](#provider\_aws) | n/a | -| [template](#provider\_template) | n/a | ## Modules @@ -57,7 +56,6 @@ No modules. | [aws_caller_identity.current](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/caller_identity) | data source | | [aws_iam_policy_document.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) | data source | | [aws_region.current](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/region) | data source | -| [template_file.ec2_user_data](https://registry.terraform.io/providers/hashicorp/template/latest/docs/data-sources/file) | data source | ## Inputs From 8215094bef95ff91df3c058f473fad8dfb26a327 Mon Sep 17 00:00:00 2001 From: Vlad Borovtsov Date: Fri, 26 Jan 2024 20:37:16 +0100 Subject: [PATCH 2/2] change ec2 instance lifecycle to allow some updates; more info in #10. --- main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.tf b/main.tf index 85cd837..2749f1c 100644 --- a/main.tf +++ b/main.tf @@ -45,7 +45,7 @@ resource "aws_instance" "this" { associate_public_ip_address = var.public_ip_enabled lifecycle { - ignore_changes = all + ignore_changes = [user_data, key_name] } user_data = var.vpn_enabled ? templatefile("${path.module}/ec2_user_data.sh.tftpl",