generated from scaffoldly/terraform-scaffoldly-module-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoutput.tf
61 lines (51 loc) · 2.28 KB
/
output.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
55
56
57
58
59
60
61
output "owner" {
value = var.owner
description = "Re-output of `var.owner`"
}
output "provider_arn" {
value = aws_iam_saml_provider.provider.arn
description = "The ARN of the AWS IAM SAML Provider"
}
output "provider_name" {
value = local.provider_name
description = "The name of the AWS IAM SAML Provider (`{var.provider_name_prefix}-{var.owner}`)"
}
output "trust_policy" {
value = data.aws_iam_policy_document.trust.json
description = "A policy, in JSON format, that can be added to Role Trust Relationships"
}
output "trust" {
value = {
trust_actions = local.trust_actions
trust_principal_identifiers = [aws_iam_saml_provider.provider.arn]
trust_principal_type = local.trust_principal_type
trust_condition_saml_test = local.trust_condition_saml_test
trust_condition_saml_variable = local.trust_condition_saml_variable
trust_condition_saml_values = local.trust_condition_saml_values
}
description = "A map of values for an IAM Trust Relationship containing the following keys: `trust_actions`, `trust_principal_identifiers`, `trust_principal_type`, `trust_condition_saml_test`, `trust_condition_saml_variable`, and `trust_condition_saml_values`"
}
output "trust_actions" {
value = local.trust_actions
description = "The IAM Trust Relationship Actions (`[\"sts:AssumeRoleWithSAML\"]`)"
}
output "trust_principal_identifiers" {
value = [aws_iam_saml_provider.provider.arn]
description = "The IAM Trust Relationship Principal Identifiers (a single-item list containing the Provider ARN)"
}
output "trust_principal_type" {
value = local.trust_principal_type
description = "The IAM Trust Relationship Principal Type (`Federated`)"
}
output "trust_condition_saml_test" {
value = local.trust_condition_saml_test
description = "The IAM Trust Relationship Condition Test for SAML (`StringEquals`)"
}
output "trust_condition_saml_variable" {
value = local.trust_condition_saml_variable
description = "The IAM Trust Relationship Condition Variable for SAML (`SAML:aud`)"
}
output "trust_condition_saml_values" {
value = local.trust_condition_saml_values
description = "The IAM Trust Relationship Condition Values for SAML (`[\"https://signin.aws.amazon.com/saml\"]`)"
}