| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249 |
- {
- "version": 4,
- "terraform_version": "1.3.7",
- "serial": 77,
- "lineage": "7413839f-c67c-02f5-4933-fcb84251bb29",
- "outputs": {},
- "resources": [
- {
- "mode": "managed",
- "type": "aws_codebuild_project",
- "name": "codebuild",
- "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
- "instances": [
- {
- "schema_version": 0,
- "attributes": {
- "arn": "arn:aws:codebuild:ap-northeast-1:259692501178:project/growi-official-image-builder",
- "artifacts": [
- {
- "artifact_identifier": "",
- "bucket_owner_access": "",
- "encryption_disabled": false,
- "location": "",
- "name": "",
- "namespace_type": "",
- "override_artifact_name": false,
- "packaging": "",
- "path": "",
- "type": "NO_ARTIFACTS"
- }
- ],
- "badge_enabled": false,
- "badge_url": "",
- "build_batch_config": [
- {
- "combine_artifacts": false,
- "restrictions": [
- {
- "compute_types_allowed": [],
- "maximum_builds_allowed": 100
- }
- ],
- "service_role": "arn:aws:iam::259692501178:role/growi-official-image-builder",
- "timeout_in_mins": 2160
- }
- ],
- "build_timeout": 60,
- "cache": [
- {
- "location": "",
- "modes": [
- "LOCAL_DOCKER_LAYER_CACHE",
- "LOCAL_CUSTOM_CACHE"
- ],
- "type": "LOCAL"
- }
- ],
- "concurrent_build_limit": 0,
- "description": "The CodeBuild Project for GROWI official docker image",
- "encryption_key": "arn:aws:kms:ap-northeast-1:259692501178:alias/aws/s3",
- "environment": [
- {
- "certificate": "",
- "compute_type": "BUILD_GENERAL1_LARGE",
- "environment_variable": [],
- "image": "aws/codebuild/standard:6.0",
- "image_pull_credentials_type": "CODEBUILD",
- "privileged_mode": true,
- "registry_credential": [],
- "type": "LINUX_CONTAINER"
- }
- ],
- "file_system_locations": [],
- "id": "arn:aws:codebuild:ap-northeast-1:259692501178:project/growi-official-image-builder",
- "logs_config": [
- {
- "cloudwatch_logs": [
- {
- "group_name": "",
- "status": "ENABLED",
- "stream_name": ""
- }
- ],
- "s3_logs": [
- {
- "bucket_owner_access": "",
- "encryption_disabled": false,
- "location": "",
- "status": "DISABLED"
- }
- ]
- }
- ],
- "name": "growi-official-image-builder",
- "project_visibility": "PRIVATE",
- "public_project_alias": "",
- "queued_timeout": 480,
- "resource_access_role": "",
- "secondary_artifacts": [],
- "secondary_source_version": [],
- "secondary_sources": [],
- "service_role": "arn:aws:iam::259692501178:role/growi-official-image-builder",
- "source": [
- {
- "auth": [],
- "build_status_config": [],
- "buildspec": "packages/app/docker/codebuild/buildspec.yml",
- "git_clone_depth": 1,
- "git_submodules_config": [],
- "insecure_ssl": false,
- "location": "https://github.com/weseek/growi.git",
- "report_build_status": false,
- "type": "GITHUB"
- }
- ],
- "source_version": "refs/heads/support/build-with-codebuild",
- "tags": {},
- "tags_all": {},
- "vpc_config": []
- },
- "sensitive_attributes": [],
- "private": "bnVsbA==",
- "dependencies": [
- "aws_iam_role.iam_role"
- ]
- }
- ]
- },
- {
- "mode": "managed",
- "type": "aws_iam_role",
- "name": "iam_role",
- "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
- "instances": [
- {
- "schema_version": 0,
- "attributes": {
- "arn": "arn:aws:iam::259692501178:role/growi-official-image-builder",
- "assume_role_policy": "{\"Statement\":[{\"Action\":\"sts:AssumeRole\",\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"codebuild.amazonaws.com\"}}],\"Version\":\"2012-10-17\"}",
- "create_date": "2023-01-12T20:35:25Z",
- "description": "",
- "force_detach_policies": false,
- "id": "growi-official-image-builder",
- "inline_policy": [
- {
- "name": "terraform-20230112203526188400000001",
- "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"
- }
- ],
- "managed_policy_arns": [
- "arn:aws:iam::259692501178:policy/service-role/CodeBuildBasePolicy-growi-official-image-builder-ap-northeast-1",
- "arn:aws:iam::259692501178:policy/service-role/CodeBuildSecretsManagerPolicy-growi-official-image-builder-ap-northeast-1"
- ],
- "max_session_duration": 3600,
- "name": "growi-official-image-builder",
- "name_prefix": "",
- "path": "/",
- "permissions_boundary": null,
- "tags": {},
- "tags_all": {},
- "unique_id": "AROATY5XBDC5BIKKM3GAO"
- },
- "sensitive_attributes": [],
- "private": "bnVsbA=="
- }
- ]
- },
- {
- "mode": "managed",
- "type": "aws_iam_role_policy",
- "name": "growi-official-image-builder",
- "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
- "instances": [
- {
- "schema_version": 0,
- "attributes": {
- "id": "growi-official-image-builder:terraform-20230112203526188400000001",
- "name": "terraform-20230112203526188400000001",
- "name_prefix": null,
- "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 \"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",
- "role": "growi-official-image-builder"
- },
- "sensitive_attributes": [],
- "private": "bnVsbA==",
- "dependencies": [
- "aws_iam_role.iam_role",
- "aws_secretsmanager_secret.secret"
- ]
- }
- ]
- },
- {
- "mode": "managed",
- "type": "aws_secretsmanager_secret",
- "name": "secret",
- "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
- "instances": [
- {
- "schema_version": 0,
- "attributes": {
- "arn": "arn:aws:secretsmanager:ap-northeast-1:259692501178:secret:growi/official-image-builder-9sraQN",
- "description": "",
- "force_overwrite_replica_secret": false,
- "id": "arn:aws:secretsmanager:ap-northeast-1:259692501178:secret:growi/official-image-builder-9sraQN",
- "kms_key_id": "",
- "name": "growi/official-image-builder",
- "name_prefix": "",
- "policy": "",
- "recovery_window_in_days": 30,
- "replica": [],
- "rotation_enabled": false,
- "rotation_lambda_arn": "",
- "rotation_rules": [],
- "tags": {},
- "tags_all": {}
- },
- "sensitive_attributes": [],
- "private": "bnVsbA=="
- }
- ]
- },
- {
- "mode": "managed",
- "type": "aws_secretsmanager_secret_version",
- "name": "main",
- "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
- "instances": [
- {
- "schema_version": 0,
- "attributes": {
- "arn": "arn:aws:secretsmanager:ap-northeast-1:259692501178:secret:growi/official-image-builder-9sraQN",
- "id": "arn:aws:secretsmanager:ap-northeast-1:259692501178:secret:growi/official-image-builder-9sraQN|032079BF-5A86-42F2-BBA0-CCDCA4F53CBC",
- "secret_binary": "",
- "secret_id": "arn:aws:secretsmanager:ap-northeast-1:259692501178:secret:growi/official-image-builder-9sraQN",
- "secret_string": "CHANGE THIS",
- "version_id": "032079BF-5A86-42F2-BBA0-CCDCA4F53CBC",
- "version_stages": []
- },
- "sensitive_attributes": [],
- "private": "bnVsbA==",
- "dependencies": [
- "aws_secretsmanager_secret.secret"
- ]
- }
- ]
- }
- ],
- "check_results": null
- }
|