Skip to content

Commit da39ed9

Browse files
authored
change the structure to one line (#2369)
1 parent fea5b42 commit da39ed9

File tree

1 file changed

+2
-33
lines changed

1 file changed

+2
-33
lines changed

terraform/etl/61-aws-glue-catalog-tables-and-views.tf

Lines changed: 2 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -54,32 +54,7 @@ resource "aws_glue_catalog_table" "cloudtrail_management_events" {
5454

5555
columns {
5656
name = "userIdentity"
57-
type = <<-EOT
58-
struct<
59-
type:string,
60-
principalId:string,
61-
arn:string,
62-
accountId:string,
63-
invokedBy:string,
64-
accessKeyId:string,
65-
userName:string,
66-
sessionContext:struct<
67-
attributes:struct<
68-
mfaAuthenticated:string,
69-
creationDate:string>,
70-
sessionIssuer:struct<
71-
type:string,
72-
principalId:string,
73-
arn:string,
74-
accountId:string,
75-
userName:string>,
76-
ec2RoleDelivery:string,
77-
webIdFederationData:struct<
78-
federatedprovider:string,
79-
attributes:map<string,string>>
80-
>
81-
>
82-
EOT
57+
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>,ec2RoleDelivery:string,webIdFederationData:struct<federatedprovider:string,attributes:map<string,string>>>>"
8358
}
8459

8560
columns {
@@ -189,13 +164,7 @@ resource "aws_glue_catalog_table" "cloudtrail_management_events" {
189164

190165
columns {
191166
name = "tlsDetails"
192-
type = <<-EOT
193-
struct<
194-
tlsVersion:string,
195-
cipherSuite:string,
196-
clientProvidedHostHeader:string
197-
>
198-
EOT
167+
type = "struct<tlsVersion:string,cipherSuite:string,clientProvidedHostHeader:string>"
199168
}
200169
}
201170

0 commit comments

Comments
 (0)