MCPcopy
hub / github.com/Azure/aztfexport / WriteResourceMapping

Method WriteResourceMapping

internal/meta/base_meta.go:80–80  ·  view source on GitHub ↗

WriteResourceMapping writes a resource mapping file to the output directory. In case import block generation is specified, a TF import block file will also be generated.

(ctx context.Context, l ImportList)

Source from the content-addressed store, hash-verified

78 GetImportBlocks(ctx context.Context, l ImportList) []byte
79 // WriteResourceMapping writes a resource mapping file to the output directory. In case import block generation is specified, a TF import block file will also be generated.
80 WriteResourceMapping(ctx context.Context, l ImportList) error
81 // CleanUpWorkspace is a weired method that is only meant to be used internally by aztfexport, which under the hood will remove everything in the output directory, except the generated TF config.
82 // This method does nothing if HCLOnly in the Config is not set.
83 CleanUpWorkspace(ctx context.Context) error

Callers 3

BatchImportFunction · 0.65
UpdateMethod · 0.65
ExportResourceMappingFunction · 0.65

Implementers 2

baseMetainternal/meta/base_meta.go
MetaGroupDummyinternal/meta/meta_dummy.go

Calls

no outgoing calls

Tested by

no test coverage detected