-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use cluster sub-module to provision ECS Cluster.
- Loading branch information
1 parent
ec28605
commit e79392b
Showing
4 changed files
with
260 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,65 @@ | ||
############################## | ||
################################################################################ | ||
# ECS Cluster | ||
############################## | ||
################################################################################ | ||
|
||
output "cluster_id" { | ||
description = "Identifier of the ECS Cluster" | ||
value = aws_ecs_cluster.this.id | ||
value = module.cluster.id | ||
} | ||
|
||
output "cluster_arn" { | ||
description = "ARN of the ECS Cluster" | ||
value = aws_ecs_cluster.this.arn | ||
value = module.cluster.arn | ||
} | ||
|
||
output "cluster_name" { | ||
description = "Name of the ECS Cluster" | ||
value = var.cluster_name | ||
value = module.cluster.name | ||
} | ||
|
||
################################################################################ | ||
# Autoscaling Group | ||
################################################################################ | ||
|
||
output "asg_id" { | ||
description = "Identifier of the Autoscaling group" | ||
value = module.asg.id | ||
} | ||
|
||
output "asg_arn" { | ||
description = "ARN of the Autoscaling group" | ||
value = module.asg.arn | ||
} | ||
|
||
################################################################################ | ||
# Launch Template | ||
################################################################################ | ||
|
||
output "asg_launch_template_id" { | ||
description = "Identifier of the Launch Template being used with the Autoscaling Group" | ||
value = module.asg.launch_template_id | ||
} | ||
|
||
output "asg_launch_template_arn" { | ||
description = "ARN of the Launch Template being used with the Autoscaling Group" | ||
value = module.asg.launch_template_arn | ||
} | ||
|
||
################################################################################ | ||
# IAM Instance Profile | ||
################################################################################ | ||
|
||
output "asg_iam_role_id" { | ||
description = "Identifier of the IAM Role being used with the IAM Instnace Profile" | ||
value = module.asg.iam_role_id | ||
} | ||
|
||
output "asg_iam_instance_profile_id" { | ||
description = "Identifier of the IAM Instance Profile being used with the Launch Template" | ||
value = module.asg.iam_instance_profile_id | ||
} | ||
|
||
output "asg_iam_instance_profile_arn" { | ||
description = "ARN of the IAM Instance Profile being used with the Launch Template" | ||
value = module.asg.iam_instance_profile_arn | ||
} |
Oops, something went wrong.