-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathterraform.tfstate
361 lines (361 loc) · 20.7 KB
/
terraform.tfstate
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
{
"version": 3,
"terraform_version": "0.11.7",
"serial": 10,
"lineage": "3522492e-477a-d0f7-4bfb-92ff34dce890",
"modules": [
{
"path": [
"root"
],
"outputs": {
"cloudfront_url": {
"sensitive": false,
"type": "string",
"value": "images.getlionel.com"
}
},
"resources": {
"aws_cloudfront_distribution.s3_distribution": {
"type": "aws_cloudfront_distribution",
"depends_on": [
"aws_s3_bucket.images",
"data.aws_acm_certificate.certificate",
"module.lambda"
],
"primary": {
"id": "E13BM2TQPB0JR5",
"attributes": {
"active_trusted_signers.%": "2",
"active_trusted_signers.enabled": "false",
"active_trusted_signers.items.#": "0",
"aliases.#": "1",
"aliases.919627538": "images.getlionel.com",
"arn": "arn:aws:cloudfront::771399579355:distribution/E13BM2TQPB0JR5",
"cache_behavior.#": "0",
"caller_reference": "2018-06-05T16:12:35.210439666+01:00",
"custom_error_response.#": "1",
"custom_error_response.827018418.error_caching_min_ttl": "0",
"custom_error_response.827018418.error_code": "502",
"custom_error_response.827018418.response_code": "0",
"custom_error_response.827018418.response_page_path": "",
"default_cache_behavior.#": "1",
"default_cache_behavior.591550119.allowed_methods.#": "3",
"default_cache_behavior.591550119.allowed_methods.0": "HEAD",
"default_cache_behavior.591550119.allowed_methods.1": "GET",
"default_cache_behavior.591550119.allowed_methods.2": "OPTIONS",
"default_cache_behavior.591550119.cached_methods.#": "2",
"default_cache_behavior.591550119.cached_methods.0": "HEAD",
"default_cache_behavior.591550119.cached_methods.1": "GET",
"default_cache_behavior.591550119.compress": "false",
"default_cache_behavior.591550119.default_ttl": "900",
"default_cache_behavior.591550119.field_level_encryption_id": "",
"default_cache_behavior.591550119.forwarded_values.#": "1",
"default_cache_behavior.591550119.forwarded_values.2555876073.cookies.#": "1",
"default_cache_behavior.591550119.forwarded_values.2555876073.cookies.2625240281.forward": "none",
"default_cache_behavior.591550119.forwarded_values.2555876073.cookies.2625240281.whitelisted_names.#": "0",
"default_cache_behavior.591550119.forwarded_values.2555876073.headers.#": "0",
"default_cache_behavior.591550119.forwarded_values.2555876073.query_string": "true",
"default_cache_behavior.591550119.forwarded_values.2555876073.query_string_cache_keys.#": "0",
"default_cache_behavior.591550119.lambda_function_association.#": "1",
"default_cache_behavior.591550119.lambda_function_association.2507691529.event_type": "origin-response",
"default_cache_behavior.591550119.lambda_function_association.2507691529.lambda_arn": "arn:aws:lambda:us-east-1:771399579355:function:origin_response-kompressor:6",
"default_cache_behavior.591550119.max_ttl": "86400",
"default_cache_behavior.591550119.min_ttl": "0",
"default_cache_behavior.591550119.smooth_streaming": "false",
"default_cache_behavior.591550119.target_origin_id": "s3_origin",
"default_cache_behavior.591550119.trusted_signers.#": "0",
"default_cache_behavior.591550119.viewer_protocol_policy": "redirect-to-https",
"default_root_object": "index.html",
"domain_name": "d1s3bkec8pnpn1.cloudfront.net",
"enabled": "true",
"etag": "E1W79CJEOVBSSY",
"hosted_zone_id": "Z2FDTNDATAQYW2",
"http_version": "http2",
"id": "E13BM2TQPB0JR5",
"in_progress_validation_batches": "0",
"is_ipv6_enabled": "true",
"last_modified_time": "2018-06-05 16:22:34.193 +0000 UTC",
"logging_config.#": "0",
"origin.#": "1",
"origin.2712114070.custom_header.#": "0",
"origin.2712114070.custom_origin_config.#": "1",
"origin.2712114070.custom_origin_config.3832794885.http_port": "80",
"origin.2712114070.custom_origin_config.3832794885.https_port": "443",
"origin.2712114070.custom_origin_config.3832794885.origin_keepalive_timeout": "5",
"origin.2712114070.custom_origin_config.3832794885.origin_protocol_policy": "http-only",
"origin.2712114070.custom_origin_config.3832794885.origin_read_timeout": "30",
"origin.2712114070.custom_origin_config.3832794885.origin_ssl_protocols.#": "2",
"origin.2712114070.custom_origin_config.3832794885.origin_ssl_protocols.0": "SSLv3",
"origin.2712114070.custom_origin_config.3832794885.origin_ssl_protocols.1": "TLSv1",
"origin.2712114070.domain_name": "kompressor-images-20180605151123383600000001.s3-website-eu-west-1.amazonaws.com",
"origin.2712114070.origin_id": "s3_origin",
"origin.2712114070.origin_path": "",
"origin.2712114070.s3_origin_config.#": "0",
"price_class": "PriceClass_All",
"restrictions.#": "1",
"restrictions.1097372288.geo_restriction.#": "1",
"restrictions.1097372288.geo_restriction.2625240281.locations.#": "0",
"restrictions.1097372288.geo_restriction.2625240281.restriction_type": "none",
"retain_on_delete": "false",
"status": "InProgress",
"tags.%": "0",
"viewer_certificate.#": "1",
"viewer_certificate.3642025046.acm_certificate_arn": "arn:aws:acm:us-east-1:771399579355:certificate/a668ff2a-0aeb-42a5-8973-0f95bed8a834",
"viewer_certificate.3642025046.cloudfront_default_certificate": "false",
"viewer_certificate.3642025046.iam_certificate_id": "",
"viewer_certificate.3642025046.minimum_protocol_version": "TLSv1",
"viewer_certificate.3642025046.ssl_support_method": "sni-only",
"web_acl_id": ""
},
"meta": {},
"tainted": false
},
"deposed": [],
"provider": "provider.aws"
},
"aws_route53_record.cdn_alias": {
"type": "aws_route53_record",
"depends_on": [
"aws_cloudfront_distribution.s3_distribution",
"data.aws_route53_zone.cdn"
],
"primary": {
"id": "Z2DCSWM33MDBXN_images.getlionel.com_A",
"attributes": {
"alias.#": "1",
"alias.1869111980.evaluate_target_health": "true",
"alias.1869111980.name": "d1s3bkec8pnpn1.cloudfront.net",
"alias.1869111980.zone_id": "Z2FDTNDATAQYW2",
"allow_overwrite": "true",
"fqdn": "images.getlionel.com",
"health_check_id": "",
"id": "Z2DCSWM33MDBXN_images.getlionel.com_A",
"name": "images.getlionel.com",
"records.#": "0",
"set_identifier": "",
"ttl": "0",
"type": "A",
"zone_id": "Z2DCSWM33MDBXN"
},
"meta": {
"schema_version": "2"
},
"tainted": false
},
"deposed": [],
"provider": "provider.aws"
},
"aws_s3_bucket.images": {
"type": "aws_s3_bucket",
"depends_on": [],
"primary": {
"id": "kompressor-images-20180605151123383600000001",
"attributes": {
"acceleration_status": "",
"acl": "public-read",
"arn": "arn:aws:s3:::kompressor-images-20180605151123383600000001",
"bucket": "kompressor-images-20180605151123383600000001",
"bucket_domain_name": "kompressor-images-20180605151123383600000001.s3.amazonaws.com",
"bucket_prefix": "kompressor-images-",
"bucket_regional_domain_name": "kompressor-images-20180605151123383600000001.s3.eu-west-1.amazonaws.com",
"force_destroy": "false",
"hosted_zone_id": "Z1BKCTXD74EZPE",
"id": "kompressor-images-20180605151123383600000001",
"logging.#": "0",
"region": "eu-west-1",
"replication_configuration.#": "0",
"request_payer": "BucketOwner",
"server_side_encryption_configuration.#": "0",
"tags.%": "0",
"versioning.#": "1",
"versioning.0.enabled": "false",
"versioning.0.mfa_delete": "false",
"website.#": "1",
"website.0.error_document": "index.html",
"website.0.index_document": "index.html",
"website.0.redirect_all_requests_to": "",
"website.0.routing_rules": "",
"website_domain": "s3-website-eu-west-1.amazonaws.com",
"website_endpoint": "kompressor-images-20180605151123383600000001.s3-website-eu-west-1.amazonaws.com"
},
"meta": {},
"tainted": false
},
"deposed": [],
"provider": "provider.aws"
},
"data.aws_acm_certificate.certificate": {
"type": "aws_acm_certificate",
"depends_on": [],
"primary": {
"id": "2018-06-05 16:21:08.009757447 +0000 UTC",
"attributes": {
"arn": "arn:aws:acm:us-east-1:771399579355:certificate/a668ff2a-0aeb-42a5-8973-0f95bed8a834",
"domain": "images.getlionel.com",
"id": "2018-06-05 16:21:08.009757447 +0000 UTC",
"most_recent": "true",
"types.#": "1",
"types.0": "AMAZON_ISSUED"
},
"meta": {},
"tainted": false
},
"deposed": [],
"provider": "provider.aws.us-east-1"
},
"data.aws_route53_zone.cdn": {
"type": "aws_route53_zone",
"depends_on": [],
"primary": {
"id": "Z2DCSWM33MDBXN",
"attributes": {
"caller_reference": "getlionel-HostedZo-DKFMUP58I9UA",
"comment": "",
"id": "Z2DCSWM33MDBXN",
"name": "getlionel.com.",
"name_servers.#": "4",
"name_servers.0": "ns-103.awsdns-12.com",
"name_servers.1": "ns-1778.awsdns-30.co.uk",
"name_servers.2": "ns-883.awsdns-46.net",
"name_servers.3": "ns-1379.awsdns-44.org",
"private_zone": "false",
"resource_record_set_count": "7",
"zone_id": "Z2DCSWM33MDBXN"
},
"meta": {},
"tainted": false
},
"deposed": [],
"provider": "provider.aws"
}
},
"depends_on": []
},
{
"path": [
"root",
"lambda"
],
"outputs": {
"origin_response_function_arn": {
"sensitive": false,
"type": "string",
"value": "arn:aws:lambda:us-east-1:771399579355:function:origin_response-kompressor:6"
},
"origin_response_function_name": {
"sensitive": false,
"type": "string",
"value": "origin_response-kompressor"
}
},
"resources": {
"aws_iam_role.iam_for_lambda": {
"type": "aws_iam_role",
"depends_on": [],
"primary": {
"id": "iam_for_lambda_at_edge",
"attributes": {
"arn": "arn:aws:iam::771399579355:role/iam_for_lambda_at_edge",
"assume_role_policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Effect\":\"Allow\",\"Principal\":{\"Service\":[\"lambda.amazonaws.com\",\"edgelambda.amazonaws.com\"]},\"Action\":\"sts:AssumeRole\"}]}",
"create_date": "2018-06-05T15:11:23Z",
"force_detach_policies": "false",
"id": "iam_for_lambda_at_edge",
"max_session_duration": "3600",
"name": "iam_for_lambda_at_edge",
"path": "/",
"unique_id": "AROAJHH3LIAR52NJALO6M"
},
"meta": {},
"tainted": false
},
"deposed": [],
"provider": "provider.aws"
},
"aws_iam_role_policy.lambda_role_policy": {
"type": "aws_iam_role_policy",
"depends_on": [
"aws_iam_role.iam_for_lambda"
],
"primary": {
"id": "iam_for_lambda_at_edge:lambda-policy-at-edge-kompressor",
"attributes": {
"id": "iam_for_lambda_at_edge:lambda-policy-at-edge-kompressor",
"name": "lambda-policy-at-edge-kompressor",
"policy": "{\n \"Version\": \"2012-10-17\",\n \"Statement\": [\n {\n \"Effect\": \"Allow\",\n \"Action\": [\n \"logs:CreateLogGroup\",\n \"logs:CreateLogStream\",\n \"logs:PutLogEvents\"\n ],\n \"Resource\": [\n \"*\"\n ]\n }\n ]\n}\n",
"role": "iam_for_lambda_at_edge"
},
"meta": {},
"tainted": false
},
"deposed": [],
"provider": "provider.aws"
},
"aws_lambda_function.origin_response": {
"type": "aws_lambda_function",
"depends_on": [
"aws_iam_role.iam_for_lambda",
"data.archive_file.lambda_origin_response"
],
"primary": {
"id": "origin_response-kompressor",
"attributes": {
"arn": "arn:aws:lambda:us-east-1:771399579355:function:origin_response-kompressor",
"dead_letter_config.#": "0",
"description": "",
"environment.#": "0",
"filename": "/Users/Lionel/Documents/terraform-aws-cloudfront-image-compression/.terraform/modules/7c9e0fdff45ce749c78ceab74c65b54b/origin_response.zip",
"function_name": "origin_response-kompressor",
"handler": "index.handler",
"id": "origin_response-kompressor",
"invoke_arn": "arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/arn:aws:lambda:us-east-1:771399579355:function:origin_response-kompressor/invocations",
"kms_key_arn": "",
"last_modified": "2018-06-05T16:22:31.526+0000",
"memory_size": "128",
"publish": "true",
"qualified_arn": "arn:aws:lambda:us-east-1:771399579355:function:origin_response-kompressor:6",
"reserved_concurrent_executions": "0",
"role": "arn:aws:iam::771399579355:role/iam_for_lambda_at_edge",
"runtime": "nodejs6.10",
"source_code_hash": "MImebiD1jj8O3BCMTAQI1OPYh4wlHjPrBJvlYM/P/gE=",
"source_code_size": "24388395",
"tags.%": "0",
"timeout": "5",
"tracing_config.#": "1",
"tracing_config.0.mode": "PassThrough",
"version": "6",
"vpc_config.#": "0"
},
"meta": {},
"tainted": false
},
"deposed": [],
"provider": "module.lambda.provider.aws.us-east-1"
},
"data.archive_file.lambda_origin_response": {
"type": "archive_file",
"depends_on": [],
"primary": {
"id": "5098be0481f065edd05720ddfd13fc65388da8fe",
"attributes": {
"id": "5098be0481f065edd05720ddfd13fc65388da8fe",
"output_base64sha256": "MImebiD1jj8O3BCMTAQI1OPYh4wlHjPrBJvlYM/P/gE=",
"output_md5": "af4a526bf2fc8d037bf4ab396786cd60",
"output_path": "/Users/Lionel/Documents/terraform-aws-cloudfront-image-compression/.terraform/modules/7c9e0fdff45ce749c78ceab74c65b54b/origin_response.zip",
"output_sha": "5098be0481f065edd05720ddfd13fc65388da8fe",
"output_size": "24388395",
"source.#": "0",
"source_dir": "/Users/Lionel/Documents/terraform-aws-cloudfront-image-compression/.terraform/modules/7c9e0fdff45ce749c78ceab74c65b54b/code/origin_response",
"type": "zip"
},
"meta": {},
"tainted": false
},
"deposed": [],
"provider": "provider.archive"
}
},
"depends_on": []
}
]
}