1
+ {
2
+ "resource" : {
3
+ "aws_codebuild_project" : {
4
+ "terra_ci" : {
5
+ "arn" : " arn:aws:codebuild:eu-west-1:719261439472:project/terra-ci-runner" ,
6
+ "artifacts" : [
7
+ {
8
+ "artifact_identifier" : " " ,
9
+ "encryption_disabled" : false ,
10
+ "location" : " terra-ci-artifacts-eu-west-1-000002" ,
11
+ "name" : " terra-ci-runner" ,
12
+ "namespace_type" : " NONE" ,
13
+ "override_artifact_name" : false ,
14
+ "packaging" : " NONE" ,
15
+ "path" : " " ,
16
+ "type" : " S3"
17
+ }
18
+ ],
19
+ "badge_enabled" : false ,
20
+ "badge_url" : " " ,
21
+ "build_timeout" : 10 ,
22
+ "cache" : [
23
+ {
24
+ "location" : " " ,
25
+ "modes" : [],
26
+ "type" : " NO_CACHE"
27
+ }
28
+ ],
29
+ "description" : " Deploy environment configuration" ,
30
+ "encryption_key" : " arn:aws:kms:eu-west-1:719261439472:alias/aws/s3" ,
31
+ "environment" : [
32
+ {
33
+ "certificate" : " " ,
34
+ "compute_type" : " BUILD_GENERAL1_SMALL" ,
35
+ "environment_variable" : [],
36
+ "image" : " aws/codebuild/amazonlinux2-x86_64-standard:2.0" ,
37
+ "image_pull_credentials_type" : " CODEBUILD" ,
38
+ "privileged_mode" : false ,
39
+ "registry_credential" : [],
40
+ "type" : " LINUX_CONTAINER"
41
+ }
42
+ ],
43
+ "id" : " arn:aws:codebuild:eu-west-1:719261439472:project/terra-ci-runner" ,
44
+ "logs_config" : [
45
+ {
46
+ "cloudwatch_logs" : [
47
+ {
48
+ "group_name" : " " ,
49
+ "status" : " ENABLED" ,
50
+ "stream_name" : " "
51
+ }
52
+ ],
53
+ "s3_logs" : [
54
+ {
55
+ "encryption_disabled" : false ,
56
+ "location" : " " ,
57
+ "status" : " DISABLED"
58
+ }
59
+ ]
60
+ }
61
+ ],
62
+ "name" : " terra-ci-runner" ,
63
+ "queued_timeout" : 480 ,
64
+ "secondary_artifacts" : [],
65
+ "secondary_sources" : [],
66
+ "service_role" : " arn:aws:iam::719261439472:role/terra_ci_job" ,
67
+ "source" : [
68
+ {
69
+ "auth" : [],
70
+ "buildspec" : " version: 0.2\n phases:\n install:\n commands:\n - make install_tools\n build:\n commands:\n - make plan_local resource=$TERRA_CI_RESOURCE\n artifacts:\n files:\n - ./tfplan\n name: $TERRA_CI_BUILD_NAME\n\n " ,
71
+ "git_clone_depth" : 1 ,
72
+ "git_submodules_config" : [],
73
+ "insecure_ssl" : false ,
74
+ "location" : " https://github.com/p0tr3c-terraform/terra-ci-single-account.git" ,
75
+ "report_build_status" : false ,
76
+ "type" : " GITHUB"
77
+ }
78
+ ],
79
+ "source_version" : " " ,
80
+ "tags" : {},
81
+ "vpc_config" : []
82
+ }
83
+ },
84
+ "aws_iam_role" : {
85
+ "terra_ci_job" : {
86
+ "arn" : " arn:aws:iam::719261439472:role/terra_ci_job" ,
87
+ "assume_role_policy" : " {\" Version\" :\" 2012-10-17\" ,\" Statement\" :[{\" Effect\" :\" Allow\" ,\" Principal\" :{\" Service\" :\" codebuild.amazonaws.com\" },\" Action\" :\" sts:AssumeRole\" }]}" ,
88
+ "create_date" : " 2021-05-01T15:08:15Z" ,
89
+ "description" : " " ,
90
+ "force_detach_policies" : false ,
91
+ "id" : " terra_ci_job" ,
92
+ "inline_policy" : [
93
+ {
94
+ "name" : " terraform-20210501150816628700000001" ,
95
+ "policy" : " {\n \" Version\" : \" 2012-10-17\" ,\n \" Statement\" : [\n {\n \" Effect\" : \" Allow\" ,\n \" Action\" : \" sts:AssumeRole\" ,\n \" Resource\" : \" arn:aws:iam::719261439472:role/ci\"\n },\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 \" Resource\" : [\n \" arn:aws:s3:::terra-ci-artifacts-eu-west-1-000002\" ,\n \" arn:aws:s3:::terra-ci-artifacts-eu-west-1-000002/*\"\n ],\n \" Action\" : [\n \" s3:ListBucket\" ,\n \" s3:*Object\"\n ]\n }\n ]\n }\n "
96
+ }
97
+ ],
98
+ "managed_policy_arns" : [
99
+ " arn:aws:iam::aws:policy/AmazonEC2ContainerRegistryPowerUser"
100
+ ],
101
+ "max_session_duration" : 3600 ,
102
+ "name" : " terra_ci_job" ,
103
+ "name_prefix" : null ,
104
+ "path" : " /" ,
105
+ "permissions_boundary" : null ,
106
+ "tags" : {},
107
+ "unique_id" : " AROA2O52SSXYL7LBSM733"
108
+ },
109
+ "terra_ci_runner" : {
110
+ "arn" : " arn:aws:iam::719261439472:role/terra_ci_runner" ,
111
+ "assume_role_policy" : " {\" Version\" :\" 2012-10-17\" ,\" Statement\" :[{\" Effect\" :\" Allow\" ,\" Principal\" :{\" Service\" :\" states.amazonaws.com\" },\" Action\" :\" sts:AssumeRole\" }]}" ,
112
+ "create_date" : " 2021-05-01T15:08:15Z" ,
113
+ "description" : " " ,
114
+ "force_detach_policies" : false ,
115
+ "id" : " terra_ci_runner" ,
116
+ "inline_policy" : [
117
+ {
118
+ "name" : " terraform-20210501150825425000000003" ,
119
+ "policy" : " {\n \" Version\" : \" 2012-10-17\" ,\n \" Statement\" : [\n {\n \" Effect\" : \" Allow\" ,\n \" Action\" : [\n \" codebuild:StartBuild\" ,\n \" codebuild:StopBuild\" ,\n \" codebuild:BatchGetBuilds\"\n ],\n \" Resource\" : [\n \" arn:aws:codebuild:eu-west-1:719261439472:project/terra-ci-runner\"\n ]\n },\n {\n \" Effect\" : \" Allow\" ,\n \" Action\" : [\n \" events:PutTargets\" ,\n \" events:PutRule\" ,\n \" events:DescribeRule\"\n ],\n \" Resource\" : [\n \" arn:aws:events:eu-west-1:719261439472:rule/StepFunctionsGetEventForCodeBuildStartBuildRule\"\n ]\n }\n ]\n }\n "
120
+ }
121
+ ],
122
+ "managed_policy_arns" : [],
123
+ "max_session_duration" : 3600 ,
124
+ "name" : " terra_ci_runner" ,
125
+ "name_prefix" : null ,
126
+ "path" : " /" ,
127
+ "permissions_boundary" : null ,
128
+ "tags" : {},
129
+ "unique_id" : " AROA2O52SSXYDBYYTG4OB"
130
+ }
131
+ },
132
+ "aws_iam_role_policy" : {
133
+ "terra_ci_job" : {
134
+ "id" : " terra_ci_job:terraform-20210501150816628700000001" ,
135
+ "name" : " terraform-20210501150816628700000001" ,
136
+ "name_prefix" : null ,
137
+ "policy" : " {\n \" Version\" : \" 2012-10-17\" ,\n \" Statement\" : [\n {\n \" Effect\" : \" Allow\" ,\n \" Action\" : \" sts:AssumeRole\" ,\n \" Resource\" : \" arn:aws:iam::719261439472:role/ci\"\n },\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 \" Resource\" : [\n \" arn:aws:s3:::terra-ci-artifacts-eu-west-1-000002\" ,\n \" arn:aws:s3:::terra-ci-artifacts-eu-west-1-000002/*\"\n ],\n \" Action\" : [\n \" s3:ListBucket\" ,\n \" s3:*Object\"\n ]\n }\n ]\n }\n " ,
138
+ "role" : " terra_ci_job"
139
+ },
140
+ "terra_ci_runner" : {
141
+ "id" : " terra_ci_runner:terraform-20210501150825425000000003" ,
142
+ "name" : " terraform-20210501150825425000000003" ,
143
+ "name_prefix" : null ,
144
+ "policy" : " {\n \" Version\" : \" 2012-10-17\" ,\n \" Statement\" : [\n {\n \" Effect\" : \" Allow\" ,\n \" Action\" : [\n \" codebuild:StartBuild\" ,\n \" codebuild:StopBuild\" ,\n \" codebuild:BatchGetBuilds\"\n ],\n \" Resource\" : [\n \" arn:aws:codebuild:eu-west-1:719261439472:project/terra-ci-runner\"\n ]\n },\n {\n \" Effect\" : \" Allow\" ,\n \" Action\" : [\n \" events:PutTargets\" ,\n \" events:PutRule\" ,\n \" events:DescribeRule\"\n ],\n \" Resource\" : [\n \" arn:aws:events:eu-west-1:719261439472:rule/StepFunctionsGetEventForCodeBuildStartBuildRule\"\n ]\n }\n ]\n }\n " ,
145
+ "role" : " terra_ci_runner"
146
+ }
147
+ },
148
+ "aws_iam_role_policy_attachment" : {
149
+ "terra_ci_job_ecr_access" : {
150
+ "id" : " terra_ci_job-20210501150817089800000002" ,
151
+ "policy_arn" : " arn:aws:iam::aws:policy/AmazonEC2ContainerRegistryPowerUser" ,
152
+ "role" : " terra_ci_job"
153
+ }
154
+ },
155
+ "aws_s3_bucket" : {
156
+ "terra_ci" : {
157
+ "acceleration_status" : " " ,
158
+ "acl" : " private" ,
159
+ "arn" : " arn:aws:s3:::terra-ci-artifacts-eu-west-1-000002" ,
160
+ "bucket" : " terra-ci-artifacts-eu-west-1-000002" ,
161
+ "bucket_domain_name" : " terra-ci-artifacts-eu-west-1-000002.s3.amazonaws.com" ,
162
+ "bucket_prefix" : null ,
163
+ "bucket_regional_domain_name" : " terra-ci-artifacts-eu-west-1-000002.s3.eu-west-1.amazonaws.com" ,
164
+ "cors_rule" : [],
165
+ "force_destroy" : false ,
166
+ "grant" : [],
167
+ "hosted_zone_id" : " Z1BKCTXD74EZPE" ,
168
+ "id" : " terra-ci-artifacts-eu-west-1-000002" ,
169
+ "lifecycle_rule" : [],
170
+ "logging" : [],
171
+ "object_lock_configuration" : [],
172
+ "policy" : null ,
173
+ "region" : " eu-west-1" ,
174
+ "replication_configuration" : [],
175
+ "request_payer" : " BucketOwner" ,
176
+ "server_side_encryption_configuration" : [
177
+ {
178
+ "rule" : [
179
+ {
180
+ "apply_server_side_encryption_by_default" : [
181
+ {
182
+ "kms_master_key_id" : " " ,
183
+ "sse_algorithm" : " aws:kms"
184
+ }
185
+ ],
186
+ "bucket_key_enabled" : false
187
+ }
188
+ ]
189
+ }
190
+ ],
191
+ "tags" : {},
192
+ "versioning" : [
193
+ {
194
+ "enabled" : false ,
195
+ "mfa_delete" : false
196
+ }
197
+ ],
198
+ "website" : [],
199
+ "website_domain" : null ,
200
+ "website_endpoint" : null
201
+ }
202
+ },
203
+ "aws_sfn_state_machine" : {
204
+ "terra_ci_runner" : {
205
+ "arn" : " arn:aws:states:eu-west-1:719261439472:stateMachine:terra-ci-runner" ,
206
+ "creation_date" : " 2021-05-01T15:09:28Z" ,
207
+ "definition": "{\n \"Comment\": \"Run Terragrunt Jobs\",\n \"StartAt\": \"OnBranch?\",\n \"States\": {\n \"OnBranch?\": {\n \"Type\": \"Choice\",\n \"Choices\": [\n {\n \"Variable\": \"$.build.sourceversion\",\n \"IsPresent\": true,\n \"Next\": \"PlanBranch\"\n }\n ],\n \"Default\": \"Plan\"\n },\n \"Plan\": {\n \"Type\": \"Task\",\n \"Resource\": \"arn:aws:states:::codebuild:startBuild.sync\",\n \"Parameters\": {\n \"ProjectName\": \"terra-ci-runner\",\n \"EnvironmentVariablesOverride\": [\n {\n \"Name\": \"TERRA_CI_BUILD_NAME\",\n \"Value.$\": \"$$.Execution.Name\"\n },\n {\n \"Name\": \"TERRA_CI_RESOURCE\",\n \"Value.$\": \"$.build.environment.terra_ci_resource\"\n }\n ]\n },\n \"End\": true\n },\n \"PlanBranch\": {\n \"Type\": \"Task\",\n \"Resource\": \"arn:aws:states:::codebuild:startBuild.sync\",\n \"Parameters\": {\n \"ProjectName\": \"terra-ci-runner\",\n \"SourceVersion.$\": \"$.build.sourceversion\",\n \"EnvironmentVariablesOverride\": [\n {\n \"Name\": \"TERRA_CI_RESOURCE\",\n \"Value.$\": \"$.build.environment.terra_ci_resource\"\n }\n ]\n },\n \"End\": true\n }\n }\n}\n",
208
+ "id" : " arn:aws:states:eu-west-1:719261439472:stateMachine:terra-ci-runner" ,
209
+ "logging_configuration" : [
210
+ {
211
+ "include_execution_data" : false ,
212
+ "level" : " OFF" ,
213
+ "log_destination" : " "
214
+ }
215
+ ],
216
+ "name" : " terra-ci-runner" ,
217
+ "role_arn" : " arn:aws:iam::719261439472:role/terra_ci_runner" ,
218
+ "status" : " ACTIVE" ,
219
+ "tags" : {},
220
+ "type" : " STANDARD"
221
+ }
222
+ }
223
+ },
224
+ "data" : {}
225
+ }
0 commit comments