Skip to content

Commit de7c658

Browse files
committed
chore: Update example to correct CI tests
1 parent 0366d66 commit de7c658

File tree

28 files changed

+2378
-1342
lines changed

28 files changed

+2378
-1342
lines changed

examples/terraform-aws-alb/examples/complete-alb/main.tf

Lines changed: 562 additions & 432 deletions
Large diffs are not rendered by default.
Lines changed: 53 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,76 @@
1-
output "lb_id" {
2-
description = "The ID and ARN of the load balancer we created."
3-
value = module.alb.lb_id
4-
}
1+
################################################################################
2+
# Load Balancer
3+
################################################################################
54

6-
output "lb_arn" {
7-
description = "The ID and ARN of the load balancer we created."
8-
value = module.alb.lb_arn
5+
output "id" {
6+
description = "The ID and ARN of the load balancer we created"
7+
value = module.alb.id
98
}
109

11-
output "lb_dns_name" {
12-
description = "The DNS name of the load balancer."
13-
value = module.alb.lb_dns_name
10+
output "arn" {
11+
description = "The ID and ARN of the load balancer we created"
12+
value = module.alb.arn
1413
}
1514

16-
output "lb_arn_suffix" {
17-
description = "ARN suffix of our load balancer - can be used with CloudWatch."
18-
value = module.alb.lb_arn_suffix
15+
output "arn_suffix" {
16+
description = "ARN suffix of our load balancer - can be used with CloudWatch"
17+
value = module.alb.arn_suffix
1918
}
2019

21-
output "lb_zone_id" {
22-
description = "The zone_id of the load balancer to assist with creating DNS records."
23-
value = module.alb.lb_zone_id
20+
output "dns_name" {
21+
description = "The DNS name of the load balancer"
22+
value = module.alb.dns_name
2423
}
2524

26-
output "http_tcp_listener_arns" {
27-
description = "The ARN of the TCP and HTTP load balancer listeners created."
28-
value = module.alb.http_tcp_listener_arns
25+
output "zone_id" {
26+
description = "The zone_id of the load balancer to assist with creating DNS records"
27+
value = module.alb.zone_id
2928
}
3029

31-
output "http_tcp_listener_ids" {
32-
description = "The IDs of the TCP and HTTP load balancer listeners created."
33-
value = module.alb.http_tcp_listener_ids
34-
}
30+
################################################################################
31+
# Listener(s)
32+
################################################################################
3533

36-
output "https_listener_arns" {
37-
description = "The ARNs of the HTTPS load balancer listeners created."
38-
value = module.alb.https_listener_arns
34+
output "listeners" {
35+
description = "Map of listeners created and their attributes"
36+
value = module.alb.listeners
37+
sensitive = true
3938
}
4039

41-
output "https_listener_ids" {
42-
description = "The IDs of the load balancer listeners created."
43-
value = module.alb.https_listener_ids
40+
output "listener_rules" {
41+
description = "Map of listeners rules created and their attributes"
42+
value = module.alb.listener_rules
43+
sensitive = true
4444
}
4545

46-
output "target_group_arns" {
47-
description = "ARNs of the target groups. Useful for passing to your Auto Scaling group."
48-
value = module.alb.target_group_arns
46+
################################################################################
47+
# Target Group(s)
48+
################################################################################
49+
50+
output "target_groups" {
51+
description = "Map of target groups created and their attributes"
52+
value = module.alb.target_groups
4953
}
5054

51-
output "target_group_arn_suffixes" {
52-
description = "ARN suffixes of our target groups - can be used with CloudWatch."
53-
value = module.alb.target_group_arn_suffixes
55+
################################################################################
56+
# Security Group
57+
################################################################################
58+
59+
output "security_group_arn" {
60+
description = "Amazon Resource Name (ARN) of the security group"
61+
value = module.alb.security_group_arn
5462
}
5563

56-
output "target_group_names" {
57-
description = "Name of the target group. Useful for passing to your CodeDeploy Deployment Group."
58-
value = module.alb.target_group_names
64+
output "security_group_id" {
65+
description = "ID of the security group"
66+
value = module.alb.security_group_id
5967
}
6068

61-
output "target_group_attachments" {
62-
description = "ARNs of the target group attachment IDs."
63-
value = module.alb.target_group_attachments
69+
################################################################################
70+
# Route53 Record(s)
71+
################################################################################
72+
73+
output "route53_records" {
74+
description = "The Route53 records created and attached to the load balancer"
75+
value = module.alb.route53_records
6476
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
variable "domain_name" {
2+
description = "The domain name for which the certificate should be issued"
3+
type = string
4+
default = "terraform-aws-modules.modules.tf"
5+
}

examples/terraform-aws-alb/examples/complete-alb/providers.tf renamed to examples/terraform-aws-alb/examples/complete-alb/versions.tf

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ terraform {
44
required_providers {
55
aws = {
66
source = "hashicorp/aws"
7-
version = ">= 4.27"
8-
}
9-
random = {
10-
source = "hashicorp/random"
11-
version = ">= 2.0"
7+
version = ">= 5.99"
128
}
139
null = {
1410
source = "hashicorp/null"
1511
version = ">= 2.0"
1612
}
13+
random = {
14+
source = "hashicorp/random"
15+
version = ">= 3.6"
16+
}
1717
}
1818
}

0 commit comments

Comments
 (0)