terraform.tfstate 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469
  1. {
  2. "version": 4,
  3. "terraform_version": "1.3.7",
  4. "serial": 137,
  5. "lineage": "7413839f-c67c-02f5-4933-fcb84251bb29",
  6. "outputs": {},
  7. "resources": [
  8. {
  9. "module": "module.codebuild",
  10. "mode": "data",
  11. "type": "aws_caller_identity",
  12. "name": "default",
  13. "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
  14. "instances": [
  15. {
  16. "schema_version": 0,
  17. "attributes": {
  18. "account_id": "259692501178",
  19. "arn": "arn:aws:iam::259692501178:user/yuki",
  20. "id": "259692501178",
  21. "user_id": "AIDAI6K42G2YZESELYLD4"
  22. },
  23. "sensitive_attributes": []
  24. }
  25. ]
  26. },
  27. {
  28. "module": "module.codebuild",
  29. "mode": "data",
  30. "type": "aws_iam_policy_document",
  31. "name": "combined_permissions",
  32. "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
  33. "instances": [
  34. {
  35. "schema_version": 0,
  36. "attributes": {
  37. "id": "1570789323",
  38. "json": "{\n \"Version\": \"2012-10-17\",\n \"Statement\": [\n {\n \"Sid\": \"\",\n \"Effect\": \"Allow\",\n \"Action\": [\n \"ssm:GetParameters\",\n \"secretsmanager:GetSecretValue\",\n \"logs:PutLogEvents\",\n \"logs:CreateLogStream\",\n \"logs:CreateLogGroup\",\n \"iam:PassRole\",\n \"ecs:RunTask\",\n \"ecr:UploadLayerPart\",\n \"ecr:PutImage\",\n \"ecr:InitiateLayerUpload\",\n \"ecr:GetAuthorizationToken\",\n \"ecr:CompleteLayerUpload\",\n \"ecr:BatchCheckLayerAvailability\",\n \"codecommit:GitPull\"\n ],\n \"Resource\": \"*\"\n }\n ]\n}",
  39. "override_json": null,
  40. "override_policy_documents": [
  41. "{\n \"Version\": \"2012-10-17\",\n \"Statement\": [\n {\n \"Sid\": \"\",\n \"Effect\": \"Allow\",\n \"Action\": [\n \"ssm:GetParameters\",\n \"secretsmanager:GetSecretValue\",\n \"logs:PutLogEvents\",\n \"logs:CreateLogStream\",\n \"logs:CreateLogGroup\",\n \"iam:PassRole\",\n \"ecs:RunTask\",\n \"ecr:UploadLayerPart\",\n \"ecr:PutImage\",\n \"ecr:InitiateLayerUpload\",\n \"ecr:GetAuthorizationToken\",\n \"ecr:CompleteLayerUpload\",\n \"ecr:BatchCheckLayerAvailability\",\n \"codecommit:GitPull\"\n ],\n \"Resource\": \"*\"\n }\n ]\n}"
  42. ],
  43. "policy_id": null,
  44. "source_json": null,
  45. "source_policy_documents": null,
  46. "statement": null,
  47. "version": "2012-10-17"
  48. },
  49. "sensitive_attributes": []
  50. }
  51. ]
  52. },
  53. {
  54. "module": "module.codebuild",
  55. "mode": "data",
  56. "type": "aws_iam_policy_document",
  57. "name": "permissions",
  58. "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
  59. "instances": [
  60. {
  61. "index_key": 0,
  62. "schema_version": 0,
  63. "attributes": {
  64. "id": "1570789323",
  65. "json": "{\n \"Version\": \"2012-10-17\",\n \"Statement\": [\n {\n \"Sid\": \"\",\n \"Effect\": \"Allow\",\n \"Action\": [\n \"ssm:GetParameters\",\n \"secretsmanager:GetSecretValue\",\n \"logs:PutLogEvents\",\n \"logs:CreateLogStream\",\n \"logs:CreateLogGroup\",\n \"iam:PassRole\",\n \"ecs:RunTask\",\n \"ecr:UploadLayerPart\",\n \"ecr:PutImage\",\n \"ecr:InitiateLayerUpload\",\n \"ecr:GetAuthorizationToken\",\n \"ecr:CompleteLayerUpload\",\n \"ecr:BatchCheckLayerAvailability\",\n \"codecommit:GitPull\"\n ],\n \"Resource\": \"*\"\n }\n ]\n}",
  66. "override_json": null,
  67. "override_policy_documents": null,
  68. "policy_id": null,
  69. "source_json": null,
  70. "source_policy_documents": null,
  71. "statement": [
  72. {
  73. "actions": [
  74. "codecommit:GitPull",
  75. "ecr:BatchCheckLayerAvailability",
  76. "ecr:CompleteLayerUpload",
  77. "ecr:GetAuthorizationToken",
  78. "ecr:InitiateLayerUpload",
  79. "ecr:PutImage",
  80. "ecr:UploadLayerPart",
  81. "ecs:RunTask",
  82. "iam:PassRole",
  83. "logs:CreateLogGroup",
  84. "logs:CreateLogStream",
  85. "logs:PutLogEvents",
  86. "secretsmanager:GetSecretValue",
  87. "ssm:GetParameters"
  88. ],
  89. "condition": [],
  90. "effect": "Allow",
  91. "not_actions": [],
  92. "not_principals": [],
  93. "not_resources": [],
  94. "principals": [],
  95. "resources": [
  96. "*"
  97. ],
  98. "sid": ""
  99. }
  100. ],
  101. "version": "2012-10-17"
  102. },
  103. "sensitive_attributes": []
  104. }
  105. ]
  106. },
  107. {
  108. "module": "module.codebuild",
  109. "mode": "data",
  110. "type": "aws_iam_policy_document",
  111. "name": "role",
  112. "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
  113. "instances": [
  114. {
  115. "schema_version": 0,
  116. "attributes": {
  117. "id": "442947395",
  118. "json": "{\n \"Version\": \"2012-10-17\",\n \"Statement\": [\n {\n \"Sid\": \"\",\n \"Effect\": \"Allow\",\n \"Action\": \"sts:AssumeRole\",\n \"Principal\": {\n \"Service\": \"codebuild.amazonaws.com\"\n }\n }\n ]\n}",
  119. "override_json": null,
  120. "override_policy_documents": null,
  121. "policy_id": null,
  122. "source_json": null,
  123. "source_policy_documents": null,
  124. "statement": [
  125. {
  126. "actions": [
  127. "sts:AssumeRole"
  128. ],
  129. "condition": [],
  130. "effect": "Allow",
  131. "not_actions": [],
  132. "not_principals": [],
  133. "not_resources": [],
  134. "principals": [
  135. {
  136. "identifiers": [
  137. "codebuild.amazonaws.com"
  138. ],
  139. "type": "Service"
  140. }
  141. ],
  142. "resources": [],
  143. "sid": ""
  144. }
  145. ],
  146. "version": "2012-10-17"
  147. },
  148. "sensitive_attributes": []
  149. }
  150. ]
  151. },
  152. {
  153. "module": "module.codebuild",
  154. "mode": "data",
  155. "type": "aws_region",
  156. "name": "default",
  157. "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
  158. "instances": [
  159. {
  160. "schema_version": 0,
  161. "attributes": {
  162. "description": "Asia Pacific (Tokyo)",
  163. "endpoint": "ec2.ap-northeast-1.amazonaws.com",
  164. "id": "ap-northeast-1",
  165. "name": "ap-northeast-1"
  166. },
  167. "sensitive_attributes": []
  168. }
  169. ]
  170. },
  171. {
  172. "module": "module.codebuild",
  173. "mode": "managed",
  174. "type": "aws_codebuild_project",
  175. "name": "default",
  176. "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
  177. "instances": [
  178. {
  179. "index_key": 0,
  180. "schema_version": 0,
  181. "attributes": {
  182. "arn": "arn:aws:codebuild:ap-northeast-1:259692501178:project/growi-official-image-builder",
  183. "artifacts": [
  184. {
  185. "artifact_identifier": "",
  186. "bucket_owner_access": "",
  187. "encryption_disabled": false,
  188. "location": "",
  189. "name": "",
  190. "namespace_type": "",
  191. "override_artifact_name": false,
  192. "packaging": "",
  193. "path": "",
  194. "type": "NO_ARTIFACTS"
  195. }
  196. ],
  197. "badge_enabled": false,
  198. "badge_url": "",
  199. "build_batch_config": [
  200. {
  201. "combine_artifacts": false,
  202. "restrictions": [
  203. {
  204. "compute_types_allowed": [],
  205. "maximum_builds_allowed": 100
  206. }
  207. ],
  208. "service_role": "arn:aws:iam::259692501178:role/growi-official-image-builder",
  209. "timeout_in_mins": 2160
  210. }
  211. ],
  212. "build_timeout": 60,
  213. "cache": [
  214. {
  215. "location": "",
  216. "modes": [
  217. "LOCAL_DOCKER_LAYER_CACHE",
  218. "LOCAL_CUSTOM_CACHE"
  219. ],
  220. "type": "LOCAL"
  221. }
  222. ],
  223. "concurrent_build_limit": 0,
  224. "description": "The CodeBuild Project for GROWI official docker image",
  225. "encryption_key": "arn:aws:kms:ap-northeast-1:259692501178:alias/aws/s3",
  226. "environment": [
  227. {
  228. "certificate": "",
  229. "compute_type": "BUILD_GENERAL1_LARGE",
  230. "environment_variable": [
  231. {
  232. "name": "AWS_REGION",
  233. "type": "PLAINTEXT",
  234. "value": "ap-northeast-1"
  235. },
  236. {
  237. "name": "AWS_ACCOUNT_ID",
  238. "type": "PLAINTEXT",
  239. "value": "259692501178"
  240. },
  241. {
  242. "name": "IMAGE_REPO_NAME",
  243. "type": "PLAINTEXT",
  244. "value": "UNSET"
  245. },
  246. {
  247. "name": "IMAGE_TAG",
  248. "type": "PLAINTEXT",
  249. "value": "latest"
  250. },
  251. {
  252. "name": "NO_ADDITIONAL_BUILD_VARS",
  253. "type": "PLAINTEXT",
  254. "value": "TRUE"
  255. }
  256. ],
  257. "image": "aws/codebuild/standard:6.0",
  258. "image_pull_credentials_type": "CODEBUILD",
  259. "privileged_mode": true,
  260. "registry_credential": [],
  261. "type": "LINUX_CONTAINER"
  262. }
  263. ],
  264. "file_system_locations": [],
  265. "id": "arn:aws:codebuild:ap-northeast-1:259692501178:project/growi-official-image-builder",
  266. "logs_config": [
  267. {
  268. "cloudwatch_logs": [
  269. {
  270. "group_name": "",
  271. "status": "ENABLED",
  272. "stream_name": ""
  273. }
  274. ],
  275. "s3_logs": [
  276. {
  277. "bucket_owner_access": "",
  278. "encryption_disabled": false,
  279. "location": "",
  280. "status": "DISABLED"
  281. }
  282. ]
  283. }
  284. ],
  285. "name": "growi-official-image-builder",
  286. "project_visibility": "PRIVATE",
  287. "public_project_alias": "",
  288. "queued_timeout": 480,
  289. "resource_access_role": "",
  290. "secondary_artifacts": [],
  291. "secondary_source_version": [],
  292. "secondary_sources": [],
  293. "service_role": "arn:aws:iam::259692501178:role/growi-official-image-builder",
  294. "source": [
  295. {
  296. "auth": [],
  297. "build_status_config": [],
  298. "buildspec": "packages/app/docker/codebuild/buildspec/root.yml",
  299. "git_clone_depth": 1,
  300. "git_submodules_config": [],
  301. "insecure_ssl": false,
  302. "location": "https://github.com/weseek/growi.git",
  303. "report_build_status": false,
  304. "type": "GITHUB"
  305. }
  306. ],
  307. "source_version": "refs/heads/support/build-with-codebuild",
  308. "tags": {
  309. "Name": "growi-official-image-builder"
  310. },
  311. "tags_all": {
  312. "Name": "growi-official-image-builder"
  313. },
  314. "vpc_config": []
  315. },
  316. "sensitive_attributes": [],
  317. "private": "bnVsbA==",
  318. "dependencies": [
  319. "module.codebuild.aws_codebuild_source_credential.authorization",
  320. "module.codebuild.aws_iam_role.default",
  321. "module.codebuild.aws_s3_bucket.cache_bucket",
  322. "module.codebuild.data.aws_caller_identity.default",
  323. "module.codebuild.data.aws_region.default"
  324. ]
  325. }
  326. ]
  327. },
  328. {
  329. "module": "module.codebuild",
  330. "mode": "managed",
  331. "type": "aws_iam_policy",
  332. "name": "default",
  333. "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
  334. "instances": [
  335. {
  336. "index_key": 0,
  337. "schema_version": 0,
  338. "attributes": {
  339. "arn": "arn:aws:iam::259692501178:policy/service-role/growi-official-image-builder",
  340. "description": "",
  341. "id": "arn:aws:iam::259692501178:policy/service-role/growi-official-image-builder",
  342. "name": "growi-official-image-builder",
  343. "name_prefix": null,
  344. "path": "/service-role/",
  345. "policy": "{\"Statement\":[{\"Action\":[\"ssm:GetParameters\",\"secretsmanager:GetSecretValue\",\"logs:PutLogEvents\",\"logs:CreateLogStream\",\"logs:CreateLogGroup\",\"iam:PassRole\",\"ecs:RunTask\",\"ecr:UploadLayerPart\",\"ecr:PutImage\",\"ecr:InitiateLayerUpload\",\"ecr:GetAuthorizationToken\",\"ecr:CompleteLayerUpload\",\"ecr:BatchCheckLayerAvailability\",\"codecommit:GitPull\"],\"Effect\":\"Allow\",\"Resource\":\"*\",\"Sid\":\"\"}],\"Version\":\"2012-10-17\"}",
  346. "policy_id": "ANPATY5XBDC5HSN3IY7CW",
  347. "tags": {
  348. "Name": "growi-official-image-builder"
  349. },
  350. "tags_all": {
  351. "Name": "growi-official-image-builder"
  352. }
  353. },
  354. "sensitive_attributes": [],
  355. "private": "bnVsbA==",
  356. "dependencies": [
  357. "module.codebuild.data.aws_iam_policy_document.combined_permissions",
  358. "module.codebuild.data.aws_iam_policy_document.permissions",
  359. "module.codebuild.data.aws_iam_policy_document.vpc_permissions",
  360. "module.codebuild.data.aws_s3_bucket.secondary_artifact"
  361. ]
  362. }
  363. ]
  364. },
  365. {
  366. "module": "module.codebuild",
  367. "mode": "managed",
  368. "type": "aws_iam_role",
  369. "name": "default",
  370. "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
  371. "instances": [
  372. {
  373. "index_key": 0,
  374. "schema_version": 0,
  375. "attributes": {
  376. "arn": "arn:aws:iam::259692501178:role/growi-official-image-builder",
  377. "assume_role_policy": "{\"Statement\":[{\"Action\":\"sts:AssumeRole\",\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"codebuild.amazonaws.com\"},\"Sid\":\"\"}],\"Version\":\"2012-10-17\"}",
  378. "create_date": "2023-01-16T09:02:08Z",
  379. "description": "",
  380. "force_detach_policies": true,
  381. "id": "growi-official-image-builder",
  382. "inline_policy": [],
  383. "managed_policy_arns": [
  384. "arn:aws:iam::259692501178:policy/service-role/CodeBuildBuildBatchPolicy-growi-official-image-builder-ap-northeast-1-growi-official-image-builder",
  385. "arn:aws:iam::259692501178:policy/service-role/growi-official-image-builder"
  386. ],
  387. "max_session_duration": 3600,
  388. "name": "growi-official-image-builder",
  389. "name_prefix": "",
  390. "path": "/",
  391. "permissions_boundary": null,
  392. "tags": {
  393. "Name": "growi-official-image-builder"
  394. },
  395. "tags_all": {
  396. "Name": "growi-official-image-builder"
  397. },
  398. "unique_id": "AROATY5XBDC5EIUMPRJKC"
  399. },
  400. "sensitive_attributes": [],
  401. "private": "bnVsbA==",
  402. "dependencies": [
  403. "module.codebuild.data.aws_iam_policy_document.role"
  404. ]
  405. }
  406. ]
  407. },
  408. {
  409. "module": "module.codebuild",
  410. "mode": "managed",
  411. "type": "aws_iam_role_policy_attachment",
  412. "name": "default",
  413. "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
  414. "instances": [
  415. {
  416. "index_key": 0,
  417. "schema_version": 0,
  418. "attributes": {
  419. "id": "growi-official-image-builder-20230116090200654500000001",
  420. "policy_arn": "arn:aws:iam::259692501178:policy/service-role/growi-official-image-builder",
  421. "role": "growi-official-image-builder"
  422. },
  423. "sensitive_attributes": [],
  424. "private": "bnVsbA==",
  425. "dependencies": [
  426. "module.codebuild.aws_iam_policy.default",
  427. "module.codebuild.aws_iam_role.default",
  428. "module.codebuild.data.aws_iam_policy_document.combined_permissions",
  429. "module.codebuild.data.aws_iam_policy_document.permissions",
  430. "module.codebuild.data.aws_iam_policy_document.role",
  431. "module.codebuild.data.aws_iam_policy_document.vpc_permissions",
  432. "module.codebuild.data.aws_s3_bucket.secondary_artifact"
  433. ]
  434. }
  435. ]
  436. },
  437. {
  438. "module": "module.codebuild",
  439. "mode": "managed",
  440. "type": "random_string",
  441. "name": "bucket_prefix",
  442. "provider": "provider[\"registry.terraform.io/hashicorp/random\"]",
  443. "instances": [
  444. {
  445. "index_key": 0,
  446. "schema_version": 2,
  447. "attributes": {
  448. "id": "vpkowftojwbb",
  449. "keepers": null,
  450. "length": 12,
  451. "lower": true,
  452. "min_lower": 0,
  453. "min_numeric": 0,
  454. "min_special": 0,
  455. "min_upper": 0,
  456. "number": false,
  457. "numeric": false,
  458. "override_special": null,
  459. "result": "vpkowftojwbb",
  460. "special": false,
  461. "upper": false
  462. },
  463. "sensitive_attributes": []
  464. }
  465. ]
  466. }
  467. ],
  468. "check_results": null
  469. }