File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -34,10 +34,8 @@ module "subnets" {
3434}
3535
3636module "ec2_instance" {
37- source = " ../../"
38- namespace = var. namespace
39- stage = var. stage
40- name = var. name
37+ source = " ../../"
38+
4139 ssh_key_pair = module. aws_key_pair . key_name
4240 vpc_id = module. vpc . vpc_id
4341 subnet = module. subnets . private_subnet_ids [0 ]
@@ -47,4 +45,6 @@ module "ec2_instance" {
4745 instance_type = var. instance_type
4846 allowed_ports = var. allowed_ports
4947 allowed_ports_udp = var. allowed_ports_udp
48+
49+ context = module. this . context
5050}
Original file line number Diff line number Diff line change @@ -64,5 +64,5 @@ func TestExamplesComplete(t *testing.T) {
6464 // Run `terraform output` to get the value of an output variable
6565 role := terraform .Output (t , terraformOptions , "role" )
6666 // Verify we're getting back the outputs we expect
67- assert .Equal (t , "eg-test-ec2-instance" , role )
67+ assert .Equal (t , "eg-test-ec2-instance-" + randId , role )
6868}
You can’t perform that action at this time.
0 commit comments