Skip to content

Commit

Permalink
Remove extra newlines
Browse files Browse the repository at this point in the history
  • Loading branch information
brikis98 committed Aug 7, 2024
1 parent 18b65da commit 980505d
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 18 deletions.
2 changes: 0 additions & 2 deletions ch3/tofu/modules/alb/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
1 change: 0 additions & 1 deletion ch3/tofu/modules/asg/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 0 additions & 4 deletions ch4/tofu/live/lambda-sample/deploy.tftest.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down
3 changes: 0 additions & 3 deletions ch5/tofu/live/lambda-sample/deploy.tftest.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down
2 changes: 0 additions & 2 deletions ch6/tofu/live/child-accounts/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 0 additions & 3 deletions ch6/tofu/live/lambda-sample-with-config/deploy.tftest.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down
3 changes: 0 additions & 3 deletions ch6/tofu/live/lambda-sample/deploy.tftest.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit 980505d

Please sign in to comment.