forked from clouddrove/terraform-aws-iam-user
-
Notifications
You must be signed in to change notification settings - Fork 0
/
outputs.tf
27 lines (23 loc) · 969 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
25
26
27
# Module : Iam Role
# Description : Terraform module to create Iam Role resource on AWS.
output "arn" {
value = join("", aws_iam_user.default.*.arn)
description = "The ARN assigned by AWS for this user."
}
output "unique_id" {
value = join("", aws_iam_user.default.*.unique_id)
description = "The unique ID assigned by AWS for this user."
}
output "key_id" {
value = join("", aws_iam_access_key.default.*.id)
description = "The access key ID."
}
output "secret" {
value = var.pgp_key == "" ? join("", aws_iam_access_key.default.*.secret) : join("", aws_iam_access_key.default.*.encrypted_secret)
description = "The secret access key. Note that this will be written to the state file. Please supply a pgp_key instead, which will prevent the secret from being stored in plain text."
sensitive = true
}
output "tags" {
value = module.labels.tags
description = "A mapping of tags to assign to the resource."
}