-
Notifications
You must be signed in to change notification settings - Fork 2
/
outputs.tf
24 lines (20 loc) · 782 Bytes
/
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
output "instance" {
description = "The created instance, allowing use of any of the attributes of the aws_instance resourfce"
value = aws_instance.instance
}
output "instance_id" {
description = "ID of the instance that has been created. Can be used in SSM Start session command with `$(terraform output instance_id\\|jq -r)`"
value = aws_instance.instance.id
}
output "ami" {
description = "ID of the AMI that has been selected."
value = data.aws_ami.this
}
output "security_group" {
description = "The security group created for instance. Can be used to add additional rules"
value = aws_security_group.security_group
}
output "instance_role" {
description = "The IAM role assigned to the instance"
value = aws_iam_role.role
}