Skip to content

Commit cc5af56

Browse files
authored
fix(aws)!: Remove redundant fields from aws_lambda_runtimes (#6849)
1 parent f253759 commit cc5af56

File tree

2 files changed

+3
-19
lines changed

2 files changed

+3
-19
lines changed

plugins/source/aws/docs/tables/aws_lambda_runtimes.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,4 @@ The primary key for this table is **name**.
1010
|_cq_sync_time|Timestamp|
1111
|_cq_id|UUID|
1212
|_cq_parent_id|UUID|
13-
|account_id|String|
14-
|region|String|
1513
|name (PK)|String|

plugins/source/aws/resources/services/lambda/runtimes.go

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package lambda
22

33
import (
4-
"github.com/cloudquery/cloudquery/plugins/source/aws/client"
54
"github.com/cloudquery/cloudquery/plugins/source/aws/resources/services/lambda/models"
65
"github.com/cloudquery/plugin-sdk/schema"
76
"github.com/cloudquery/plugin-sdk/transformers"
@@ -12,24 +11,11 @@ func Runtimes() *schema.Table {
1211
Name: "aws_lambda_runtimes",
1312
Resolver: fetchLambdaRuntimes,
1413
Transform: transformers.TransformWithStruct(&models.RuntimeWrapper{}),
15-
Multiplex: client.ServiceAccountRegionMultiplexer("lambda"),
1614
Columns: []schema.Column{
1715
{
18-
Name: "account_id",
19-
Type: schema.TypeString,
20-
Resolver: client.ResolveAWSAccount,
21-
},
22-
{
23-
Name: "region",
24-
Type: schema.TypeString,
25-
Resolver: client.ResolveAWSRegion,
26-
},
27-
{
28-
Name: "name",
29-
Type: schema.TypeString,
30-
CreationOptions: schema.ColumnCreationOptions{
31-
PrimaryKey: true,
32-
},
16+
Name: "name",
17+
Type: schema.TypeString,
18+
CreationOptions: schema.ColumnCreationOptions{PrimaryKey: true},
3319
},
3420
},
3521
}

0 commit comments

Comments
 (0)