From 980505d6b4e994c37367236b2fece9c83c3910d5 Mon Sep 17 00:00:00 2001 From: Yevgeniy Brikman Date: Wed, 7 Aug 2024 08:27:17 +0100 Subject: [PATCH] Remove extra newlines --- ch3/tofu/modules/alb/main.tf | 2 -- ch3/tofu/modules/asg/main.tf | 1 - ch4/tofu/live/lambda-sample/deploy.tftest.hcl | 4 ---- ch5/tofu/live/lambda-sample/deploy.tftest.hcl | 3 --- ch6/tofu/live/child-accounts/main.tf | 2 -- ch6/tofu/live/lambda-sample-with-config/deploy.tftest.hcl | 3 --- ch6/tofu/live/lambda-sample/deploy.tftest.hcl | 3 --- 7 files changed, 18 deletions(-) diff --git a/ch3/tofu/modules/alb/main.tf b/ch3/tofu/modules/alb/main.tf index a352c34..2fa57e3 100644 --- a/ch3/tofu/modules/alb/main.tf +++ b/ch3/tofu/modules/alb/main.tf @@ -11,7 +11,6 @@ resource "aws_lb_target_group" "sample_app" { protocol = "HTTP" vpc_id = data.aws_vpc.default.id - health_check { healthy_threshold = 2 unhealthy_threshold = 2 @@ -26,7 +25,6 @@ resource "aws_lb_listener" "sample_app" { port = var.alb_http_port protocol = "HTTP" - default_action { type = "forward" target_group_arn = aws_lb_target_group.sample_app.arn diff --git a/ch3/tofu/modules/asg/main.tf b/ch3/tofu/modules/asg/main.tf index bb68ff1..f8d31db 100644 --- a/ch3/tofu/modules/asg/main.tf +++ b/ch3/tofu/modules/asg/main.tf @@ -28,7 +28,6 @@ resource "aws_autoscaling_group" "sample_app" { desired_capacity = var.desired_capacity vpc_zone_identifier = data.aws_subnets.default.ids - launch_template { id = aws_launch_template.sample_app.id version = aws_launch_template.sample_app.latest_version diff --git a/ch4/tofu/live/lambda-sample/deploy.tftest.hcl b/ch4/tofu/live/lambda-sample/deploy.tftest.hcl index c3a6777..6fa71d9 100644 --- a/ch4/tofu/live/lambda-sample/deploy.tftest.hcl +++ b/ch4/tofu/live/lambda-sample/deploy.tftest.hcl @@ -5,23 +5,19 @@ run "deploy" { run "validate" { command = apply - module { source = "../../modules/test-endpoint" } - variables { endpoint = run.deploy.api_endpoint } - assert { condition = data.http.test_endpoint.status_code == 200 error_message = "Unexpected status: ${data.http.test_endpoint.status_code}" } - assert { condition = data.http.test_endpoint.response_body == "Hello, World!" error_message = "Unexpected body: ${data.http.test_endpoint.response_body}" diff --git a/ch5/tofu/live/lambda-sample/deploy.tftest.hcl b/ch5/tofu/live/lambda-sample/deploy.tftest.hcl index 5011c31..1446a4e 100644 --- a/ch5/tofu/live/lambda-sample/deploy.tftest.hcl +++ b/ch5/tofu/live/lambda-sample/deploy.tftest.hcl @@ -5,17 +5,14 @@ run "deploy" { run "validate" { command = apply - module { source = "../../modules/test-endpoint" } - variables { endpoint = run.deploy.api_endpoint } - assert { condition = data.http.test_endpoint.status_code == 200 error_message = "Unexpected status: ${data.http.test_endpoint.status_code}" diff --git a/ch6/tofu/live/child-accounts/main.tf b/ch6/tofu/live/child-accounts/main.tf index 9e70a79..b9b72ca 100644 --- a/ch6/tofu/live/child-accounts/main.tf +++ b/ch6/tofu/live/child-accounts/main.tf @@ -3,10 +3,8 @@ provider "aws" { } module "child_accounts" { - source = "github.com/brikis98/devops-book//ch6/tofu/modules/aws-organization" - # Set to false if you already enabled AWS Organizations in your account create_organization = true diff --git a/ch6/tofu/live/lambda-sample-with-config/deploy.tftest.hcl b/ch6/tofu/live/lambda-sample-with-config/deploy.tftest.hcl index 5011c31..1446a4e 100644 --- a/ch6/tofu/live/lambda-sample-with-config/deploy.tftest.hcl +++ b/ch6/tofu/live/lambda-sample-with-config/deploy.tftest.hcl @@ -5,17 +5,14 @@ run "deploy" { run "validate" { command = apply - module { source = "../../modules/test-endpoint" } - variables { endpoint = run.deploy.api_endpoint } - assert { condition = data.http.test_endpoint.status_code == 200 error_message = "Unexpected status: ${data.http.test_endpoint.status_code}" diff --git a/ch6/tofu/live/lambda-sample/deploy.tftest.hcl b/ch6/tofu/live/lambda-sample/deploy.tftest.hcl index 5011c31..1446a4e 100644 --- a/ch6/tofu/live/lambda-sample/deploy.tftest.hcl +++ b/ch6/tofu/live/lambda-sample/deploy.tftest.hcl @@ -5,17 +5,14 @@ run "deploy" { run "validate" { command = apply - module { source = "../../modules/test-endpoint" } - variables { endpoint = run.deploy.api_endpoint } - assert { condition = data.http.test_endpoint.status_code == 200 error_message = "Unexpected status: ${data.http.test_endpoint.status_code}"