terraform.tfstate 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352
  1. {
  2. "version": 4,
  3. "terraform_version": "1.3.7",
  4. "serial": 61,
  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. "logging": [],
  222. "object_lock_configuration": [],
  223. "object_lock_enabled": false,
  224. "policy": "",
  225. "region": "ap-northeast-1",
  226. "replication_configuration": [],
  227. "request_payer": "BucketOwner",
  228. "server_side_encryption_configuration": [],
  229. "tags": {},
  230. "tags_all": {},
  231. "timeouts": null,
  232. "versioning": [
  233. {
  234. "enabled": false,
  235. "mfa_delete": false
  236. }
  237. ],
  238. "website": [],
  239. "website_domain": null,
  240. "website_endpoint": null
  241. },
  242. "sensitive_attributes": [],
  243. "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxMjAwMDAwMDAwMDAwLCJkZWxldGUiOjM2MDAwMDAwMDAwMDAsInJlYWQiOjEyMDAwMDAwMDAwMDAsInVwZGF0ZSI6MTIwMDAwMDAwMDAwMH19"
  244. }
  245. ]
  246. },
  247. {
  248. "mode": "managed",
  249. "type": "aws_s3_bucket_acl",
  250. "name": "s3_bucket_acl",
  251. "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
  252. "instances": [
  253. {
  254. "schema_version": 0,
  255. "attributes": {
  256. "access_control_policy": [
  257. {
  258. "grant": [
  259. {
  260. "grantee": [
  261. {
  262. "display_name": "yukiws",
  263. "email_address": "",
  264. "id": "16ace6e62ff20a38d91b231ba787c479a9d92a5863a4b9434d692324b9f2d255",
  265. "type": "CanonicalUser",
  266. "uri": ""
  267. }
  268. ],
  269. "permission": "FULL_CONTROL"
  270. }
  271. ],
  272. "owner": [
  273. {
  274. "display_name": "yukiws",
  275. "id": "16ace6e62ff20a38d91b231ba787c479a9d92a5863a4b9434d692324b9f2d255"
  276. }
  277. ]
  278. }
  279. ],
  280. "acl": "private",
  281. "bucket": "growi-official-image-builder-cache",
  282. "expected_bucket_owner": "",
  283. "id": "growi-official-image-builder-cache,private"
  284. },
  285. "sensitive_attributes": [],
  286. "private": "bnVsbA==",
  287. "dependencies": [
  288. "aws_s3_bucket.s3_bucket"
  289. ]
  290. }
  291. ]
  292. },
  293. {
  294. "mode": "managed",
  295. "type": "aws_secretsmanager_secret",
  296. "name": "secret",
  297. "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
  298. "instances": [
  299. {
  300. "schema_version": 0,
  301. "attributes": {
  302. "arn": "arn:aws:secretsmanager:ap-northeast-1:259692501178:secret:growi/official-image-builder-9sraQN",
  303. "description": "",
  304. "force_overwrite_replica_secret": false,
  305. "id": "arn:aws:secretsmanager:ap-northeast-1:259692501178:secret:growi/official-image-builder-9sraQN",
  306. "kms_key_id": "",
  307. "name": "growi/official-image-builder",
  308. "name_prefix": "",
  309. "policy": "",
  310. "recovery_window_in_days": 30,
  311. "replica": [],
  312. "rotation_enabled": false,
  313. "rotation_lambda_arn": "",
  314. "rotation_rules": [],
  315. "tags": {},
  316. "tags_all": {}
  317. },
  318. "sensitive_attributes": [],
  319. "private": "bnVsbA=="
  320. }
  321. ]
  322. },
  323. {
  324. "mode": "managed",
  325. "type": "aws_secretsmanager_secret_version",
  326. "name": "main",
  327. "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
  328. "instances": [
  329. {
  330. "schema_version": 0,
  331. "attributes": {
  332. "arn": "arn:aws:secretsmanager:ap-northeast-1:259692501178:secret:growi/official-image-builder-9sraQN",
  333. "id": "arn:aws:secretsmanager:ap-northeast-1:259692501178:secret:growi/official-image-builder-9sraQN|032079BF-5A86-42F2-BBA0-CCDCA4F53CBC",
  334. "secret_binary": "",
  335. "secret_id": "arn:aws:secretsmanager:ap-northeast-1:259692501178:secret:growi/official-image-builder-9sraQN",
  336. "secret_string": "CHANGE THIS",
  337. "version_id": "032079BF-5A86-42F2-BBA0-CCDCA4F53CBC",
  338. "version_stages": [
  339. "AWSPREVIOUS"
  340. ]
  341. },
  342. "sensitive_attributes": [],
  343. "private": "bnVsbA==",
  344. "dependencies": [
  345. "aws_secretsmanager_secret.secret"
  346. ]
  347. }
  348. ]
  349. }
  350. ],
  351. "check_results": null
  352. }