{ "version": 4, "terraform_version": "1.3.7", "serial": 79, "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/root.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 \"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 }