repos.tf 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. module "codebuild-rhel7" {
  2. source = "../../submodules/codebuild/codebuild-ecr-image"
  3. name = "codebuild-rhel7"
  4. github_clone_url = "https://github.xdr.accenturefederalcyber.com/mdr-engineering/mdr-codebuild-images.git"
  5. source_version = "master"
  6. standard_tags = local.standard_tags
  7. tags = var.tags
  8. codebuild_assume_role_arn = aws_iam_role.codebuild_role.arn
  9. schedule_expression = "cron(05 16 * * ? *)"
  10. env_vars = {
  11. "IMAGE_REPO_NAME" = {
  12. value = "codebuild-rhel7"
  13. }
  14. "IMAGE_TAG" = {
  15. value = "latest"
  16. }
  17. "AWS_ACCOUNT_ID" = {
  18. value = var.aws_account_id
  19. }
  20. "DOCKERBUILDPATH" = {
  21. value = "rhel7"
  22. }
  23. }
  24. }
  25. module "codebuild-rhel8" {
  26. source = "../../submodules/codebuild/codebuild-ecr-image"
  27. name = "codebuild-rhel8"
  28. github_clone_url = "https://github.xdr.accenturefederalcyber.com/mdr-engineering/mdr-codebuild-images.git"
  29. source_version = "master"
  30. standard_tags = local.standard_tags
  31. tags = var.tags
  32. codebuild_assume_role_arn = aws_iam_role.codebuild_role.arn
  33. schedule_expression = "cron(05 16 * * ? *)"
  34. env_vars = {
  35. "IMAGE_REPO_NAME" = {
  36. value = "codebuild-rhel8"
  37. }
  38. "IMAGE_TAG" = {
  39. value = "latest"
  40. }
  41. "AWS_ACCOUNT_ID" = {
  42. value = var.aws_account_id
  43. }
  44. "DOCKERBUILDPATH" = {
  45. value = "rhel8"
  46. }
  47. }
  48. }
  49. module "codebuild-rhel9beta" {
  50. source = "../../submodules/codebuild/codebuild-ecr-image"
  51. name = "codebuild-rhel9beta"
  52. github_clone_url = "https://github.xdr.accenturefederalcyber.com/mdr-engineering/mdr-codebuild-images.git"
  53. source_version = "master"
  54. standard_tags = local.standard_tags
  55. tags = var.tags
  56. codebuild_assume_role_arn = aws_iam_role.codebuild_role.arn
  57. schedule_expression = "cron(05 16 * * ? *)"
  58. env_vars = {
  59. "IMAGE_REPO_NAME" = {
  60. value = "codebuild-rhel9beta"
  61. }
  62. "IMAGE_TAG" = {
  63. value = "latest"
  64. }
  65. "AWS_ACCOUNT_ID" = {
  66. value = var.aws_account_id
  67. }
  68. "DOCKERBUILDPATH" = {
  69. value = "rhel9-beta"
  70. }
  71. }
  72. }