terraform.tfstate 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426
  1. {
  2. "version": 4,
  3. "terraform_version": "1.3.7",
  4. "serial": 69,
  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": "growi-official-image-builder-cache",
  51. "modes": [],
  52. "type": "S3"
  53. }
  54. ],
  55. "concurrent_build_limit": 0,
  56. "description": "The CodeBuild Project for GROWI official docker image",
  57. "encryption_key": "arn:aws:kms:ap-northeast-1:259692501178:alias/aws/s3",
  58. "environment": [
  59. {
  60. "certificate": "",
  61. "compute_type": "BUILD_GENERAL1_LARGE",
  62. "environment_variable": [],
  63. "image": "aws/codebuild/standard:6.0",
  64. "image_pull_credentials_type": "CODEBUILD",
  65. "privileged_mode": true,
  66. "registry_credential": [],
  67. "type": "LINUX_CONTAINER"
  68. }
  69. ],
  70. "file_system_locations": [],
  71. "id": "arn:aws:codebuild:ap-northeast-1:259692501178:project/growi-official-image-builder",
  72. "logs_config": [
  73. {
  74. "cloudwatch_logs": [
  75. {
  76. "group_name": "",
  77. "status": "ENABLED",
  78. "stream_name": ""
  79. }
  80. ],
  81. "s3_logs": [
  82. {
  83. "bucket_owner_access": "",
  84. "encryption_disabled": false,
  85. "location": "",
  86. "status": "DISABLED"
  87. }
  88. ]
  89. }
  90. ],
  91. "name": "growi-official-image-builder",
  92. "project_visibility": "PRIVATE",
  93. "public_project_alias": "",
  94. "queued_timeout": 480,
  95. "resource_access_role": "",
  96. "secondary_artifacts": [],
  97. "secondary_source_version": [],
  98. "secondary_sources": [],
  99. "service_role": "arn:aws:iam::259692501178:role/growi-official-image-builder",
  100. "source": [
  101. {
  102. "auth": [],
  103. "build_status_config": [],
  104. "buildspec": "packages/app/docker/codebuild/buildspec.yml",
  105. "git_clone_depth": 1,
  106. "git_submodules_config": [],
  107. "insecure_ssl": false,
  108. "location": "https://github.com/weseek/growi.git",
  109. "report_build_status": false,
  110. "type": "GITHUB"
  111. }
  112. ],
  113. "source_version": "refs/heads/support/build-with-codebuild",
  114. "tags": {},
  115. "tags_all": {},
  116. "vpc_config": []
  117. },
  118. "sensitive_attributes": [],
  119. "private": "bnVsbA==",
  120. "dependencies": [
  121. "aws_iam_role.iam_role",
  122. "aws_s3_bucket.s3_bucket"
  123. ]
  124. }
  125. ]
  126. },
  127. {
  128. "mode": "managed",
  129. "type": "aws_iam_role",
  130. "name": "iam_role",
  131. "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
  132. "instances": [
  133. {
  134. "schema_version": 0,
  135. "attributes": {
  136. "arn": "arn:aws:iam::259692501178:role/growi-official-image-builder",
  137. "assume_role_policy": "{\"Statement\":[{\"Action\":\"sts:AssumeRole\",\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"codebuild.amazonaws.com\"}}],\"Version\":\"2012-10-17\"}",
  138. "create_date": "2023-01-12T20:35:25Z",
  139. "description": "",
  140. "force_detach_policies": false,
  141. "id": "growi-official-image-builder",
  142. "inline_policy": [
  143. {
  144. "name": "terraform-20230112203526188400000001",
  145. "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"
  146. }
  147. ],
  148. "managed_policy_arns": [
  149. "arn:aws:iam::259692501178:policy/service-role/CodeBuildBasePolicy-growi-official-image-builder-ap-northeast-1",
  150. "arn:aws:iam::259692501178:policy/service-role/CodeBuildSecretsManagerPolicy-growi-official-image-builder-ap-northeast-1"
  151. ],
  152. "max_session_duration": 3600,
  153. "name": "growi-official-image-builder",
  154. "name_prefix": "",
  155. "path": "/",
  156. "permissions_boundary": null,
  157. "tags": {},
  158. "tags_all": {},
  159. "unique_id": "AROATY5XBDC5BIKKM3GAO"
  160. },
  161. "sensitive_attributes": [],
  162. "private": "bnVsbA=="
  163. }
  164. ]
  165. },
  166. {
  167. "mode": "managed",
  168. "type": "aws_iam_role_policy",
  169. "name": "growi-official-image-builder",
  170. "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
  171. "instances": [
  172. {
  173. "schema_version": 0,
  174. "attributes": {
  175. "id": "growi-official-image-builder:terraform-20230112203526188400000001",
  176. "name": "terraform-20230112203526188400000001",
  177. "name_prefix": null,
  178. "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",
  179. "role": "growi-official-image-builder"
  180. },
  181. "sensitive_attributes": [],
  182. "private": "bnVsbA==",
  183. "dependencies": [
  184. "aws_iam_role.iam_role",
  185. "aws_s3_bucket.s3_bucket",
  186. "aws_secretsmanager_secret.secret"
  187. ]
  188. }
  189. ]
  190. },
  191. {
  192. "mode": "managed",
  193. "type": "aws_s3_bucket",
  194. "name": "s3_bucket",
  195. "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
  196. "instances": [
  197. {
  198. "schema_version": 0,
  199. "attributes": {
  200. "acceleration_status": "",
  201. "acl": null,
  202. "arn": "arn:aws:s3:::growi-official-image-builder-cache",
  203. "bucket": "growi-official-image-builder-cache",
  204. "bucket_domain_name": "growi-official-image-builder-cache.s3.amazonaws.com",
  205. "bucket_prefix": null,
  206. "bucket_regional_domain_name": "growi-official-image-builder-cache.s3.ap-northeast-1.amazonaws.com",
  207. "cors_rule": [],
  208. "force_destroy": false,
  209. "grant": [
  210. {
  211. "id": "16ace6e62ff20a38d91b231ba787c479a9d92a5863a4b9434d692324b9f2d255",
  212. "permissions": [
  213. "FULL_CONTROL"
  214. ],
  215. "type": "CanonicalUser",
  216. "uri": ""
  217. }
  218. ],
  219. "hosted_zone_id": "Z2M4EHUR26P7ZW",
  220. "id": "growi-official-image-builder-cache",
  221. "lifecycle_rule": [
  222. {
  223. "abort_incomplete_multipart_upload_days": 0,
  224. "enabled": true,
  225. "expiration": [
  226. {
  227. "date": "",
  228. "days": 60,
  229. "expired_object_delete_marker": false
  230. }
  231. ],
  232. "id": "auto-expire",
  233. "noncurrent_version_expiration": [
  234. {
  235. "days": 3
  236. }
  237. ],
  238. "noncurrent_version_transition": [],
  239. "prefix": "",
  240. "tags": {},
  241. "transition": []
  242. }
  243. ],
  244. "logging": [],
  245. "object_lock_configuration": [],
  246. "object_lock_enabled": false,
  247. "policy": "",
  248. "region": "ap-northeast-1",
  249. "replication_configuration": [],
  250. "request_payer": "BucketOwner",
  251. "server_side_encryption_configuration": [],
  252. "tags": {},
  253. "tags_all": {},
  254. "timeouts": null,
  255. "versioning": [
  256. {
  257. "enabled": false,
  258. "mfa_delete": false
  259. }
  260. ],
  261. "website": [],
  262. "website_domain": null,
  263. "website_endpoint": null
  264. },
  265. "sensitive_attributes": [],
  266. "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxMjAwMDAwMDAwMDAwLCJkZWxldGUiOjM2MDAwMDAwMDAwMDAsInJlYWQiOjEyMDAwMDAwMDAwMDAsInVwZGF0ZSI6MTIwMDAwMDAwMDAwMH19"
  267. }
  268. ]
  269. },
  270. {
  271. "mode": "managed",
  272. "type": "aws_s3_bucket_acl",
  273. "name": "s3_bucket_acl",
  274. "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
  275. "instances": [
  276. {
  277. "schema_version": 0,
  278. "attributes": {
  279. "access_control_policy": [
  280. {
  281. "grant": [
  282. {
  283. "grantee": [
  284. {
  285. "display_name": "yukiws",
  286. "email_address": "",
  287. "id": "16ace6e62ff20a38d91b231ba787c479a9d92a5863a4b9434d692324b9f2d255",
  288. "type": "CanonicalUser",
  289. "uri": ""
  290. }
  291. ],
  292. "permission": "FULL_CONTROL"
  293. }
  294. ],
  295. "owner": [
  296. {
  297. "display_name": "yukiws",
  298. "id": "16ace6e62ff20a38d91b231ba787c479a9d92a5863a4b9434d692324b9f2d255"
  299. }
  300. ]
  301. }
  302. ],
  303. "acl": "private",
  304. "bucket": "growi-official-image-builder-cache",
  305. "expected_bucket_owner": "",
  306. "id": "growi-official-image-builder-cache,private"
  307. },
  308. "sensitive_attributes": [],
  309. "private": "bnVsbA==",
  310. "dependencies": [
  311. "aws_s3_bucket.s3_bucket"
  312. ]
  313. }
  314. ]
  315. },
  316. {
  317. "mode": "managed",
  318. "type": "aws_s3_bucket_lifecycle_configuration",
  319. "name": "s3_bucket_lifecycle",
  320. "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
  321. "instances": [
  322. {
  323. "schema_version": 0,
  324. "attributes": {
  325. "bucket": "growi-official-image-builder-cache",
  326. "expected_bucket_owner": "",
  327. "id": "growi-official-image-builder-cache",
  328. "rule": [
  329. {
  330. "abort_incomplete_multipart_upload": [],
  331. "expiration": [
  332. {
  333. "date": "",
  334. "days": 60,
  335. "expired_object_delete_marker": false
  336. }
  337. ],
  338. "filter": [
  339. {
  340. "and": [],
  341. "object_size_greater_than": "",
  342. "object_size_less_than": "",
  343. "prefix": "",
  344. "tag": []
  345. }
  346. ],
  347. "id": "auto-expire",
  348. "noncurrent_version_expiration": [
  349. {
  350. "newer_noncurrent_versions": "",
  351. "noncurrent_days": 3
  352. }
  353. ],
  354. "noncurrent_version_transition": [],
  355. "prefix": "",
  356. "status": "Enabled",
  357. "transition": []
  358. }
  359. ]
  360. },
  361. "sensitive_attributes": [],
  362. "private": "bnVsbA==",
  363. "dependencies": [
  364. "aws_s3_bucket.s3_bucket"
  365. ]
  366. }
  367. ]
  368. },
  369. {
  370. "mode": "managed",
  371. "type": "aws_secretsmanager_secret",
  372. "name": "secret",
  373. "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
  374. "instances": [
  375. {
  376. "schema_version": 0,
  377. "attributes": {
  378. "arn": "arn:aws:secretsmanager:ap-northeast-1:259692501178:secret:growi/official-image-builder-9sraQN",
  379. "description": "",
  380. "force_overwrite_replica_secret": false,
  381. "id": "arn:aws:secretsmanager:ap-northeast-1:259692501178:secret:growi/official-image-builder-9sraQN",
  382. "kms_key_id": "",
  383. "name": "growi/official-image-builder",
  384. "name_prefix": "",
  385. "policy": "",
  386. "recovery_window_in_days": 30,
  387. "replica": [],
  388. "rotation_enabled": false,
  389. "rotation_lambda_arn": "",
  390. "rotation_rules": [],
  391. "tags": {},
  392. "tags_all": {}
  393. },
  394. "sensitive_attributes": [],
  395. "private": "bnVsbA=="
  396. }
  397. ]
  398. },
  399. {
  400. "mode": "managed",
  401. "type": "aws_secretsmanager_secret_version",
  402. "name": "main",
  403. "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
  404. "instances": [
  405. {
  406. "schema_version": 0,
  407. "attributes": {
  408. "arn": "arn:aws:secretsmanager:ap-northeast-1:259692501178:secret:growi/official-image-builder-9sraQN",
  409. "id": "arn:aws:secretsmanager:ap-northeast-1:259692501178:secret:growi/official-image-builder-9sraQN|032079BF-5A86-42F2-BBA0-CCDCA4F53CBC",
  410. "secret_binary": "",
  411. "secret_id": "arn:aws:secretsmanager:ap-northeast-1:259692501178:secret:growi/official-image-builder-9sraQN",
  412. "secret_string": "CHANGE THIS",
  413. "version_id": "032079BF-5A86-42F2-BBA0-CCDCA4F53CBC",
  414. "version_stages": []
  415. },
  416. "sensitive_attributes": [],
  417. "private": "bnVsbA==",
  418. "dependencies": [
  419. "aws_secretsmanager_secret.secret"
  420. ]
  421. }
  422. ]
  423. }
  424. ],
  425. "check_results": null
  426. }