Skip to content

Commit

Permalink
aws/resourcetype_enumer.go: generate
Browse files Browse the repository at this point in the history
Generate resourcetype_enumer regarding new types

 * LaunchConfiguration
 * LaunchTemplate
 * AutoscalingGroup
  • Loading branch information
talset committed Nov 27, 2019
1 parent 903a049 commit cf92295
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 8 deletions.
17 changes: 13 additions & 4 deletions aws/resourcetype_enumer.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions provider/import.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,11 @@ func Import(ctx context.Context, p Provider, hcl, tfstate writer.Writer, f *filt
if err != nil {
cause := errors.Cause(err)

// All those ignored errors are types of errors to identify that something happend, but not that something went wrong
// some of them are to skip the resource and others just informative
// we'll continue to the next resource
fmt.Fprintf(out, "\ncould not read resource: %s.%s\n", re.Type(), re.ID())
// Errors are ignored. If a resource is invalid we assume it can be skipped, it can be related to inconsistencies in deployed resources.
// So instead of failing and stopping execution we ignore them and continue (we log them if -v is specified)

logger.Log("error", cause)

continue
}

Expand Down

0 comments on commit cf92295

Please sign in to comment.