terraform.tfstate 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  1. {
  2. "version": 4,
  3. "terraform_version": "1.3.7",
  4. "serial": 77,
  5. "lineage": "7413839f-c67c-02f5-4933-fcb84251bb29",
  6. "outputs": {},
  7. "resources": [
  8. {
  9. "mode": "managed",
  10. "type": "aws_codebuild_project",
  11. "name": "codebuild",
  12. "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
  13. "instances": [
  14. {
  15. "schema_version": 0,
  16. "attributes": {
  17. "arn": "arn:aws:codebuild:ap-northeast-1:259692501178:project/growi-official-image-builder",
  18. "artifacts": [
  19. {
  20. "artifact_identifier": "",
  21. "bucket_owner_access": "",
  22. "encryption_disabled": false,
  23. "location": "",
  24. "name": "",
  25. "namespace_type": "",
  26. "override_artifact_name": false,
  27. "packaging": "",
  28. "path": "",
  29. "type": "NO_ARTIFACTS"
  30. }
  31. ],
  32. "badge_enabled": false,
  33. "badge_url": "",
  34. "build_batch_config": [
  35. {
  36. "combine_artifacts": false,
  37. "restrictions": [
  38. {
  39. "compute_types_allowed": [],
  40. "maximum_builds_allowed": 100
  41. }
  42. ],
  43. "service_role": "arn:aws:iam::259692501178:role/growi-official-image-builder",
  44. "timeout_in_mins": 2160
  45. }
  46. ],
  47. "build_timeout": 60,
  48. "cache": [
  49. {
  50. "location": "",
  51. "modes": [
  52. "LOCAL_DOCKER_LAYER_CACHE",
  53. "LOCAL_CUSTOM_CACHE"
  54. ],
  55. "type": "LOCAL"
  56. }
  57. ],
  58. "concurrent_build_limit": 0,
  59. "description": "The CodeBuild Project for GROWI official docker image",
  60. "encryption_key": "arn:aws:kms:ap-northeast-1:259692501178:alias/aws/s3",
  61. "environment": [
  62. {
  63. "certificate": "",
  64. "compute_type": "BUILD_GENERAL1_LARGE",
  65. "environment_variable": [],
  66. "image": "aws/codebuild/standard:6.0",
  67. "image_pull_credentials_type": "CODEBUILD",
  68. "privileged_mode": true,
  69. "registry_credential": [],
  70. "type": "LINUX_CONTAINER"
  71. }
  72. ],
  73. "file_system_locations": [],
  74. "id": "arn:aws:codebuild:ap-northeast-1:259692501178:project/growi-official-image-builder",
  75. "logs_config": [
  76. {
  77. "cloudwatch_logs": [
  78. {
  79. "group_name": "",
  80. "status": "ENABLED",
  81. "stream_name": ""
  82. }
  83. ],
  84. "s3_logs": [
  85. {
  86. "bucket_owner_access": "",
  87. "encryption_disabled": false,
  88. "location": "",
  89. "status": "DISABLED"
  90. }
  91. ]
  92. }
  93. ],
  94. "name": "growi-official-image-builder",
  95. "project_visibility": "PRIVATE",
  96. "public_project_alias": "",
  97. "queued_timeout": 480,
  98. "resource_access_role": "",
  99. "secondary_artifacts": [],
  100. "secondary_source_version": [],
  101. "secondary_sources": [],
  102. "service_role": "arn:aws:iam::259692501178:role/growi-official-image-builder",
  103. "source": [
  104. {
  105. "auth": [],
  106. "build_status_config": [],
  107. "buildspec": "packages/app/docker/codebuild/buildspec.yml",
  108. "git_clone_depth": 1,
  109. "git_submodules_config": [],
  110. "insecure_ssl": false,
  111. "location": "https://github.com/weseek/growi.git",
  112. "report_build_status": false,
  113. "type": "GITHUB"
  114. }
  115. ],
  116. "source_version": "refs/heads/support/build-with-codebuild",
  117. "tags": {},
  118. "tags_all": {},
  119. "vpc_config": []
  120. },
  121. "sensitive_attributes": [],
  122. "private": "bnVsbA==",
  123. "dependencies": [
  124. "aws_iam_role.iam_role"
  125. ]
  126. }
  127. ]
  128. },
  129. {
  130. "mode": "managed",
  131. "type": "aws_iam_role",
  132. "name": "iam_role",
  133. "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
  134. "instances": [
  135. {
  136. "schema_version": 0,
  137. "attributes": {
  138. "arn": "arn:aws:iam::259692501178:role/growi-official-image-builder",
  139. "assume_role_policy": "{\"Statement\":[{\"Action\":\"sts:AssumeRole\",\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"codebuild.amazonaws.com\"}}],\"Version\":\"2012-10-17\"}",
  140. "create_date": "2023-01-12T20:35:25Z",
  141. "description": "",
  142. "force_detach_policies": false,
  143. "id": "growi-official-image-builder",
  144. "inline_policy": [
  145. {
  146. "name": "terraform-20230112203526188400000001",
  147. "policy": "{\n \"Version\": \"2012-10-17\",\n \"Statement\": [\n {\n \"Effect\": \"Allow\",\n \"Resource\": [\n \"*\"\n ],\n \"Action\": [\n \"logs:CreateLogGroup\",\n \"logs:CreateLogStream\",\n \"logs:PutLogEvents\"\n ]\n },\n {\n \"Effect\": \"Allow\",\n \"Action\": [\n \"s3:*\"\n ],\n \"Resource\": [\n \"arn:aws:s3:::growi-official-image-builder-cache\",\n \"arn:aws:s3:::growi-official-image-builder-cache/*\"\n ]\n },\n {\n \"Effect\": \"Allow\",\n \"Action\": [\n \"secretsmanager:GetResourcePolicy\",\n \"secretsmanager:GetSecretValue\",\n \"secretsmanager:DescribeSecret\",\n \"secretsmanager:ListSecretVersionIds\"\n ],\n \"Resource\": [\n \"arn:aws:secretsmanager:ap-northeast-1:259692501178:secret:growi/official-image-builder-9sraQN\"\n ]\n },\n {\n \"Effect\": \"Allow\",\n \"Action\": [\n \"codebuild:StartBuild\",\n \"codebuild:StopBuild\",\n \"codebuild:RetryBuild\",\n \"codebuild:CreateReportGroup\",\n \"codebuild:CreateReport\",\n \"codebuild:UpdateReport\",\n \"codebuild:BatchPutTestCases\",\n \"codebuild:BatchPutCodeCoverages\"\n ],\n \"Resource\": [\n \"*\"\n ]\n }\n ]\n}\n"
  148. }
  149. ],
  150. "managed_policy_arns": [
  151. "arn:aws:iam::259692501178:policy/service-role/CodeBuildBasePolicy-growi-official-image-builder-ap-northeast-1",
  152. "arn:aws:iam::259692501178:policy/service-role/CodeBuildSecretsManagerPolicy-growi-official-image-builder-ap-northeast-1"
  153. ],
  154. "max_session_duration": 3600,
  155. "name": "growi-official-image-builder",
  156. "name_prefix": "",
  157. "path": "/",
  158. "permissions_boundary": null,
  159. "tags": {},
  160. "tags_all": {},
  161. "unique_id": "AROATY5XBDC5BIKKM3GAO"
  162. },
  163. "sensitive_attributes": [],
  164. "private": "bnVsbA=="
  165. }
  166. ]
  167. },
  168. {
  169. "mode": "managed",
  170. "type": "aws_iam_role_policy",
  171. "name": "growi-official-image-builder",
  172. "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
  173. "instances": [
  174. {
  175. "schema_version": 0,
  176. "attributes": {
  177. "id": "growi-official-image-builder:terraform-20230112203526188400000001",
  178. "name": "terraform-20230112203526188400000001",
  179. "name_prefix": null,
  180. "policy": "{\n \"Version\": \"2012-10-17\",\n \"Statement\": [\n {\n \"Effect\": \"Allow\",\n \"Resource\": [\n \"*\"\n ],\n \"Action\": [\n \"logs:CreateLogGroup\",\n \"logs:CreateLogStream\",\n \"logs:PutLogEvents\"\n ]\n },\n {\n \"Effect\": \"Allow\",\n \"Action\": [\n \"secretsmanager:GetResourcePolicy\",\n \"secretsmanager:GetSecretValue\",\n \"secretsmanager:DescribeSecret\",\n \"secretsmanager:ListSecretVersionIds\"\n ],\n \"Resource\": [\n \"arn:aws:secretsmanager:ap-northeast-1:259692501178:secret:growi/official-image-builder-9sraQN\"\n ]\n },\n {\n \"Effect\": \"Allow\",\n \"Action\": [\n \"codebuild:StartBuild\",\n \"codebuild:StopBuild\",\n \"codebuild:RetryBuild\",\n \"codebuild:CreateReportGroup\",\n \"codebuild:CreateReport\",\n \"codebuild:UpdateReport\",\n \"codebuild:BatchPutTestCases\",\n \"codebuild:BatchPutCodeCoverages\"\n ],\n \"Resource\": [\n \"*\"\n ]\n }\n ]\n}\n",
  181. "role": "growi-official-image-builder"
  182. },
  183. "sensitive_attributes": [],
  184. "private": "bnVsbA==",
  185. "dependencies": [
  186. "aws_iam_role.iam_role",
  187. "aws_secretsmanager_secret.secret"
  188. ]
  189. }
  190. ]
  191. },
  192. {
  193. "mode": "managed",
  194. "type": "aws_secretsmanager_secret",
  195. "name": "secret",
  196. "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
  197. "instances": [
  198. {
  199. "schema_version": 0,
  200. "attributes": {
  201. "arn": "arn:aws:secretsmanager:ap-northeast-1:259692501178:secret:growi/official-image-builder-9sraQN",
  202. "description": "",
  203. "force_overwrite_replica_secret": false,
  204. "id": "arn:aws:secretsmanager:ap-northeast-1:259692501178:secret:growi/official-image-builder-9sraQN",
  205. "kms_key_id": "",
  206. "name": "growi/official-image-builder",
  207. "name_prefix": "",
  208. "policy": "",
  209. "recovery_window_in_days": 30,
  210. "replica": [],
  211. "rotation_enabled": false,
  212. "rotation_lambda_arn": "",
  213. "rotation_rules": [],
  214. "tags": {},
  215. "tags_all": {}
  216. },
  217. "sensitive_attributes": [],
  218. "private": "bnVsbA=="
  219. }
  220. ]
  221. },
  222. {
  223. "mode": "managed",
  224. "type": "aws_secretsmanager_secret_version",
  225. "name": "main",
  226. "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
  227. "instances": [
  228. {
  229. "schema_version": 0,
  230. "attributes": {
  231. "arn": "arn:aws:secretsmanager:ap-northeast-1:259692501178:secret:growi/official-image-builder-9sraQN",
  232. "id": "arn:aws:secretsmanager:ap-northeast-1:259692501178:secret:growi/official-image-builder-9sraQN|032079BF-5A86-42F2-BBA0-CCDCA4F53CBC",
  233. "secret_binary": "",
  234. "secret_id": "arn:aws:secretsmanager:ap-northeast-1:259692501178:secret:growi/official-image-builder-9sraQN",
  235. "secret_string": "CHANGE THIS",
  236. "version_id": "032079BF-5A86-42F2-BBA0-CCDCA4F53CBC",
  237. "version_stages": []
  238. },
  239. "sensitive_attributes": [],
  240. "private": "bnVsbA==",
  241. "dependencies": [
  242. "aws_secretsmanager_secret.secret"
  243. ]
  244. }
  245. ]
  246. }
  247. ],
  248. "check_results": null
  249. }