Generic module to creates SSM Parameters for AWS.
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

212 lignes
3.9KB

  1. output "arns" {
  2. description = "ARNs of SSM Parameters"
  3. value = compact(
  4. concat(
  5. aws_ssm_parameter.do_not_ignore_changes_on_value.*.arn,
  6. aws_ssm_parameter.ignore_changes_on_value.*.arn,
  7. [""],
  8. ),
  9. )
  10. }
  11. output "names" {
  12. description = "Names of SSM Parameters"
  13. value = compact(
  14. concat(
  15. aws_ssm_parameter.do_not_ignore_changes_on_value.*.name,
  16. aws_ssm_parameter.ignore_changes_on_value.*.name,
  17. [""],
  18. ),
  19. )
  20. }
  21. output "types" {
  22. description = "Types of SSM parameters"
  23. value = compact(
  24. concat(
  25. aws_ssm_parameter.do_not_ignore_changes_on_value.*.type,
  26. aws_ssm_parameter.ignore_changes_on_value.*.type,
  27. [""],
  28. )
  29. )
  30. }
  31. output "versions" {
  32. description = "Versions of SSM parameters"
  33. value = compact(
  34. concat(
  35. aws_ssm_parameter.do_not_ignore_changes_on_value.*.version,
  36. aws_ssm_parameter.ignore_changes_on_value.*.version,
  37. [""],
  38. )
  39. )
  40. }
  41. output "kms_key_arn" {
  42. description = "The Amazon Resource Name (ARN) of the key"
  43. value = element(
  44. concat(
  45. aws_kms_key.this.*.arn,
  46. [""],
  47. ), 0)
  48. }
  49. output "kms_key_id" {
  50. description = "Globally unique identifier for the key"
  51. value = element(
  52. concat(
  53. aws_kms_key.this.*.key_id,
  54. [""],
  55. ), 0)
  56. }
  57. output "kms_alias_arn" {
  58. description = "The Amazon Resource Name (ARN) of the key alias"
  59. value = element(
  60. concat(
  61. aws_kms_alias.this.*.arn,
  62. [""],
  63. ), 0)
  64. }
  65. output "kms_alias_target_key_arn" {
  66. description = "The Amazon Resource Name (ARN) of the target key identifier"
  67. value = element(
  68. concat(
  69. aws_kms_alias.this.*.target_key_arn,
  70. [""],
  71. ), 0)
  72. }
  73. output "iam_policy_read_only_id" {
  74. description = "ID of the read only policy"
  75. value = element(
  76. concat(
  77. aws_iam_policy.read_only.*.id,
  78. [""],
  79. ),
  80. 0,
  81. )
  82. }
  83. output "iam_policy_read_only_arn" {
  84. description = "ARN of the read only policy"
  85. value = element(
  86. concat(
  87. aws_iam_policy.read_only.*.arn,
  88. [""],
  89. ),
  90. 0,
  91. )
  92. }
  93. output "iam_policy_read_only_description" {
  94. description = "The description of the read only policy"
  95. value = element(
  96. concat(
  97. aws_iam_policy.read_only.*.description,
  98. [""],
  99. ),
  100. 0,
  101. )
  102. }
  103. output "iam_policy_read_only_name" {
  104. description = "The name of the read only policy"
  105. value = element(
  106. concat(
  107. aws_iam_policy.read_only.*.name,
  108. [""],
  109. ),
  110. 0,
  111. )
  112. }
  113. output "iam_policy_read_only_path" {
  114. description = "Path of the read only policy"
  115. value = element(
  116. concat(
  117. aws_iam_policy.read_only.*.path,
  118. [""],
  119. ),
  120. 0,
  121. )
  122. }
  123. output "iam_policy_read_only_policy" {
  124. description = "The policy document"
  125. value = element(
  126. concat(
  127. aws_iam_policy.read_only.*.policy,
  128. [""]
  129. ),
  130. 0,
  131. )
  132. }
  133. output "iam_policy_read_write_id" {
  134. description = "ID of the read write policy"
  135. value = element(
  136. concat(
  137. aws_iam_policy.read_write.*.id,
  138. [""],
  139. ),
  140. 0,
  141. )
  142. }
  143. output "iam_policy_read_write_arn" {
  144. description = "ARN of the read write policy"
  145. value = element(
  146. concat(
  147. aws_iam_policy.read_write.*.arn,
  148. [""],
  149. ),
  150. 0,
  151. )
  152. }
  153. output "iam_policy_read_write_description" {
  154. description = "The description of the read write policy"
  155. value = element(
  156. concat(
  157. aws_iam_policy.read_write.*.description,
  158. [""]
  159. ),
  160. 0
  161. )
  162. }
  163. output "iam_policy_read_write_name" {
  164. description = "The name of the read write policy"
  165. value = element(
  166. concat(
  167. aws_iam_policy.read_write.*.name,
  168. [""]
  169. ),
  170. 0,
  171. )
  172. }
  173. output "iam_policy_read_write_path" {
  174. description = "Path of the read write policy"
  175. value = element(
  176. concat(
  177. aws_iam_policy.read_write.*.path,
  178. [""],
  179. ),
  180. 0,
  181. )
  182. }
  183. output "iam_policy_read_write_policy" {
  184. description = "The policy document"
  185. value = element(
  186. concat(
  187. aws_iam_policy.read_write.*.policy,
  188. [""],
  189. ),
  190. 0
  191. )
  192. }