Yuki Takei 3 лет назад
Родитель
Сommit
e8295cbf67
2 измененных файлов с 7 добавлено и 6 удалено
  1. 2 2
      packages/app/docker/codebuild/main.tf
  2. 5 4
      packages/app/docker/codebuild/terraform.tfstate

+ 2 - 2
packages/app/docker/codebuild/main.tf

@@ -163,8 +163,8 @@ resource "aws_codebuild_project" "codebuild" {
   source_version = "refs/heads/support/build-with-codebuild"
   source_version = "refs/heads/support/build-with-codebuild"
 
 
   cache {
   cache {
-    type  = "LOCAL"
-    modes = ["LOCAL_DOCKER_LAYER_CACHE", "LOCAL_CUSTOM_CACHE"]
+    type  = "S3"
+    location = "${aws_s3_bucket.s3_bucket.id}"
   }
   }
 
 
 }
 }

+ 5 - 4
packages/app/docker/codebuild/terraform.tfstate

@@ -1,7 +1,7 @@
 {
 {
   "version": 4,
   "version": 4,
   "terraform_version": "1.3.7",
   "terraform_version": "1.3.7",
-  "serial": 64,
+  "serial": 69,
   "lineage": "7413839f-c67c-02f5-4933-fcb84251bb29",
   "lineage": "7413839f-c67c-02f5-4933-fcb84251bb29",
   "outputs": {},
   "outputs": {},
   "resources": [
   "resources": [
@@ -47,9 +47,9 @@
             "build_timeout": 60,
             "build_timeout": 60,
             "cache": [
             "cache": [
               {
               {
-                "location": "",
+                "location": "growi-official-image-builder-cache",
                 "modes": [],
                 "modes": [],
-                "type": "NO_CACHE"
+                "type": "S3"
               }
               }
             ],
             ],
             "concurrent_build_limit": 0,
             "concurrent_build_limit": 0,
@@ -118,7 +118,8 @@
           "sensitive_attributes": [],
           "sensitive_attributes": [],
           "private": "bnVsbA==",
           "private": "bnVsbA==",
           "dependencies": [
           "dependencies": [
-            "aws_iam_role.iam_role"
+            "aws_iam_role.iam_role",
+            "aws_s3_bucket.s3_bucket"
           ]
           ]
         }
         }
       ]
       ]