forked from iops-team/terraform-aws-ec2-pritunl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoutputs.tf
53 lines (44 loc) · 1.73 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
output "iam_role_name" {
description = "The name of the IAM role created for Pritunl."
value = aws_iam_role.pritunl.name
}
output "iam_instance_profile_name" {
description = "The name of the IAM instance profile associated with the Pritunl instance."
value = aws_iam_instance_profile.pritunl.name
}
output "instance_id" {
description = "The ID of the Pritunl EC2 instance."
value = aws_instance.pritunl.id
}
output "eip_public_ip" {
description = "The Elastic IP address associated with the Pritunl instance."
value = aws_eip.pritunl.public_ip
}
output "security_group_id" {
description = "The ID of the security group created for Pritunl."
value = aws_security_group.pritunl.id
}
output "ssm_parameter_default_credential" {
description = "The name of the SSM parameter storing the default credentials of the Pritunl service."
value = aws_ssm_parameter.default_credential.name
}
output "s3_bucket_id" {
description = "The ID of the S3 bucket used for backups."
value = try(module.s3[0].s3_bucket_id, null)
}
output "s3_bucket_arn" {
description = "The ARN of the S3 bucket used for backups."
value = try(module.s3[0].s3_bucket_arn, null)
}
output "cloudwatch_log_group_name" {
description = "The name of the CloudWatch Logs group for Pritunl logs."
value = try(aws_cloudwatch_log_group.pritunl_log_group[0].name, null)
}
output "route53_fqdn" {
description = "The DNS name for the Pritunl instance."
value = try(aws_route53_record.pritunl[0].fqdn, null)
}
output "ssm_parameter_key_pair" {
description = "The name of the SSM parameter storing the SSH private key of the Pritunl instance."
value = try(aws_ssm_parameter.ec2_keypair[0].name, null)
}