terraform.tfstate 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425
  1. {
  2. "version": 4,
  3. "terraform_version": "1.3.7",
  4. "serial": 64,
  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. "type": "NO_CACHE"
  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. ]
  123. }
  124. ]
  125. },
  126. {
  127. "mode": "managed",
  128. "type": "aws_iam_role",
  129. "name": "iam_role",
  130. "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
  131. "instances": [
  132. {
  133. "schema_version": 0,
  134. "attributes": {
  135. "arn": "arn:aws:iam::259692501178:role/growi-official-image-builder",
  136. "assume_role_policy": "{\"Statement\":[{\"Action\":\"sts:AssumeRole\",\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"codebuild.amazonaws.com\"}}],\"Version\":\"2012-10-17\"}",
  137. "create_date": "2023-01-12T20:35:25Z",
  138. "description": "",
  139. "force_detach_policies": false,
  140. "id": "growi-official-image-builder",
  141. "inline_policy": [
  142. {
  143. "name": "terraform-20230112203526188400000001",
  144. "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"
  145. }
  146. ],
  147. "managed_policy_arns": [
  148. "arn:aws:iam::259692501178:policy/service-role/CodeBuildBasePolicy-growi-official-image-builder-ap-northeast-1",
  149. "arn:aws:iam::259692501178:policy/service-role/CodeBuildSecretsManagerPolicy-growi-official-image-builder-ap-northeast-1"
  150. ],
  151. "max_session_duration": 3600,
  152. "name": "growi-official-image-builder",
  153. "name_prefix": "",
  154. "path": "/",
  155. "permissions_boundary": null,
  156. "tags": {},
  157. "tags_all": {},
  158. "unique_id": "AROATY5XBDC5BIKKM3GAO"
  159. },
  160. "sensitive_attributes": [],
  161. "private": "bnVsbA=="
  162. }
  163. ]
  164. },
  165. {
  166. "mode": "managed",
  167. "type": "aws_iam_role_policy",
  168. "name": "growi-official-image-builder",
  169. "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
  170. "instances": [
  171. {
  172. "schema_version": 0,
  173. "attributes": {
  174. "id": "growi-official-image-builder:terraform-20230112203526188400000001",
  175. "name": "terraform-20230112203526188400000001",
  176. "name_prefix": null,
  177. "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",
  178. "role": "growi-official-image-builder"
  179. },
  180. "sensitive_attributes": [],
  181. "private": "bnVsbA==",
  182. "dependencies": [
  183. "aws_iam_role.iam_role",
  184. "aws_s3_bucket.s3_bucket",
  185. "aws_secretsmanager_secret.secret"
  186. ]
  187. }
  188. ]
  189. },
  190. {
  191. "mode": "managed",
  192. "type": "aws_s3_bucket",
  193. "name": "s3_bucket",
  194. "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
  195. "instances": [
  196. {
  197. "schema_version": 0,
  198. "attributes": {
  199. "acceleration_status": "",
  200. "acl": null,
  201. "arn": "arn:aws:s3:::growi-official-image-builder-cache",
  202. "bucket": "growi-official-image-builder-cache",
  203. "bucket_domain_name": "growi-official-image-builder-cache.s3.amazonaws.com",
  204. "bucket_prefix": null,
  205. "bucket_regional_domain_name": "growi-official-image-builder-cache.s3.ap-northeast-1.amazonaws.com",
  206. "cors_rule": [],
  207. "force_destroy": false,
  208. "grant": [
  209. {
  210. "id": "16ace6e62ff20a38d91b231ba787c479a9d92a5863a4b9434d692324b9f2d255",
  211. "permissions": [
  212. "FULL_CONTROL"
  213. ],
  214. "type": "CanonicalUser",
  215. "uri": ""
  216. }
  217. ],
  218. "hosted_zone_id": "Z2M4EHUR26P7ZW",
  219. "id": "growi-official-image-builder-cache",
  220. "lifecycle_rule": [
  221. {
  222. "abort_incomplete_multipart_upload_days": 0,
  223. "enabled": true,
  224. "expiration": [
  225. {
  226. "date": "",
  227. "days": 60,
  228. "expired_object_delete_marker": false
  229. }
  230. ],
  231. "id": "auto-expire",
  232. "noncurrent_version_expiration": [
  233. {
  234. "days": 3
  235. }
  236. ],
  237. "noncurrent_version_transition": [],
  238. "prefix": "",
  239. "tags": {},
  240. "transition": []
  241. }
  242. ],
  243. "logging": [],
  244. "object_lock_configuration": [],
  245. "object_lock_enabled": false,
  246. "policy": "",
  247. "region": "ap-northeast-1",
  248. "replication_configuration": [],
  249. "request_payer": "BucketOwner",
  250. "server_side_encryption_configuration": [],
  251. "tags": {},
  252. "tags_all": {},
  253. "timeouts": null,
  254. "versioning": [
  255. {
  256. "enabled": false,
  257. "mfa_delete": false
  258. }
  259. ],
  260. "website": [],
  261. "website_domain": null,
  262. "website_endpoint": null
  263. },
  264. "sensitive_attributes": [],
  265. "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxMjAwMDAwMDAwMDAwLCJkZWxldGUiOjM2MDAwMDAwMDAwMDAsInJlYWQiOjEyMDAwMDAwMDAwMDAsInVwZGF0ZSI6MTIwMDAwMDAwMDAwMH19"
  266. }
  267. ]
  268. },
  269. {
  270. "mode": "managed",
  271. "type": "aws_s3_bucket_acl",
  272. "name": "s3_bucket_acl",
  273. "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
  274. "instances": [
  275. {
  276. "schema_version": 0,
  277. "attributes": {
  278. "access_control_policy": [
  279. {
  280. "grant": [
  281. {
  282. "grantee": [
  283. {
  284. "display_name": "yukiws",
  285. "email_address": "",
  286. "id": "16ace6e62ff20a38d91b231ba787c479a9d92a5863a4b9434d692324b9f2d255",
  287. "type": "CanonicalUser",
  288. "uri": ""
  289. }
  290. ],
  291. "permission": "FULL_CONTROL"
  292. }
  293. ],
  294. "owner": [
  295. {
  296. "display_name": "yukiws",
  297. "id": "16ace6e62ff20a38d91b231ba787c479a9d92a5863a4b9434d692324b9f2d255"
  298. }
  299. ]
  300. }
  301. ],
  302. "acl": "private",
  303. "bucket": "growi-official-image-builder-cache",
  304. "expected_bucket_owner": "",
  305. "id": "growi-official-image-builder-cache,private"
  306. },
  307. "sensitive_attributes": [],
  308. "private": "bnVsbA==",
  309. "dependencies": [
  310. "aws_s3_bucket.s3_bucket"
  311. ]
  312. }
  313. ]
  314. },
  315. {
  316. "mode": "managed",
  317. "type": "aws_s3_bucket_lifecycle_configuration",
  318. "name": "s3_bucket_lifecycle",
  319. "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
  320. "instances": [
  321. {
  322. "schema_version": 0,
  323. "attributes": {
  324. "bucket": "growi-official-image-builder-cache",
  325. "expected_bucket_owner": "",
  326. "id": "growi-official-image-builder-cache",
  327. "rule": [
  328. {
  329. "abort_incomplete_multipart_upload": [],
  330. "expiration": [
  331. {
  332. "date": "",
  333. "days": 60,
  334. "expired_object_delete_marker": false
  335. }
  336. ],
  337. "filter": [
  338. {
  339. "and": [],
  340. "object_size_greater_than": "",
  341. "object_size_less_than": "",
  342. "prefix": "",
  343. "tag": []
  344. }
  345. ],
  346. "id": "auto-expire",
  347. "noncurrent_version_expiration": [
  348. {
  349. "newer_noncurrent_versions": "",
  350. "noncurrent_days": 3
  351. }
  352. ],
  353. "noncurrent_version_transition": [],
  354. "prefix": "",
  355. "status": "Enabled",
  356. "transition": []
  357. }
  358. ]
  359. },
  360. "sensitive_attributes": [],
  361. "private": "bnVsbA==",
  362. "dependencies": [
  363. "aws_s3_bucket.s3_bucket"
  364. ]
  365. }
  366. ]
  367. },
  368. {
  369. "mode": "managed",
  370. "type": "aws_secretsmanager_secret",
  371. "name": "secret",
  372. "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
  373. "instances": [
  374. {
  375. "schema_version": 0,
  376. "attributes": {
  377. "arn": "arn:aws:secretsmanager:ap-northeast-1:259692501178:secret:growi/official-image-builder-9sraQN",
  378. "description": "",
  379. "force_overwrite_replica_secret": false,
  380. "id": "arn:aws:secretsmanager:ap-northeast-1:259692501178:secret:growi/official-image-builder-9sraQN",
  381. "kms_key_id": "",
  382. "name": "growi/official-image-builder",
  383. "name_prefix": "",
  384. "policy": "",
  385. "recovery_window_in_days": 30,
  386. "replica": [],
  387. "rotation_enabled": false,
  388. "rotation_lambda_arn": "",
  389. "rotation_rules": [],
  390. "tags": {},
  391. "tags_all": {}
  392. },
  393. "sensitive_attributes": [],
  394. "private": "bnVsbA=="
  395. }
  396. ]
  397. },
  398. {
  399. "mode": "managed",
  400. "type": "aws_secretsmanager_secret_version",
  401. "name": "main",
  402. "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
  403. "instances": [
  404. {
  405. "schema_version": 0,
  406. "attributes": {
  407. "arn": "arn:aws:secretsmanager:ap-northeast-1:259692501178:secret:growi/official-image-builder-9sraQN",
  408. "id": "arn:aws:secretsmanager:ap-northeast-1:259692501178:secret:growi/official-image-builder-9sraQN|032079BF-5A86-42F2-BBA0-CCDCA4F53CBC",
  409. "secret_binary": "",
  410. "secret_id": "arn:aws:secretsmanager:ap-northeast-1:259692501178:secret:growi/official-image-builder-9sraQN",
  411. "secret_string": "CHANGE THIS",
  412. "version_id": "032079BF-5A86-42F2-BBA0-CCDCA4F53CBC",
  413. "version_stages": []
  414. },
  415. "sensitive_attributes": [],
  416. "private": "bnVsbA==",
  417. "dependencies": [
  418. "aws_secretsmanager_secret.secret"
  419. ]
  420. }
  421. ]
  422. }
  423. ],
  424. "check_results": null
  425. }