Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
AutomationD committed Jun 7, 2024
1 parent 91caa55 commit e452065
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/complete-worker-ec2/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ module "ecs" {
module "worker_complete" {
source = "../.."

name = "worker"
name = "worker-ec2"
app_type = "worker"
env = var.env

Expand Down
6 changes: 3 additions & 3 deletions test/examples_complete-worker-ec2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ func TestExamplesWorkerEc2(t *testing.T) {
// Run `terraform output` to get the value of an output variable
vpcCidr := terraform.Output(t, terraformOptions, "vpc_cidr")
// Verify we're getting back the outputs we expect
assert.Equal(t, "10.0.20.0/16", vpcCidr)
assert.Equal(t, "10.0.0.0/16", vpcCidr)

// Run `terraform output` to get the value of an output variable
privateSubnetCidrs := terraform.OutputList(t, terraformOptions, "private_subnet_cidrs")
Expand All @@ -128,12 +128,12 @@ func TestExamplesWorkerEc2(t *testing.T) {
// Run `terraform output` to get the value of an output variable
cloudWatchLogGroup := terraform.Output(t, terraformOptions, "cloudwatch_log_group")
// Verify we're getting back the outputs we expect
assert.Equal(t, "e2e05-complete-worker-ec2", cloudWatchLogGroup)
assert.Equal(t, "e2e05-worker-ec2", cloudWatchLogGroup)

// Run `terraform output` to get the value of an output variable
ecsClusterName := terraform.Output(t, terraformOptions, "ecs_cluster_name")
// Verify we're getting back the outputs we expect
assert.Equal(t, "e2e05-tftest-complete-worker-ec2", ecsClusterName)
assert.Equal(t, "e2e05-tftest-worker-ec2", ecsClusterName)

/*
// Run `terraform output` to get the value of an output variable
Expand Down

0 comments on commit e452065

Please sign in to comment.