Skip to content

Commit

Permalink
fix aws waf cannot convert primitive with NO type information (#2826)
Browse files Browse the repository at this point in the history
  • Loading branch information
mariuskimmina authored Dec 13, 2023
1 parent 2063bf6 commit 108159b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion providers/aws/resources/aws_waf.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ func (a *mqlAwsWaf) acls() ([]interface{}, error) {
ctx := context.Background()
acls := []interface{}{}
nextMarker := aws.String("No-Marker-to-begin-with")
scope := waftypes.Scope(a.Scope.Data)
scopeString := a.Scope.Data
scope := waftypes.Scope(scopeString)
params := &wafv2.ListWebACLsInput{Scope: scope}
for nextMarker != nil {
aclsRes, err := svc.ListWebACLs(ctx, params)
Expand All @@ -96,6 +97,7 @@ func (a *mqlAwsWaf) acls() ([]interface{}, error) {
mqlAcl, err := CreateResource(a.MqlRuntime, "aws.waf.acl",
map[string]*llx.RawData{
"id": llx.StringDataPtr(acl.Id),
"scope": llx.StringData(scopeString),
"arn": llx.StringDataPtr(acl.ARN),
"name": llx.StringDataPtr(acl.Name),
"description": llx.StringDataPtr(acl.Description),
Expand Down

0 comments on commit 108159b

Please sign in to comment.