-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathaws_glue_catalog_table.cloudtrail.tf
130 lines (125 loc) · 3.26 KB
/
aws_glue_catalog_table.cloudtrail.tf
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
resource "aws_glue_catalog_table" "cloudtrail" {
name = "cloudtrail_logs_trails_${data.aws_caller_identity.current.account_id}_${var.trail["s3_key_prefix"]}"
database_name = aws_glue_catalog_database.cloudtrail.name
owner = "hadoop"
parameters = {
"EXTERNAL" = "TRUE"
"classification" = "cloudtrail"
"comment" = "CloudTrail table for ${local.trails_bucket} bucket"
"transient_lastDdlTime" = "1595852255"
}
table_type = "EXTERNAL_TABLE"
storage_descriptor {
bucket_columns = []
compressed = false
input_format = "com.amazon.emr.cloudtrail.CloudTrailInputFormat"
location = "s3://${local.trails_bucket}/${var.trail["s3_key_prefix"]}/AWSLogs/${data.aws_caller_identity.current.account_id}/CloudTrail"
number_of_buckets = -1
output_format = "org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat"
parameters = {}
stored_as_sub_directories = false
columns {
name = "eventversion"
type = "string"
}
columns {
name = "useridentity"
type = "struct<type:string,principalId:string,arn:string,accountId:string,invokedBy:string,accessKeyId:string,userName:string,sessionContext:struct<attributes:struct<mfaAuthenticated:string,creationDate:string>,sessionIssuer:struct<type:string,principalId:string,arn:string,accountId:string,userName:string>>>"
}
columns {
name = "eventtime"
type = "string"
}
columns {
name = "eventsource"
type = "string"
}
columns {
name = "eventname"
type = "string"
}
columns {
name = "awsregion"
type = "string"
}
columns {
name = "sourceipaddress"
type = "string"
}
columns {
name = "useragent"
type = "string"
}
columns {
name = "errorcode"
type = "string"
}
columns {
name = "errormessage"
type = "string"
}
columns {
name = "requestparameters"
type = "string"
}
columns {
name = "responseelements"
type = "string"
}
columns {
name = "additionaleventdata"
type = "string"
}
columns {
name = "requestid"
type = "string"
}
columns {
name = "eventid"
type = "string"
}
columns {
name = "resources"
type = "array<struct<arn:string,accountId:string,type:string>>"
}
columns {
name = "eventtype"
type = "string"
}
columns {
name = "apiversion"
type = "string"
}
columns {
name = "readonly"
type = "string"
}
columns {
name = "recipientaccountid"
type = "string"
}
columns {
name = "serviceeventdetails"
type = "string"
}
columns {
name = "sharedeventid"
type = "string"
}
columns {
name = "vpcendpointid"
type = "string"
}
ser_de_info {
parameters = {
"serialization.format" = "1"
}
serialization_library = "com.amazon.emr.hive.serde.CloudTrailSerde"
}
skewed_info {
skewed_column_names = []
skewed_column_value_location_maps = {}
skewed_column_values = []
}
}
}