Browse Source

fix/ missing outputs

tags/1.0.1^2
Quentin Vallin 2 years ago
parent
commit
f6dc2bf194
Signed by untrusted user: quentin.vallin <quentin.vallin@fxinnovation.com> GPG Key ID: 96D1C2CDC50558C3
13 changed files with 439 additions and 1 deletions
  1. +12
    -0
      README.md
  2. +12
    -0
      examples/disable/README.md
  3. +48
    -0
      examples/disable/outputs.tf
  4. +12
    -0
      examples/external_kms_no_policy/README.md
  5. +48
    -0
      examples/external_kms_no_policy/outputs.tf
  6. +12
    -0
      examples/no_kms/README.md
  7. +48
    -0
      examples/no_kms/outputs.tf
  8. +12
    -0
      examples/overwrite/README.md
  9. +48
    -0
      examples/overwrite/outputs.tf
  10. +12
    -0
      examples/standard/README.md
  11. +48
    -0
      examples/standard/outputs.tf
  12. +127
    -0
      outputs.tf
  13. +0
    -1
      versions.tf

+ 12
- 0
README.md View File

@@ -38,11 +38,23 @@ It's not possible to convert `SecureString` into a `String`/`StringList` a value
|------|-------------|
| arns | ARNs of SSM Parameters |
| iam\_policy\_read\_only\_arn | ARN of the read only policy |
| iam\_policy\_read\_only\_description | The description of the read only policy |
| iam\_policy\_read\_only\_id | ID of the read only policy |
| iam\_policy\_read\_only\_name | The name of the read only policy |
| iam\_policy\_read\_only\_path | Path of the read only policy |
| iam\_policy\_read\_only\_policy | The policy document |
| iam\_policy\_read\_write\_arn | ARN of the read write policy |
| iam\_policy\_read\_write\_description | The description of the read write policy |
| iam\_policy\_read\_write\_id | ID of the read write policy |
| iam\_policy\_read\_write\_name | The name of the read write policy |
| iam\_policy\_read\_write\_path | Path of the read write policy |
| iam\_policy\_read\_write\_policy | The policy document |
| kms\_alias\_arns | The Amazon Resource Name (ARN) of the key alias |
| kms\_alias\_target\_key\_arn | The Amazon Resource Name (ARN) of the target key identifier |
| kms\_key\_arns | The Amazon Resource Name (ARN) of the key |
| kms\_key\_ids | Globally unique identifier for the key |
| names | Names of SSM Parameters |
| types | Types of SSM parameters |
| versions | Versions of SSM parameters |

<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->

+ 12
- 0
examples/disable/README.md View File

@@ -26,11 +26,23 @@ $ terraform apply
|------|-------------|
| arns | |
| iam\_policy\_read\_only\_arn | |
| iam\_policy\_read\_only\_description | |
| iam\_policy\_read\_only\_id | |
| iam\_policy\_read\_only\_name | |
| iam\_policy\_read\_only\_path | |
| iam\_policy\_read\_only\_policy | |
| iam\_policy\_read\_write\_arn | |
| iam\_policy\_read\_write\_description | |
| iam\_policy\_read\_write\_id | |
| iam\_policy\_read\_write\_name | |
| iam\_policy\_read\_write\_path | |
| iam\_policy\_read\_write\_policy | |
| kms\_alias\_arns | |
| kms\_alias\_target\_key\_arn | |
| kms\_key\_arns | |
| kms\_key\_ids | |
| names | |
| types | |
| versions | |

<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->

+ 48
- 0
examples/disable/outputs.tf View File

@@ -6,6 +6,30 @@ output "names" {
value = module.disable.names
}

output "types" {
value = module.disable.types
}

output "versions" {
value = module.disable.versions
}

output "kms_key_arns" {
value = module.disable.kms_key_arns
}

output "kms_key_ids" {
value = module.disable.kms_key_ids
}

output "kms_alias_arns" {
value = module.disable.kms_alias_arns
}

output "kms_alias_target_key_arn" {
value = module.disable.kms_alias_target_key_arn
}

output "iam_policy_read_only_id" {
value = module.disable.iam_policy_read_only_id
}
@@ -14,10 +38,22 @@ output "iam_policy_read_only_arn" {
value = module.disable.iam_policy_read_only_arn
}

output "iam_policy_read_only_description" {
value = module.disable.iam_policy_read_only_description
}

output "iam_policy_read_only_name" {
value = module.disable.iam_policy_read_only_name
}

output "iam_policy_read_only_path" {
value = module.disable.iam_policy_read_only_path
}

output "iam_policy_read_only_policy" {
value = module.disable.iam_policy_read_only_policy
}

output "iam_policy_read_write_id" {
value = module.disable.iam_policy_read_write_id
}
@@ -26,6 +62,18 @@ output "iam_policy_read_write_arn" {
value = module.disable.iam_policy_read_write_arn
}

output "iam_policy_read_write_description" {
value = module.disable.iam_policy_read_write_description
}

output "iam_policy_read_write_name" {
value = module.disable.iam_policy_read_write_name
}

output "iam_policy_read_write_path" {
value = module.disable.iam_policy_read_write_path
}

output "iam_policy_read_write_policy" {
value = module.disable.iam_policy_read_write_policy
}

+ 12
- 0
examples/external_kms_no_policy/README.md View File

@@ -26,11 +26,23 @@ $ terraform apply
|------|-------------|
| arns | |
| iam\_policy\_read\_only\_arn | |
| iam\_policy\_read\_only\_description | |
| iam\_policy\_read\_only\_id | |
| iam\_policy\_read\_only\_name | |
| iam\_policy\_read\_only\_path | |
| iam\_policy\_read\_only\_policy | |
| iam\_policy\_read\_write\_arn | |
| iam\_policy\_read\_write\_description | |
| iam\_policy\_read\_write\_id | |
| iam\_policy\_read\_write\_name | |
| iam\_policy\_read\_write\_path | |
| iam\_policy\_read\_write\_policy | |
| kms\_alias\_arns | |
| kms\_alias\_target\_key\_arn | |
| kms\_key\_arns | |
| kms\_key\_ids | |
| names | |
| types | |
| versions | |

<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->

+ 48
- 0
examples/external_kms_no_policy/outputs.tf View File

@@ -6,6 +6,30 @@ output "names" {
value = module.external_kms_no_policy.names
}

output "types" {
value = module.external_kms_no_policy.types
}

output "versions" {
value = module.external_kms_no_policy.versions
}

output "kms_key_arns" {
value = module.external_kms_no_policy.kms_key_arns
}

output "kms_key_ids" {
value = module.external_kms_no_policy.kms_key_ids
}

output "kms_alias_arns" {
value = module.external_kms_no_policy.kms_alias_arns
}

output "kms_alias_target_key_arn" {
value = module.external_kms_no_policy.kms_alias_target_key_arn
}

output "iam_policy_read_only_id" {
value = module.external_kms_no_policy.iam_policy_read_only_id
}
@@ -14,10 +38,22 @@ output "iam_policy_read_only_arn" {
value = module.external_kms_no_policy.iam_policy_read_only_arn
}

output "iam_policy_read_only_description" {
value = module.external_kms_no_policy.iam_policy_read_only_description
}

output "iam_policy_read_only_name" {
value = module.external_kms_no_policy.iam_policy_read_only_name
}

output "iam_policy_read_only_path" {
value = module.external_kms_no_policy.iam_policy_read_only_path
}

output "iam_policy_read_only_policy" {
value = module.external_kms_no_policy.iam_policy_read_only_policy
}

output "iam_policy_read_write_id" {
value = module.external_kms_no_policy.iam_policy_read_write_id
}
@@ -26,6 +62,18 @@ output "iam_policy_read_write_arn" {
value = module.external_kms_no_policy.iam_policy_read_write_arn
}

output "iam_policy_read_write_description" {
value = module.external_kms_no_policy.iam_policy_read_write_description
}

output "iam_policy_read_write_name" {
value = module.external_kms_no_policy.iam_policy_read_write_name
}

output "iam_policy_read_write_path" {
value = module.external_kms_no_policy.iam_policy_read_write_path
}

output "iam_policy_read_write_policy" {
value = module.external_kms_no_policy.iam_policy_read_write_policy
}

+ 12
- 0
examples/no_kms/README.md View File

@@ -26,11 +26,23 @@ $ terraform apply
|------|-------------|
| arns | |
| iam\_policy\_read\_only\_arn | |
| iam\_policy\_read\_only\_description | |
| iam\_policy\_read\_only\_id | |
| iam\_policy\_read\_only\_name | |
| iam\_policy\_read\_only\_path | |
| iam\_policy\_read\_only\_policy | |
| iam\_policy\_read\_write\_arn | |
| iam\_policy\_read\_write\_description | |
| iam\_policy\_read\_write\_id | |
| iam\_policy\_read\_write\_name | |
| iam\_policy\_read\_write\_path | |
| iam\_policy\_read\_write\_policy | |
| kms\_alias\_arns | |
| kms\_alias\_target\_key\_arn | |
| kms\_key\_arns | |
| kms\_key\_ids | |
| names | |
| types | |
| versions | |

<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->

+ 48
- 0
examples/no_kms/outputs.tf View File

@@ -6,6 +6,30 @@ output "names" {
value = module.no_kms.names
}

output "types" {
value = module.no_kms.types
}

output "versions" {
value = module.no_kms.versions
}

output "kms_key_arns" {
value = module.no_kms.kms_key_arns
}

output "kms_key_ids" {
value = module.no_kms.kms_key_ids
}

output "kms_alias_arns" {
value = module.no_kms.kms_alias_arns
}

output "kms_alias_target_key_arn" {
value = module.no_kms.kms_alias_target_key_arn
}

output "iam_policy_read_only_id" {
value = module.no_kms.iam_policy_read_only_id
}
@@ -14,10 +38,22 @@ output "iam_policy_read_only_arn" {
value = module.no_kms.iam_policy_read_only_arn
}

output "iam_policy_read_only_description" {
value = module.no_kms.iam_policy_read_only_description
}

output "iam_policy_read_only_name" {
value = module.no_kms.iam_policy_read_only_name
}

output "iam_policy_read_only_path" {
value = module.no_kms.iam_policy_read_only_path
}

output "iam_policy_read_only_policy" {
value = module.no_kms.iam_policy_read_only_policy
}

output "iam_policy_read_write_id" {
value = module.no_kms.iam_policy_read_write_id
}
@@ -26,6 +62,18 @@ output "iam_policy_read_write_arn" {
value = module.no_kms.iam_policy_read_write_arn
}

output "iam_policy_read_write_description" {
value = module.no_kms.iam_policy_read_write_description
}

output "iam_policy_read_write_name" {
value = module.no_kms.iam_policy_read_write_name
}

output "iam_policy_read_write_path" {
value = module.no_kms.iam_policy_read_write_path
}

output "iam_policy_read_write_policy" {
value = module.no_kms.iam_policy_read_write_policy
}

+ 12
- 0
examples/overwrite/README.md View File

@@ -26,11 +26,23 @@ $ terraform apply
|------|-------------|
| arns | |
| iam\_policy\_read\_only\_arn | |
| iam\_policy\_read\_only\_description | |
| iam\_policy\_read\_only\_id | |
| iam\_policy\_read\_only\_name | |
| iam\_policy\_read\_only\_path | |
| iam\_policy\_read\_only\_policy | |
| iam\_policy\_read\_write\_arn | |
| iam\_policy\_read\_write\_description | |
| iam\_policy\_read\_write\_id | |
| iam\_policy\_read\_write\_name | |
| iam\_policy\_read\_write\_path | |
| iam\_policy\_read\_write\_policy | |
| kms\_alias\_arns | |
| kms\_alias\_target\_key\_arn | |
| kms\_key\_arns | |
| kms\_key\_ids | |
| names | |
| types | |
| versions | |

<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->

+ 48
- 0
examples/overwrite/outputs.tf View File

@@ -6,6 +6,30 @@ output "names" {
value = module.overwrite.names
}

output "types" {
value = module.overwrite.types
}

output "versions" {
value = module.overwrite.versions
}

output "kms_key_arns" {
value = module.overwrite.kms_key_arns
}

output "kms_key_ids" {
value = module.overwrite.kms_key_ids
}

output "kms_alias_arns" {
value = module.overwrite.kms_alias_arns
}

output "kms_alias_target_key_arn" {
value = module.overwrite.kms_alias_target_key_arn
}

output "iam_policy_read_only_id" {
value = module.overwrite.iam_policy_read_only_id
}
@@ -14,10 +38,22 @@ output "iam_policy_read_only_arn" {
value = module.overwrite.iam_policy_read_only_arn
}

output "iam_policy_read_only_description" {
value = module.overwrite.iam_policy_read_only_description
}

output "iam_policy_read_only_name" {
value = module.overwrite.iam_policy_read_only_name
}

output "iam_policy_read_only_path" {
value = module.overwrite.iam_policy_read_only_path
}

output "iam_policy_read_only_policy" {
value = module.overwrite.iam_policy_read_only_policy
}

output "iam_policy_read_write_id" {
value = module.overwrite.iam_policy_read_write_id
}
@@ -26,6 +62,18 @@ output "iam_policy_read_write_arn" {
value = module.overwrite.iam_policy_read_write_arn
}

output "iam_policy_read_write_description" {
value = module.overwrite.iam_policy_read_write_description
}

output "iam_policy_read_write_name" {
value = module.overwrite.iam_policy_read_write_name
}

output "iam_policy_read_write_path" {
value = module.overwrite.iam_policy_read_write_path
}

output "iam_policy_read_write_policy" {
value = module.overwrite.iam_policy_read_write_policy
}

+ 12
- 0
examples/standard/README.md View File

@@ -26,11 +26,23 @@ $ terraform apply
|------|-------------|
| arns | |
| iam\_policy\_read\_only\_arn | |
| iam\_policy\_read\_only\_description | |
| iam\_policy\_read\_only\_id | |
| iam\_policy\_read\_only\_name | |
| iam\_policy\_read\_only\_path | |
| iam\_policy\_read\_only\_policy | |
| iam\_policy\_read\_write\_arn | |
| iam\_policy\_read\_write\_description | |
| iam\_policy\_read\_write\_id | |
| iam\_policy\_read\_write\_name | |
| iam\_policy\_read\_write\_path | |
| iam\_policy\_read\_write\_policy | |
| kms\_alias\_arns | |
| kms\_alias\_target\_key\_arn | |
| kms\_key\_arns | |
| kms\_key\_ids | |
| names | |
| types | |
| versions | |

<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->

+ 48
- 0
examples/standard/outputs.tf View File

@@ -6,6 +6,30 @@ output "names" {
value = module.standard.names
}

output "types" {
value = module.standard.types
}

output "versions" {
value = module.standard.versions
}

output "kms_key_arns" {
value = module.standard.kms_key_arns
}

output "kms_key_ids" {
value = module.standard.kms_key_ids
}

output "kms_alias_arns" {
value = module.standard.kms_alias_arns
}

output "kms_alias_target_key_arn" {
value = module.standard.kms_alias_target_key_arn
}

output "iam_policy_read_only_id" {
value = module.standard.iam_policy_read_only_id
}
@@ -14,10 +38,22 @@ output "iam_policy_read_only_arn" {
value = module.standard.iam_policy_read_only_arn
}

output "iam_policy_read_only_description" {
value = module.standard.iam_policy_read_only_description
}

output "iam_policy_read_only_name" {
value = module.standard.iam_policy_read_only_name
}

output "iam_policy_read_only_path" {
value = module.standard.iam_policy_read_only_path
}

output "iam_policy_read_only_policy" {
value = module.standard.iam_policy_read_only_policy
}

output "iam_policy_read_write_id" {
value = module.standard.iam_policy_read_write_id
}
@@ -26,6 +62,18 @@ output "iam_policy_read_write_arn" {
value = module.standard.iam_policy_read_write_arn
}

output "iam_policy_read_write_description" {
value = module.standard.iam_policy_read_write_description
}

output "iam_policy_read_write_name" {
value = module.standard.iam_policy_read_write_name
}

output "iam_policy_read_write_path" {
value = module.standard.iam_policy_read_write_path
}

output "iam_policy_read_write_policy" {
value = module.standard.iam_policy_read_write_policy
}

+ 127
- 0
outputs.tf View File

@@ -32,6 +32,68 @@ output "iam_policy_read_only_id" {
)
}

output "types" {
description = "Types of SSM parameters"
value = compact(
concat(
aws_ssm_parameter.overwrite.*.type,
aws_ssm_parameter.no_overwrite.*.type,
[""],
)
)
}

output "versions" {
description = "Versions of SSM parameters"
value = compact(
concat(
aws_ssm_parameter.overwrite.*.version,
aws_ssm_parameter.no_overwrite.*.version,
[""],
)
)
}

output "kms_key_arns" {
description = "The Amazon Resource Name (ARN) of the key"
value = compact(
concat(
aws_kms_key.this.*.arn,
[""],
)
)
}

output "kms_key_ids" {
description = "Globally unique identifier for the key"
value = compact(
concat(
aws_kms_key.this.*.key_id,
[""],
)
)
}

output "kms_alias_arns" {
description = "The Amazon Resource Name (ARN) of the key alias"
value = compact(
concat(
aws_kms_alias.this.*.arn,
[""],
)
)
}

output "kms_alias_target_key_arn" {
description = "The Amazon Resource Name (ARN) of the target key identifier"
value = compact(
concat(
aws_kms_alias.this.*.target_key_arn,
[""],
)
)
}

output "iam_policy_read_only_arn" {
description = "ARN of the read only policy"
value = element(
@@ -44,6 +106,30 @@ output "iam_policy_read_only_arn" {
)
}

output "iam_policy_read_only_description" {
description = "The description of the read only policy"
value = element(
concat(
aws_iam_policy.read_kms.*.description,
aws_iam_policy.read_no_kms.*.description,
[""],
),
0,
)
}

output "iam_policy_read_only_name" {
description = "The name of the read only policy"
value = element(
concat(
aws_iam_policy.read_kms.*.name,
aws_iam_policy.read_no_kms.*.name,
[""],
),
0,
)
}

output "iam_policy_read_only_path" {
description = "Path of the read only policy"
value = element(
@@ -56,6 +142,11 @@ output "iam_policy_read_only_path" {
)
}

output "iam_policy_read_only_policy" {
description = "The policy document"
value = element(concat(aws_iam_policy.read_kms.*.policy, aws_iam_policy.read_no_kms.*.policy, list("")), 0)
}

output "iam_policy_read_write_id" {
description = "ID of the read write policy"
value = element(
@@ -80,6 +171,30 @@ output "iam_policy_read_write_arn" {
)
}

output "iam_policy_read_write_description" {
description = "The description of the read write policy"
value = element(
concat(
aws_iam_policy.read_write_kms.*.description,
aws_iam_policy.read_write_no_kms.*.description,
[""]
),
0
)
}

output "iam_policy_read_write_name" {
description = "The name of the read write policy"
value = element(
concat(
aws_iam_policy.read_write_kms.*.name,
aws_iam_policy.read_write_no_kms.*.name,
[""]
),
0,
)
}

output "iam_policy_read_write_path" {
description = "Path of the read write policy"
value = element(
@@ -91,3 +206,15 @@ output "iam_policy_read_write_path" {
0,
)
}

output "iam_policy_read_write_policy" {
description = "The policy document"
value = element(
concat(
aws_iam_policy.read_write_kms.*.policy,
aws_iam_policy.read_write_no_kms.*.policy,
[""],
),
0
)
}

+ 0
- 1
versions.tf View File

@@ -1,4 +1,3 @@

terraform {
required_version = ">= 0.12"
}

Loading…
Cancel
Save