-
Notifications
You must be signed in to change notification settings - Fork 2
/
outputs.tf
54 lines (44 loc) · 1.69 KB
/
outputs.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
output "agent_pool_name" {
description = "Name of the HCP Terraform agent pool."
value = try(tfe_agent_pool.ecs_agent_pool[0].name, var.tfe_agent_pool_name)
}
output "agent_pool_id" {
description = "ID of the HCP Terraform agent pool."
value = try(tfe_agent_pool.ecs_agent_pool[0].id, null)
}
output "ecs_service_arn" {
description = "ARN of the ECS service."
value = aws_ecs_service.hcp_terraform_agent.id
}
output "ecs_task_arn" {
description = "ARN of the ECS task definition."
value = aws_ecs_task_definition.hcp_terraform_agent.arn
}
output "ecs_task_revision" {
description = "Revision number of the ECS task definition."
value = aws_ecs_task_definition.hcp_terraform_agent.revision
}
output "log_stream_prefix" {
description = "Prefix for the CloudWatch log stream."
value = jsondecode(aws_ecs_task_definition.hcp_terraform_agent.container_definitions)[0].logConfiguration.options.awslogs-stream-prefix
}
output "security_group_name" {
description = "Name of the VPC security group attached to the service."
value = aws_security_group.hcp_terraform_agent.name
}
output "security_group_id" {
description = "ID of the VPC security group attached to the service."
value = aws_security_group.hcp_terraform_agent.id
}
output "task_role_name" {
description = "Name of the IAM role attached to the task containers."
value = aws_iam_role.ecs_task_role.name
}
output "task_role_arn" {
description = "ARN of the IAM role attached to the task containers."
value = aws_iam_role.ecs_task_role.arn
}
output "kms_key_arn" {
description = "The ARN of the created KMS key"
value = try(aws_kms_key.log_ssm_key[0].arn, null)
}