Skip to content

Latest commit

 

History

History
103 lines (75 loc) · 2.4 KB

Export-AvmTerraformModule.md

File metadata and controls

103 lines (75 loc) · 2.4 KB

Export-AvmTerraformModule

Synopsis

Export one tagged Terraform AVM module from Azure/avm.

Description

Resolves the exact tf/.../metadata.json module identity, copies only that module tree from an exact Git tree manifest, rejects unsupported links, Git LFS, submodules, development-only workflow content, and relative Terraform sources outside the module root, then adds an idempotent development-location banner to README.md. Shared publishing-repository policy files are owned by the caller.

Syntax

Export-AvmTerraformModule [-Root] <string> [-ModulePath] <string> [-Destination] <string> [-AllowPathFallback] [-SkipModuleVersionCheck] [-WhatIf] [-Confirm] [<CommonParameters>]

Parameters

-AllowPathFallback

Allow a path-resolved Conftest binary with the lock-pinned version when parsing Terraform configuration.

Property Value
Type Switch
Required false
Position named
Default value False
Accept pipeline input false
Accept wildcard characters false

-Destination

Empty or nonexistent directory that receives the isolated module tree.

Property Value
Type String
Required true
Position 3
Default value
Accept pipeline input false
Accept wildcard characters false

-ModulePath

Exact repository-relative metadata-declared module root.

Property Value
Type String
Required true
Position 2
Default value
Accept pipeline input false
Accept wildcard characters false

-Root

Azure/avm checkout root at the selected release tag.

Property Value
Type String
Required true
Position 1
Default value
Accept pipeline input false
Accept wildcard characters false

-SkipModuleVersionCheck

Skip the PowerShell Gallery version check for source or offline callers.

Property Value
Type Switch
Required false
Position named
Default value False
Accept pipeline input false
Accept wildcard characters false

Examples

EXAMPLE 1

Export-AvmTerraformModule -Root . -ModulePath 'tf/ptn/example-repo' -Destination $temp

Outputs

  • A PSCustomObject describing the resolved source and exported file count.