terraform.tfstate 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812
  1. {
  2. "version": 4,
  3. "terraform_version": "1.3.7",
  4. "serial": 185,
  5. "lineage": "7413839f-c67c-02f5-4933-fcb84251bb29",
  6. "outputs": {},
  7. "resources": [
  8. {
  9. "mode": "data",
  10. "type": "aws_iam_policy_document",
  11. "name": "policy_document",
  12. "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
  13. "instances": [
  14. {
  15. "schema_version": 0,
  16. "attributes": {
  17. "id": "3300858488",
  18. "json": "{\n \"Version\": \"2012-10-17\",\n \"Statement\": [\n {\n \"Sid\": \"\",\n \"Effect\": \"Allow\",\n \"Action\": [\n \"codebuild:StopBuild\",\n \"codebuild:StartBuild\",\n \"codebuild:RetryBuild\",\n \"codebuild:BatchGetBuilds\"\n ],\n \"Resource\": \"arn:aws:codebuild:ap-northeast-1:259692501178:project/growi-official-image-builder\"\n }\n ]\n}",
  19. "override_json": null,
  20. "override_policy_documents": null,
  21. "policy_id": null,
  22. "source_json": null,
  23. "source_policy_documents": null,
  24. "statement": [
  25. {
  26. "actions": [
  27. "codebuild:BatchGetBuilds",
  28. "codebuild:RetryBuild",
  29. "codebuild:StartBuild",
  30. "codebuild:StopBuild"
  31. ],
  32. "condition": [],
  33. "effect": "Allow",
  34. "not_actions": [],
  35. "not_principals": [],
  36. "not_resources": [],
  37. "principals": [],
  38. "resources": [
  39. "arn:aws:codebuild:ap-northeast-1:259692501178:project/growi-official-image-builder"
  40. ],
  41. "sid": ""
  42. }
  43. ],
  44. "version": "2012-10-17"
  45. },
  46. "sensitive_attributes": []
  47. }
  48. ]
  49. },
  50. {
  51. "mode": "managed",
  52. "type": "aws_secretsmanager_secret",
  53. "name": "secret",
  54. "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
  55. "instances": [
  56. {
  57. "schema_version": 0,
  58. "attributes": {
  59. "arn": "arn:aws:secretsmanager:ap-northeast-1:259692501178:secret:growi/official-image-builder-LMU1uz",
  60. "description": "",
  61. "force_overwrite_replica_secret": false,
  62. "id": "arn:aws:secretsmanager:ap-northeast-1:259692501178:secret:growi/official-image-builder-LMU1uz",
  63. "kms_key_id": "",
  64. "name": "growi/official-image-builder",
  65. "name_prefix": "",
  66. "policy": "",
  67. "recovery_window_in_days": 30,
  68. "replica": [],
  69. "rotation_enabled": false,
  70. "rotation_lambda_arn": "",
  71. "rotation_rules": [],
  72. "tags": {},
  73. "tags_all": {}
  74. },
  75. "sensitive_attributes": [],
  76. "private": "bnVsbA=="
  77. }
  78. ]
  79. },
  80. {
  81. "mode": "managed",
  82. "type": "aws_secretsmanager_secret_version",
  83. "name": "main",
  84. "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
  85. "instances": [
  86. {
  87. "schema_version": 0,
  88. "attributes": {
  89. "arn": "arn:aws:secretsmanager:ap-northeast-1:259692501178:secret:growi/official-image-builder-LMU1uz",
  90. "id": "arn:aws:secretsmanager:ap-northeast-1:259692501178:secret:growi/official-image-builder-LMU1uz|C8147827-E635-4B07-80B8-B80E82FE22E5",
  91. "secret_binary": "",
  92. "secret_id": "arn:aws:secretsmanager:ap-northeast-1:259692501178:secret:growi/official-image-builder-LMU1uz",
  93. "secret_string": "{\"KEY1\":\"CHANGE THIS\",\"KEY2\":\"CHANGE THIS\"}",
  94. "version_id": "C8147827-E635-4B07-80B8-B80E82FE22E5",
  95. "version_stages": [
  96. "AWSPREVIOUS"
  97. ]
  98. },
  99. "sensitive_attributes": [],
  100. "private": "bnVsbA==",
  101. "dependencies": [
  102. "aws_secretsmanager_secret.secret"
  103. ]
  104. }
  105. ]
  106. },
  107. {
  108. "module": "module.codebuild",
  109. "mode": "data",
  110. "type": "aws_caller_identity",
  111. "name": "default",
  112. "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
  113. "instances": [
  114. {
  115. "schema_version": 0,
  116. "attributes": {
  117. "account_id": "259692501178",
  118. "arn": "arn:aws:iam::259692501178:user/yuki",
  119. "id": "259692501178",
  120. "user_id": "AIDAI6K42G2YZESELYLD4"
  121. },
  122. "sensitive_attributes": []
  123. }
  124. ]
  125. },
  126. {
  127. "module": "module.codebuild",
  128. "mode": "data",
  129. "type": "aws_iam_policy_document",
  130. "name": "combined_permissions",
  131. "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
  132. "instances": [
  133. {
  134. "schema_version": 0,
  135. "attributes": {
  136. "id": "1570789323",
  137. "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}",
  138. "override_json": null,
  139. "override_policy_documents": [
  140. "{\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}"
  141. ],
  142. "policy_id": null,
  143. "source_json": null,
  144. "source_policy_documents": null,
  145. "statement": null,
  146. "version": "2012-10-17"
  147. },
  148. "sensitive_attributes": []
  149. }
  150. ]
  151. },
  152. {
  153. "module": "module.codebuild",
  154. "mode": "data",
  155. "type": "aws_iam_policy_document",
  156. "name": "permissions",
  157. "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
  158. "instances": [
  159. {
  160. "index_key": 0,
  161. "schema_version": 0,
  162. "attributes": {
  163. "id": "1570789323",
  164. "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}",
  165. "override_json": null,
  166. "override_policy_documents": null,
  167. "policy_id": null,
  168. "source_json": null,
  169. "source_policy_documents": null,
  170. "statement": [
  171. {
  172. "actions": [
  173. "codecommit:GitPull",
  174. "ecr:BatchCheckLayerAvailability",
  175. "ecr:CompleteLayerUpload",
  176. "ecr:GetAuthorizationToken",
  177. "ecr:InitiateLayerUpload",
  178. "ecr:PutImage",
  179. "ecr:UploadLayerPart",
  180. "ecs:RunTask",
  181. "iam:PassRole",
  182. "logs:CreateLogGroup",
  183. "logs:CreateLogStream",
  184. "logs:PutLogEvents",
  185. "secretsmanager:GetSecretValue",
  186. "ssm:GetParameters"
  187. ],
  188. "condition": [],
  189. "effect": "Allow",
  190. "not_actions": [],
  191. "not_principals": [],
  192. "not_resources": [],
  193. "principals": [],
  194. "resources": [
  195. "*"
  196. ],
  197. "sid": ""
  198. }
  199. ],
  200. "version": "2012-10-17"
  201. },
  202. "sensitive_attributes": []
  203. }
  204. ]
  205. },
  206. {
  207. "module": "module.codebuild",
  208. "mode": "data",
  209. "type": "aws_iam_policy_document",
  210. "name": "role",
  211. "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
  212. "instances": [
  213. {
  214. "schema_version": 0,
  215. "attributes": {
  216. "id": "442947395",
  217. "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}",
  218. "override_json": null,
  219. "override_policy_documents": null,
  220. "policy_id": null,
  221. "source_json": null,
  222. "source_policy_documents": null,
  223. "statement": [
  224. {
  225. "actions": [
  226. "sts:AssumeRole"
  227. ],
  228. "condition": [],
  229. "effect": "Allow",
  230. "not_actions": [],
  231. "not_principals": [],
  232. "not_resources": [],
  233. "principals": [
  234. {
  235. "identifiers": [
  236. "codebuild.amazonaws.com"
  237. ],
  238. "type": "Service"
  239. }
  240. ],
  241. "resources": [],
  242. "sid": ""
  243. }
  244. ],
  245. "version": "2012-10-17"
  246. },
  247. "sensitive_attributes": []
  248. }
  249. ]
  250. },
  251. {
  252. "module": "module.codebuild",
  253. "mode": "data",
  254. "type": "aws_region",
  255. "name": "default",
  256. "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
  257. "instances": [
  258. {
  259. "schema_version": 0,
  260. "attributes": {
  261. "description": "Asia Pacific (Tokyo)",
  262. "endpoint": "ec2.ap-northeast-1.amazonaws.com",
  263. "id": "ap-northeast-1",
  264. "name": "ap-northeast-1"
  265. },
  266. "sensitive_attributes": []
  267. }
  268. ]
  269. },
  270. {
  271. "module": "module.codebuild",
  272. "mode": "managed",
  273. "type": "aws_codebuild_project",
  274. "name": "default",
  275. "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
  276. "instances": [
  277. {
  278. "index_key": 0,
  279. "schema_version": 0,
  280. "attributes": {
  281. "arn": "arn:aws:codebuild:ap-northeast-1:259692501178:project/growi-official-image-builder",
  282. "artifacts": [
  283. {
  284. "artifact_identifier": "",
  285. "bucket_owner_access": "",
  286. "encryption_disabled": false,
  287. "location": "",
  288. "name": "",
  289. "namespace_type": "",
  290. "override_artifact_name": false,
  291. "packaging": "",
  292. "path": "",
  293. "type": "NO_ARTIFACTS"
  294. }
  295. ],
  296. "badge_enabled": false,
  297. "badge_url": "",
  298. "build_batch_config": [
  299. {
  300. "combine_artifacts": false,
  301. "restrictions": [
  302. {
  303. "compute_types_allowed": [],
  304. "maximum_builds_allowed": 100
  305. }
  306. ],
  307. "service_role": "arn:aws:iam::259692501178:role/growi-official-image-builder",
  308. "timeout_in_mins": 2160
  309. }
  310. ],
  311. "build_timeout": 60,
  312. "cache": [
  313. {
  314. "location": "",
  315. "modes": [
  316. "LOCAL_DOCKER_LAYER_CACHE",
  317. "LOCAL_CUSTOM_CACHE"
  318. ],
  319. "type": "LOCAL"
  320. }
  321. ],
  322. "concurrent_build_limit": 0,
  323. "description": "The CodeBuild Project for GROWI official docker image",
  324. "encryption_key": "arn:aws:kms:ap-northeast-1:259692501178:alias/aws/s3",
  325. "environment": [
  326. {
  327. "certificate": "",
  328. "compute_type": "BUILD_GENERAL1_LARGE",
  329. "environment_variable": [
  330. {
  331. "name": "AWS_REGION",
  332. "type": "PLAINTEXT",
  333. "value": "ap-northeast-1"
  334. },
  335. {
  336. "name": "AWS_ACCOUNT_ID",
  337. "type": "PLAINTEXT",
  338. "value": "259692501178"
  339. },
  340. {
  341. "name": "IMAGE_REPO_NAME",
  342. "type": "PLAINTEXT",
  343. "value": "UNSET"
  344. },
  345. {
  346. "name": "IMAGE_TAG",
  347. "type": "PLAINTEXT",
  348. "value": "latest"
  349. },
  350. {
  351. "name": "NO_ADDITIONAL_BUILD_VARS",
  352. "type": "PLAINTEXT",
  353. "value": "TRUE"
  354. }
  355. ],
  356. "image": "aws/codebuild/amazonlinux2-x86_64-standard:3.0",
  357. "image_pull_credentials_type": "CODEBUILD",
  358. "privileged_mode": true,
  359. "registry_credential": [],
  360. "type": "LINUX_CONTAINER"
  361. }
  362. ],
  363. "file_system_locations": [],
  364. "id": "arn:aws:codebuild:ap-northeast-1:259692501178:project/growi-official-image-builder",
  365. "logs_config": [
  366. {
  367. "cloudwatch_logs": [
  368. {
  369. "group_name": "",
  370. "status": "ENABLED",
  371. "stream_name": ""
  372. }
  373. ],
  374. "s3_logs": [
  375. {
  376. "bucket_owner_access": "",
  377. "encryption_disabled": false,
  378. "location": "",
  379. "status": "DISABLED"
  380. }
  381. ]
  382. }
  383. ],
  384. "name": "growi-official-image-builder",
  385. "project_visibility": "PRIVATE",
  386. "public_project_alias": "",
  387. "queued_timeout": 480,
  388. "resource_access_role": "",
  389. "secondary_artifacts": [],
  390. "secondary_source_version": [],
  391. "secondary_sources": [],
  392. "service_role": "arn:aws:iam::259692501178:role/growi-official-image-builder",
  393. "source": [
  394. {
  395. "auth": [],
  396. "build_status_config": [],
  397. "buildspec": "packages/app/docker/codebuild/buildspec/root.yml",
  398. "git_clone_depth": 1,
  399. "git_submodules_config": [],
  400. "insecure_ssl": false,
  401. "location": "https://github.com/weseek/growi.git",
  402. "report_build_status": false,
  403. "type": "GITHUB"
  404. }
  405. ],
  406. "source_version": "refs/heads/support/build-with-codebuild",
  407. "tags": {
  408. "Name": "growi-official-image-builder"
  409. },
  410. "tags_all": {
  411. "Name": "growi-official-image-builder"
  412. },
  413. "vpc_config": []
  414. },
  415. "sensitive_attributes": [],
  416. "private": "bnVsbA==",
  417. "dependencies": [
  418. "module.codebuild.aws_codebuild_source_credential.authorization",
  419. "module.codebuild.aws_iam_role.default",
  420. "module.codebuild.aws_s3_bucket.cache_bucket",
  421. "module.codebuild.data.aws_caller_identity.default",
  422. "module.codebuild.data.aws_region.default"
  423. ]
  424. }
  425. ]
  426. },
  427. {
  428. "module": "module.codebuild",
  429. "mode": "managed",
  430. "type": "aws_iam_policy",
  431. "name": "default",
  432. "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
  433. "instances": [
  434. {
  435. "index_key": 0,
  436. "schema_version": 0,
  437. "attributes": {
  438. "arn": "arn:aws:iam::259692501178:policy/service-role/growi-official-image-builder",
  439. "description": "",
  440. "id": "arn:aws:iam::259692501178:policy/service-role/growi-official-image-builder",
  441. "name": "growi-official-image-builder",
  442. "name_prefix": null,
  443. "path": "/service-role/",
  444. "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\"}",
  445. "policy_id": "ANPATY5XBDC5HSN3IY7CW",
  446. "tags": {
  447. "Name": "growi-official-image-builder"
  448. },
  449. "tags_all": {
  450. "Name": "growi-official-image-builder"
  451. }
  452. },
  453. "sensitive_attributes": [],
  454. "private": "bnVsbA==",
  455. "dependencies": [
  456. "module.codebuild.data.aws_iam_policy_document.combined_permissions",
  457. "module.codebuild.data.aws_iam_policy_document.permissions",
  458. "module.codebuild.data.aws_iam_policy_document.vpc_permissions",
  459. "module.codebuild.data.aws_s3_bucket.secondary_artifact"
  460. ]
  461. }
  462. ]
  463. },
  464. {
  465. "module": "module.codebuild",
  466. "mode": "managed",
  467. "type": "aws_iam_role",
  468. "name": "default",
  469. "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
  470. "instances": [
  471. {
  472. "index_key": 0,
  473. "schema_version": 0,
  474. "attributes": {
  475. "arn": "arn:aws:iam::259692501178:role/growi-official-image-builder",
  476. "assume_role_policy": "{\"Statement\":[{\"Action\":\"sts:AssumeRole\",\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"codebuild.amazonaws.com\"},\"Sid\":\"\"}],\"Version\":\"2012-10-17\"}",
  477. "create_date": "2023-01-16T09:02:08Z",
  478. "description": "",
  479. "force_detach_policies": true,
  480. "id": "growi-official-image-builder",
  481. "inline_policy": [],
  482. "managed_policy_arns": [
  483. "arn:aws:iam::259692501178:policy/service-role/CodeBuildBuildBatchPolicy-growi-official-image-builder-ap-northeast-1-growi-official-image-builder",
  484. "arn:aws:iam::259692501178:policy/service-role/growi-official-image-builder"
  485. ],
  486. "max_session_duration": 3600,
  487. "name": "growi-official-image-builder",
  488. "name_prefix": "",
  489. "path": "/",
  490. "permissions_boundary": null,
  491. "tags": {
  492. "Name": "growi-official-image-builder"
  493. },
  494. "tags_all": {
  495. "Name": "growi-official-image-builder"
  496. },
  497. "unique_id": "AROATY5XBDC5EIUMPRJKC"
  498. },
  499. "sensitive_attributes": [],
  500. "private": "bnVsbA==",
  501. "dependencies": [
  502. "module.codebuild.data.aws_iam_policy_document.role"
  503. ]
  504. }
  505. ]
  506. },
  507. {
  508. "module": "module.codebuild",
  509. "mode": "managed",
  510. "type": "aws_iam_role_policy_attachment",
  511. "name": "default",
  512. "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
  513. "instances": [
  514. {
  515. "index_key": 0,
  516. "schema_version": 0,
  517. "attributes": {
  518. "id": "growi-official-image-builder-20230116090200654500000001",
  519. "policy_arn": "arn:aws:iam::259692501178:policy/service-role/growi-official-image-builder",
  520. "role": "growi-official-image-builder"
  521. },
  522. "sensitive_attributes": [],
  523. "private": "bnVsbA==",
  524. "dependencies": [
  525. "module.codebuild.aws_iam_policy.default",
  526. "module.codebuild.aws_iam_role.default",
  527. "module.codebuild.data.aws_iam_policy_document.combined_permissions",
  528. "module.codebuild.data.aws_iam_policy_document.permissions",
  529. "module.codebuild.data.aws_iam_policy_document.role",
  530. "module.codebuild.data.aws_iam_policy_document.vpc_permissions",
  531. "module.codebuild.data.aws_s3_bucket.secondary_artifact"
  532. ]
  533. }
  534. ]
  535. },
  536. {
  537. "module": "module.codebuild",
  538. "mode": "managed",
  539. "type": "random_string",
  540. "name": "bucket_prefix",
  541. "provider": "provider[\"registry.terraform.io/hashicorp/random\"]",
  542. "instances": [
  543. {
  544. "index_key": 0,
  545. "schema_version": 2,
  546. "attributes": {
  547. "id": "vpkowftojwbb",
  548. "keepers": null,
  549. "length": 12,
  550. "lower": true,
  551. "min_lower": 0,
  552. "min_numeric": 0,
  553. "min_special": 0,
  554. "min_upper": 0,
  555. "number": false,
  556. "numeric": false,
  557. "override_special": null,
  558. "result": "vpkowftojwbb",
  559. "special": false,
  560. "upper": false
  561. },
  562. "sensitive_attributes": []
  563. }
  564. ]
  565. },
  566. {
  567. "module": "module.oidc_github",
  568. "mode": "data",
  569. "type": "aws_iam_policy_document",
  570. "name": "assume_role",
  571. "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
  572. "instances": [
  573. {
  574. "index_key": 0,
  575. "schema_version": 0,
  576. "attributes": {
  577. "id": "2164859932",
  578. "json": "{\n \"Version\": \"2012-10-17\",\n \"Statement\": [\n {\n \"Sid\": \"\",\n \"Effect\": \"Allow\",\n \"Action\": \"sts:AssumeRoleWithWebIdentity\",\n \"Principal\": {\n \"Federated\": \"arn:aws:iam::259692501178:oidc-provider/token.actions.githubusercontent.com\"\n },\n \"Condition\": {\n \"StringLike\": {\n \"token.actions.githubusercontent.com:sub\": \"repo:weseek/growi:*\"\n }\n }\n }\n ]\n}",
  579. "override_json": null,
  580. "override_policy_documents": null,
  581. "policy_id": null,
  582. "source_json": null,
  583. "source_policy_documents": null,
  584. "statement": [
  585. {
  586. "actions": [
  587. "sts:AssumeRoleWithWebIdentity"
  588. ],
  589. "condition": [
  590. {
  591. "test": "StringLike",
  592. "values": [
  593. "repo:weseek/growi:*"
  594. ],
  595. "variable": "token.actions.githubusercontent.com:sub"
  596. }
  597. ],
  598. "effect": "Allow",
  599. "not_actions": [],
  600. "not_principals": [],
  601. "not_resources": [],
  602. "principals": [
  603. {
  604. "identifiers": [
  605. "arn:aws:iam::259692501178:oidc-provider/token.actions.githubusercontent.com"
  606. ],
  607. "type": "Federated"
  608. }
  609. ],
  610. "resources": [],
  611. "sid": ""
  612. }
  613. ],
  614. "version": "2012-10-17"
  615. },
  616. "sensitive_attributes": []
  617. }
  618. ]
  619. },
  620. {
  621. "module": "module.oidc_github",
  622. "mode": "data",
  623. "type": "aws_partition",
  624. "name": "current",
  625. "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
  626. "instances": [
  627. {
  628. "schema_version": 0,
  629. "attributes": {
  630. "dns_suffix": "amazonaws.com",
  631. "id": "aws",
  632. "partition": "aws",
  633. "reverse_dns_prefix": "com.amazonaws"
  634. },
  635. "sensitive_attributes": []
  636. }
  637. ]
  638. },
  639. {
  640. "module": "module.oidc_github",
  641. "mode": "data",
  642. "type": "tls_certificate",
  643. "name": "github",
  644. "provider": "provider[\"registry.terraform.io/hashicorp/tls\"]",
  645. "instances": [
  646. {
  647. "schema_version": 0,
  648. "attributes": {
  649. "certificates": [
  650. {
  651. "cert_pem": "-----BEGIN CERTIFICATE-----\nMIIE6jCCA9KgAwIBAgIQCjUI1VwpKwF9+K1lwA/35DANBgkqhkiG9w0BAQsFADBh\nMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3\nd3cuZGlnaWNlcnQuY29tMSAwHgYDVQQDExdEaWdpQ2VydCBHbG9iYWwgUm9vdCBD\nQTAeFw0yMDA5MjQwMDAwMDBaFw0zMDA5MjMyMzU5NTlaME8xCzAJBgNVBAYTAlVT\nMRUwEwYDVQQKEwxEaWdpQ2VydCBJbmMxKTAnBgNVBAMTIERpZ2lDZXJ0IFRMUyBS\nU0EgU0hBMjU2IDIwMjAgQ0ExMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKC\nAQEAwUuzZUdwvN1PWNvsnO3DZuUfMRNUrUpmRh8sCuxkB+Uu3Ny5CiDt3+PE0J6a\nqXodgojlEVbbHp9YwlHnLDQNLtKS4VbL8Xlfs7uHyiUDe5pSQWYQYE9XE0nw6Ddn\ng9/n00tnTCJRpt8OmRDtV1F0JuJ9x8piLhMbfyOIJVNvwTRYAIuE//i+p1hJInuW\nraKImxW8oHzf6VGo1bDtN+I2tIJLYrVJmuzHZ9bjPvXj1hJeRPG/cUJ9WIQDgLGB\nAfr5yjK7tI4nhyfFK3TUqNaX3sNk+crOU6JWvHgXjkkDKa77SU+kFbnO8lwZV21r\neacroicgE7XQPUDTITAHk+qZ9QIDAQABo4IBrjCCAaowHQYDVR0OBBYEFLdrouqo\nqoSMeeq02g+YssWVdrn0MB8GA1UdIwQYMBaAFAPeUDVW0Uy7ZvCj4hsbw5eyPdFV\nMA4GA1UdDwEB/wQEAwIBhjAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIw\nEgYDVR0TAQH/BAgwBgEB/wIBADB2BggrBgEFBQcBAQRqMGgwJAYIKwYBBQUHMAGG\nGGh0dHA6Ly9vY3NwLmRpZ2ljZXJ0LmNvbTBABggrBgEFBQcwAoY0aHR0cDovL2Nh\nY2VydHMuZGlnaWNlcnQuY29tL0RpZ2lDZXJ0R2xvYmFsUm9vdENBLmNydDB7BgNV\nHR8EdDByMDegNaAzhjFodHRwOi8vY3JsMy5kaWdpY2VydC5jb20vRGlnaUNlcnRH\nbG9iYWxSb290Q0EuY3JsMDegNaAzhjFodHRwOi8vY3JsNC5kaWdpY2VydC5jb20v\nRGlnaUNlcnRHbG9iYWxSb290Q0EuY3JsMDAGA1UdIAQpMCcwBwYFZ4EMAQEwCAYG\nZ4EMAQIBMAgGBmeBDAECAjAIBgZngQwBAgMwDQYJKoZIhvcNAQELBQADggEBAHer\nt3onPa679n/gWlbJhKrKW3EX3SJH/E6f7tDBpATho+vFScH90cnfjK+URSxGKqNj\nOSD5nkoklEHIqdninFQFBstcHL4AGw+oWv8Zu2XHFq8hVt1hBcnpj5h232sb0HIM\nULkwKXq/YFkQZhM6LawVEWwtIwwCPgU7/uWhnOKK24fXSuhe50gG66sSmvKvhMNb\ng0qZgYOrAKHKCjxMoiWJKiKnpPMzTFuMLhoClw+dj20tlQj7T9rxkTgl4ZxuYRiH\nas6xuwAwapu3r9rxxZf+ingkquqTgLozZXq8oXfpf2kUCwA/d5KxTVtzhwoT0JzI\n8ks5T1KESaZMkE4f97Q=\n-----END CERTIFICATE-----\n",
  652. "is_ca": true,
  653. "issuer": "CN=DigiCert Global Root CA,OU=www.digicert.com,O=DigiCert Inc,C=US",
  654. "not_after": "2030-09-23T23:59:59Z",
  655. "not_before": "2020-09-24T00:00:00Z",
  656. "public_key_algorithm": "RSA",
  657. "serial_number": "13567650854749339296468135199911180260",
  658. "sha1_fingerprint": "6938fd4d98bab03faadb97b34396831e3780aea1",
  659. "signature_algorithm": "SHA256-RSA",
  660. "subject": "CN=DigiCert TLS RSA SHA256 2020 CA1,O=DigiCert Inc,C=US",
  661. "version": 3
  662. },
  663. {
  664. "cert_pem": "-----BEGIN CERTIFICATE-----\nMIIG8jCCBdqgAwIBAgIQCn5zvdee2Vg6XXlzFLM1XDANBgkqhkiG9w0BAQsFADBP\nMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMSkwJwYDVQQDEyBE\naWdpQ2VydCBUTFMgUlNBIFNIQTI1NiAyMDIwIENBMTAeFw0yMjExMDQwMDAwMDBa\nFw0yMzExMDcyMzU5NTlaMHsxCzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9y\nbmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRUwEwYDVQQKEwxHaXRIdWIsIElu\nYy4xKDAmBgNVBAMMHyouYWN0aW9ucy5naXRodWJ1c2VyY29udGVudC5jb20wggEi\nMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC94vT0wbk+S/Pr5WRRN7NA5dGS\n5aZv3ww34dnFTUiwf8DKYaAnR2TrV3OGDg7Sb7D/laMMhg2gzCyK45RIoqJI3bcN\nX2IPp36ewyyZczV76SD4/BXDqnO6SQ/wFIv4fCKS2jQjqNHG+HUtJNp0/sII4uLn\n2DyMgE06/vTXleTDxRGfTSgOLdLjjM3uftP3VO3hYUOEogmgFtRVl7ggkLgJ+ZWi\n0I9LO039/zsbnygpL+d5HhLBK3Tb4E11wCEen5582rohs1dhPS/Vu1zyXcGIW7n8\nbLV4acK+KyGEnRBbLp890hw+BABQf/C9Uo6F9t/jNtCnTTw+4rkzCY1M8/a1AgMB\nAAGjggOcMIIDmDAfBgNVHSMEGDAWgBS3a6LqqKqEjHnqtNoPmLLFlXa59DAdBgNV\nHQ4EFgQUQgJD/1vA//F/LF4NGvO+N9cN7mIwSQYDVR0RBEIwQIIfKi5hY3Rpb25z\nLmdpdGh1YnVzZXJjb250ZW50LmNvbYIdYWN0aW9ucy5naXRodWJ1c2VyY29udGVu\ndC5jb20wDgYDVR0PAQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEF\nBQcDAjCBjwYDVR0fBIGHMIGEMECgPqA8hjpodHRwOi8vY3JsMy5kaWdpY2VydC5j\nb20vRGlnaUNlcnRUTFNSU0FTSEEyNTYyMDIwQ0ExLTQuY3JsMECgPqA8hjpodHRw\nOi8vY3JsNC5kaWdpY2VydC5jb20vRGlnaUNlcnRUTFNSU0FTSEEyNTYyMDIwQ0Ex\nLTQuY3JsMD4GA1UdIAQ3MDUwMwYGZ4EMAQICMCkwJwYIKwYBBQUHAgEWG2h0dHA6\nLy93d3cuZGlnaWNlcnQuY29tL0NQUzB/BggrBgEFBQcBAQRzMHEwJAYIKwYBBQUH\nMAGGGGh0dHA6Ly9vY3NwLmRpZ2ljZXJ0LmNvbTBJBggrBgEFBQcwAoY9aHR0cDov\nL2NhY2VydHMuZGlnaWNlcnQuY29tL0RpZ2lDZXJ0VExTUlNBU0hBMjU2MjAyMENB\nMS0xLmNydDAJBgNVHRMEAjAAMIIBfAYKKwYBBAHWeQIEAgSCAWwEggFoAWYAdQDo\nPtDaPvUGNTLnVyi8iWvJA9PL0RFr7Otp4Xd9bQa9bgAAAYRErGRdAAAEAwBGMEQC\nHy+p/x51ZahWaQt+UfDcxTyJnRQaO7T/+X90x+3kkmYCIQC7IDygd0wCyBaYeGVc\nnH8Hj76j3logQZVyDAotBT1Y/QB2ALNzdwfhhFD4Y4bWBancEQlKeS2xZwwLh9zw\nAw55NqWaAAABhESsZIoAAAQDAEcwRQIhAMmnFDlLuSOA/UJ/TlIWcj3m8u3EXujf\njG5cfWIGXAs9AiAQnjXxxnebYM0IANOySg/+dHxDNVgGq/px8RvtxoPfZQB1ALc+\n+yTfnE26dfI5xbpY9Gxd/ELPep81xJ4dCYEl7bSZAAABhESsZEcAAAQDAEYwRAIg\nfOzkC+UGgdW08pfaBR18OGq4moGKK+j4/C93RFDev44CIDI0TxiDfya551M/N0pm\naQQNLr5t96xiFVY3aSMfv2qHMA0GCSqGSIb3DQEBCwUAA4IBAQA+duG+V4+gv9eT\nOA/ZSjU+6h29oS2i991HhjD2qDno3IksmGZqJ47cxSC2uJbf04LWcShVOslOp5e6\nlq+lxOEW+Cj65+Y+ORsp4sbSILVn8mj9+kfxTnEPD+A8Ii0YJoj98fc/u5UDM2B1\n00c6TPiKzUtYRBMoitFhAAB4H93d5illIHK2/RYZUPN3hMcDhv3GFxC0j40OBAUA\nuJ5ZrAXfh48ZtVq/qmjfCX7f0ntUcsm85S2oNKAaKqqlGuwjA7ye80O3WHKQLXXM\nevZ35QEWOlwhphLyHhUL6QFCuAe0wL2arESMXnxgaYE7Ka+SexxEiT5ZmdyrcFwg\nBL7FKjOM\n-----END CERTIFICATE-----\n",
  665. "is_ca": false,
  666. "issuer": "CN=DigiCert TLS RSA SHA256 2020 CA1,O=DigiCert Inc,C=US",
  667. "not_after": "2023-11-07T23:59:59Z",
  668. "not_before": "2022-11-04T00:00:00Z",
  669. "public_key_algorithm": "RSA",
  670. "serial_number": "13948856879982995920425685801082500444",
  671. "sha1_fingerprint": "f879abce0008e4eb126e0097e46620f5aaae26ad",
  672. "signature_algorithm": "SHA256-RSA",
  673. "subject": "CN=*.actions.githubusercontent.com,O=GitHub\\, Inc.,L=San Francisco,ST=California,C=US",
  674. "version": 3
  675. }
  676. ],
  677. "content": null,
  678. "id": "2f98b9dddcf0778622dc6788373a7f8c02e3a2c3",
  679. "url": "https://token.actions.githubusercontent.com/.well-known/openid-configuration",
  680. "verify_chain": true
  681. },
  682. "sensitive_attributes": []
  683. }
  684. ]
  685. },
  686. {
  687. "module": "module.oidc_github",
  688. "mode": "managed",
  689. "type": "aws_iam_openid_connect_provider",
  690. "name": "github",
  691. "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
  692. "instances": [
  693. {
  694. "index_key": 0,
  695. "schema_version": 0,
  696. "attributes": {
  697. "arn": "arn:aws:iam::259692501178:oidc-provider/token.actions.githubusercontent.com",
  698. "client_id_list": [
  699. "https://github.com/weseek",
  700. "sts.amazonaws.com"
  701. ],
  702. "id": "arn:aws:iam::259692501178:oidc-provider/token.actions.githubusercontent.com",
  703. "tags": {},
  704. "tags_all": {},
  705. "thumbprint_list": [
  706. "6938fd4d98bab03faadb97b34396831e3780aea1"
  707. ],
  708. "url": "token.actions.githubusercontent.com"
  709. },
  710. "sensitive_attributes": [],
  711. "private": "bnVsbA==",
  712. "dependencies": [
  713. "module.oidc_github.data.tls_certificate.github"
  714. ]
  715. }
  716. ]
  717. },
  718. {
  719. "module": "module.oidc_github",
  720. "mode": "managed",
  721. "type": "aws_iam_role",
  722. "name": "github",
  723. "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
  724. "instances": [
  725. {
  726. "index_key": 0,
  727. "schema_version": 0,
  728. "attributes": {
  729. "arn": "arn:aws:iam::259692501178:role/GitHubOIDC-for-growi",
  730. "assume_role_policy": "{\"Statement\":[{\"Action\":\"sts:AssumeRoleWithWebIdentity\",\"Condition\":{\"StringLike\":{\"token.actions.githubusercontent.com:sub\":\"repo:weseek/growi:*\"}},\"Effect\":\"Allow\",\"Principal\":{\"Federated\":\"arn:aws:iam::259692501178:oidc-provider/token.actions.githubusercontent.com\"},\"Sid\":\"\"}],\"Version\":\"2012-10-17\"}",
  731. "create_date": "2023-01-16T12:17:26Z",
  732. "description": "Role assumed by the GitHub OIDC provider.",
  733. "force_detach_policies": false,
  734. "id": "GitHubOIDC-for-growi",
  735. "inline_policy": [
  736. {
  737. "name": "inline_policy",
  738. "policy": "{\n \"Version\": \"2012-10-17\",\n \"Statement\": [\n {\n \"Sid\": \"\",\n \"Effect\": \"Allow\",\n \"Action\": [\n \"codebuild:StopBuild\",\n \"codebuild:StartBuild\",\n \"codebuild:RetryBuild\",\n \"codebuild:BatchGetBuilds\"\n ],\n \"Resource\": \"arn:aws:codebuild:ap-northeast-1:259692501178:project/growi-official-image-builder\"\n }\n ]\n}"
  739. }
  740. ],
  741. "managed_policy_arns": [
  742. "arn:aws:iam::aws:policy/ReadOnlyAccess"
  743. ],
  744. "max_session_duration": 3600,
  745. "name": "GitHubOIDC-for-growi",
  746. "name_prefix": "",
  747. "path": "/",
  748. "permissions_boundary": "",
  749. "tags": {},
  750. "tags_all": {},
  751. "unique_id": "AROATY5XBDC5JJ573R2X5"
  752. },
  753. "sensitive_attributes": [],
  754. "private": "bnVsbA==",
  755. "dependencies": [
  756. "data.aws_iam_policy_document.policy_document",
  757. "module.codebuild.aws_codebuild_project.default",
  758. "module.codebuild.aws_codebuild_source_credential.authorization",
  759. "module.codebuild.aws_iam_role.default",
  760. "module.codebuild.aws_s3_bucket.cache_bucket",
  761. "module.codebuild.data.aws_caller_identity.default",
  762. "module.codebuild.data.aws_iam_policy_document.role",
  763. "module.codebuild.data.aws_region.default",
  764. "module.codebuild.random_string.bucket_prefix",
  765. "module.oidc_github.aws_iam_openid_connect_provider.github",
  766. "module.oidc_github.data.aws_iam_openid_connect_provider.github",
  767. "module.oidc_github.data.aws_iam_policy_document.assume_role",
  768. "module.oidc_github.data.tls_certificate.github"
  769. ]
  770. }
  771. ]
  772. },
  773. {
  774. "module": "module.oidc_github",
  775. "mode": "managed",
  776. "type": "aws_iam_role_policy_attachment",
  777. "name": "read_only",
  778. "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
  779. "instances": [
  780. {
  781. "index_key": 0,
  782. "schema_version": 0,
  783. "attributes": {
  784. "id": "GitHubOIDC-for-growi-20230116121718851400000001",
  785. "policy_arn": "arn:aws:iam::aws:policy/ReadOnlyAccess",
  786. "role": "GitHubOIDC-for-growi"
  787. },
  788. "sensitive_attributes": [],
  789. "private": "bnVsbA==",
  790. "dependencies": [
  791. "data.aws_iam_policy_document.policy_document",
  792. "module.codebuild.aws_codebuild_project.default",
  793. "module.codebuild.aws_codebuild_source_credential.authorization",
  794. "module.codebuild.aws_iam_role.default",
  795. "module.codebuild.aws_s3_bucket.cache_bucket",
  796. "module.codebuild.data.aws_caller_identity.default",
  797. "module.codebuild.data.aws_iam_policy_document.role",
  798. "module.codebuild.data.aws_region.default",
  799. "module.codebuild.random_string.bucket_prefix",
  800. "module.oidc_github.aws_iam_openid_connect_provider.github",
  801. "module.oidc_github.aws_iam_role.github",
  802. "module.oidc_github.data.aws_iam_openid_connect_provider.github",
  803. "module.oidc_github.data.aws_iam_policy_document.assume_role",
  804. "module.oidc_github.data.aws_partition.current",
  805. "module.oidc_github.data.tls_certificate.github"
  806. ]
  807. }
  808. ]
  809. }
  810. ],
  811. "check_results": null
  812. }