variables.tf 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. variable "environment" {
  2. description = "A name that identifies the environment, used as prefix and for tagging."
  3. type = string
  4. default = null
  5. validation {
  6. condition = var.environment == null
  7. error_message = "The \"environment\" variable is no longer used. To migrate, set the \"prefix\" variable to the original value of \"environment\" and optionally, add \"Environment\" to the \"tags\" variable map with the same value."
  8. }
  9. }
  10. variable "prefix" {
  11. description = "The prefix used for naming resources"
  12. type = string
  13. default = "github-actions"
  14. }
  15. variable "namespaces" {
  16. description = "The role will be only allowed to create roles, policies and instance profiles in the given namespace / path. All policies in the boundaries namespace cannot be modified by this role."
  17. type = object({
  18. boundary_namespace = string
  19. role_namespace = string
  20. policy_namespace = string
  21. instance_profile_namespace = string
  22. })
  23. }
  24. variable "account_id" {
  25. description = "The module allows to switch to the created role from the provided account id."
  26. type = string
  27. }
  28. variable "aws_partition" {
  29. description = "(optional) partition in the arn namespace if not aws"
  30. type = string
  31. default = "aws"
  32. }