diff --git a/internal/meta/base_meta.go b/internal/meta/base_meta.go index 574aff8..4a31471 100644 --- a/internal/meta/base_meta.go +++ b/internal/meta/base_meta.go @@ -402,6 +402,10 @@ func (meta baseMeta) ExportResourceMapping(ctx context.Context, l ImportList) er f := hclwrite.NewFile() body := f.Body() for _, item := range l { + if item.Skip() { + continue + } + // The import block blk := hclwrite.NewBlock("import", nil) blk.Body().SetAttributeValue("id", cty.StringVal(item.TFResourceId))