Dagger
Search

infrabox

A module for playing on the terraform ecosystem

Installation

dagger install github.com/Dudesons/daggerverse/infrabox@e1cf0366989ebc8d26ee94d7ac7e1c3b15dfef1a

Entrypoint

Return Type
Infrabox
Example
dagger -m github.com/Dudesons/daggerverse/infrabox@e1cf0366989ebc8d26ee94d7ac7e1c3b15dfef1a call \
func (m *myModule) example() *Infrabox  {
	return dag.
			Infrabox()
}
@function
def example() -> dag.Infrabox:
	return (
		dag.infrabox()
	)
@func()
example(): Infrabox {
	return dag
		.infrabox()
}

Types

Infrabox 🔗

terragrunt() 🔗

Expose a terragrunt runtime

Return Type
Tf !
Arguments
NameTypeDefault ValueDescription
imageString "alpine/terragrunt"The image to use which contain terragrunt ecosystem
versionString "1.7.4"The version of the image to use
ctrContainer -A container to use as a base
Example
dagger -m github.com/Dudesons/daggerverse/infrabox@e1cf0366989ebc8d26ee94d7ac7e1c3b15dfef1a call \
 terragrunt
func (m *myModule) example() *InfraboxTf  {
	return dag.
			Infrabox().
			Terragrunt()
}
@function
def example() -> dag.InfraboxTf:
	return (
		dag.infrabox()
		.terragrunt()
	)
@func()
example(): InfraboxTf {
	return dag
		.infrabox()
		.terragrunt()
}

Tf 🔗

tfPlan() 🔗

Content of the terraform plan

Return Type
File !
Example
dagger -m github.com/Dudesons/daggerverse/infrabox@e1cf0366989ebc8d26ee94d7ac7e1c3b15dfef1a call \
 terragrunt \
 tf-plan
func (m *myModule) example() *File  {
	return dag.
			Infrabox().
			Terragrunt().
			TfPlan()
}
@function
def example() -> dagger.File:
	return (
		dag.infrabox()
		.terragrunt()
		.tf_plan()
	)
@func()
example(): File {
	return dag
		.infrabox()
		.terragrunt()
		.tfPlan()
}

withSource() 🔗

Mount the source code at the given path

Return Type
Tf !
Arguments
NameTypeDefault ValueDescription
pathString !-No description provided
srcDirectory !-No description provided
Example
dagger -m github.com/Dudesons/daggerverse/infrabox@e1cf0366989ebc8d26ee94d7ac7e1c3b15dfef1a call \
 terragrunt \
 with-source --path string --src DIR_PATH
func (m *myModule) example(path string, src *Directory) *InfraboxTf  {
	return dag.
			Infrabox().
			Terragrunt().
			WithSource(path, src)
}
@function
def example(path: str, src: dagger.Directory) -> dag.InfraboxTf:
	return (
		dag.infrabox()
		.terragrunt()
		.with_source(path, src)
	)
@func()
example(path: string, src: Directory): InfraboxTf {
	return dag
		.infrabox()
		.terragrunt()
		.withSource(path, src)
}

withContainer() 🔗

Use a new container

Return Type
Tf !
Arguments
NameTypeDefault ValueDescription
ctrContainer !-No description provided
Example
dagger -m github.com/Dudesons/daggerverse/infrabox@e1cf0366989ebc8d26ee94d7ac7e1c3b15dfef1a call \
 terragrunt \
 with-container --ctr IMAGE:TAG
func (m *myModule) example(ctr *Container) *InfraboxTf  {
	return dag.
			Infrabox().
			Terragrunt().
			WithContainer(ctr)
}
@function
def example(ctr: dagger.Container) -> dag.InfraboxTf:
	return (
		dag.infrabox()
		.terragrunt()
		.with_container(ctr)
	)
@func()
example(ctr: Container): InfraboxTf {
	return dag
		.infrabox()
		.terragrunt()
		.withContainer(ctr)
}

withSecretDotEnv() 🔗

Convert a dotfile format to secret environment variables in the container (could be use to configure providers)

Return Type
Tf !
Arguments
NameTypeDefault ValueDescription
dotEnvSecret !-No description provided
Example
dagger -m github.com/Dudesons/daggerverse/infrabox@e1cf0366989ebc8d26ee94d7ac7e1c3b15dfef1a call \
 terragrunt \
 with-secret-dot-env --dot-env env:MYSECRET
func (m *myModule) example(dotEnv *Secret) *InfraboxTf  {
	return dag.
			Infrabox().
			Terragrunt().
			WithSecretDotEnv(dotEnv)
}
@function
def example(dot_env: dagger.Secret) -> dag.InfraboxTf:
	return (
		dag.infrabox()
		.terragrunt()
		.with_secret_dot_env(dot_env)
	)
@func()
example(dotEnv: Secret): InfraboxTf {
	return dag
		.infrabox()
		.terragrunt()
		.withSecretDotEnv(dotEnv)
}

disableColor() 🔗

Indicate to disable the the color in the output

Return Type
Tf !
Example
dagger -m github.com/Dudesons/daggerverse/infrabox@e1cf0366989ebc8d26ee94d7ac7e1c3b15dfef1a call \
 terragrunt \
 disable-color
func (m *myModule) example() *InfraboxTf  {
	return dag.
			Infrabox().
			Terragrunt().
			DisableColor()
}
@function
def example() -> dag.InfraboxTf:
	return (
		dag.infrabox()
		.terragrunt()
		.disable_color()
	)
@func()
example(): InfraboxTf {
	return dag
		.infrabox()
		.terragrunt()
		.disableColor()
}

container() 🔗

Expose the container

Return Type
Container !
Example
dagger -m github.com/Dudesons/daggerverse/infrabox@e1cf0366989ebc8d26ee94d7ac7e1c3b15dfef1a call \
 terragrunt \
 container
func (m *myModule) example() *Container  {
	return dag.
			Infrabox().
			Terragrunt().
			Container()
}
@function
def example() -> dagger.Container:
	return (
		dag.infrabox()
		.terragrunt()
		.container()
	)
@func()
example(): Container {
	return dag
		.infrabox()
		.terragrunt()
		.container()
}

do() 🔗

Execute the call chain

Return Type
String !
Example
dagger -m github.com/Dudesons/daggerverse/infrabox@e1cf0366989ebc8d26ee94d7ac7e1c3b15dfef1a call \
 terragrunt \
 do
func (m *myModule) example(ctx context.Context) string  {
	return dag.
			Infrabox().
			Terragrunt().
			Do(ctx)
}
@function
async def example() -> str:
	return await (
		dag.infrabox()
		.terragrunt()
		.do()
	)
@func()
async example(): Promise<string> {
	return dag
		.infrabox()
		.terragrunt()
		.do()
}

directory() 🔗

Return the source directory

Return Type
Directory !
Example
dagger -m github.com/Dudesons/daggerverse/infrabox@e1cf0366989ebc8d26ee94d7ac7e1c3b15dfef1a call \
 terragrunt \
 directory
func (m *myModule) example() *Directory  {
	return dag.
			Infrabox().
			Terragrunt().
			Directory()
}
@function
def example() -> dagger.Directory:
	return (
		dag.infrabox()
		.terragrunt()
		.directory()
	)
@func()
example(): Directory {
	return dag
		.infrabox()
		.terragrunt()
		.directory()
}

shell() 🔗

Open a shell

Return Type
Container !
Example
dagger -m github.com/Dudesons/daggerverse/infrabox@e1cf0366989ebc8d26ee94d7ac7e1c3b15dfef1a call \
 terragrunt \
 shell
func (m *myModule) example() *Container  {
	return dag.
			Infrabox().
			Terragrunt().
			Shell()
}
@function
def example() -> dagger.Container:
	return (
		dag.infrabox()
		.terragrunt()
		.shell()
	)
@func()
example(): Container {
	return dag
		.infrabox()
		.terragrunt()
		.shell()
}

withCacheBurster() 🔗

Define the cache buster strategy

Return Type
Tf !
Arguments
NameTypeDefault ValueDescription
cacheBursterLevelString -Define if the cache burster level is done per day ('daily'), per hour ('hour'), per minute ('minute'), per second ('default') or no cache buster ('none')
Example
dagger -m github.com/Dudesons/daggerverse/infrabox@e1cf0366989ebc8d26ee94d7ac7e1c3b15dfef1a call \
 terragrunt \
 with-cache-burster
func (m *myModule) example() *InfraboxTf  {
	return dag.
			Infrabox().
			Terragrunt().
			WithCacheBurster()
}
@function
def example() -> dag.InfraboxTf:
	return (
		dag.infrabox()
		.terragrunt()
		.with_cache_burster()
	)
@func()
example(): InfraboxTf {
	return dag
		.infrabox()
		.terragrunt()
		.withCacheBurster()
}

withTfPlan() 🔗

Define the cache buster strategy

Return Type
Tf !
Arguments
NameTypeDefault ValueDescription
planFileFile !-A terraform plan file to apply
Example
dagger -m github.com/Dudesons/daggerverse/infrabox@e1cf0366989ebc8d26ee94d7ac7e1c3b15dfef1a call \
 terragrunt \
 with-tf-plan --plan-file file:path
func (m *myModule) example(planFile *File) *InfraboxTf  {
	return dag.
			Infrabox().
			Terragrunt().
			WithTfPlan(planFile)
}
@function
def example(plan_file: dagger.File) -> dag.InfraboxTf:
	return (
		dag.infrabox()
		.terragrunt()
		.with_tf_plan(plan_file)
	)
@func()
example(planFile: File): InfraboxTf {
	return dag
		.infrabox()
		.terragrunt()
		.withTfPlan(planFile)
}

plan() 🔗

Run a plan on a specific stack

Return Type
Tf !
Arguments
NameTypeDefault ValueDescription
workDirString !-Define the path where to execute the command
destroyModeBoolean -Define if we are executing the plan in destroy mode or not
detailedExitCodeBoolean -Define if the exit code is in detailed mode or not (0 - Succeeded, diff is empty (no changes) | 1 - Errored | 2 - Succeeded, there is a diff)
savePlanBoolean -Define if the plan is saved in a file
Example
dagger -m github.com/Dudesons/daggerverse/infrabox@e1cf0366989ebc8d26ee94d7ac7e1c3b15dfef1a call \
 terragrunt \
 plan --work-dir string
func (m *myModule) example(workDir string) *InfraboxTf  {
	return dag.
			Infrabox().
			Terragrunt().
			Plan(workDir)
}
@function
def example(work_dir: str) -> dag.InfraboxTf:
	return (
		dag.infrabox()
		.terragrunt()
		.plan(work_dir)
	)
@func()
example(workDir: string): InfraboxTf {
	return dag
		.infrabox()
		.terragrunt()
		.plan(workDir)
}

apply() 🔗

Run an apply on a specific stack

Return Type
Tf !
Arguments
NameTypeDefault ValueDescription
workDirString !-Define the path where to execute the command
destroyModeBoolean -Define if we are executing the plan in destroy mode or not
Example
dagger -m github.com/Dudesons/daggerverse/infrabox@e1cf0366989ebc8d26ee94d7ac7e1c3b15dfef1a call \
 terragrunt \
 apply --work-dir string
func (m *myModule) example(workDir string) *InfraboxTf  {
	return dag.
			Infrabox().
			Terragrunt().
			Apply(workDir)
}
@function
def example(work_dir: str) -> dag.InfraboxTf:
	return (
		dag.infrabox()
		.terragrunt()
		.apply(work_dir)
	)
@func()
example(workDir: string): InfraboxTf {
	return dag
		.infrabox()
		.terragrunt()
		.apply(workDir)
}

format() 🔗

Format the code

Return Type
Tf !
Arguments
NameTypeDefault ValueDescription
workDirString !-No description provided
checkBoolean !-No description provided
Example
dagger -m github.com/Dudesons/daggerverse/infrabox@e1cf0366989ebc8d26ee94d7ac7e1c3b15dfef1a call \
 terragrunt \
 format --work-dir string --check boolean
func (m *myModule) example(workDir string, check bool) *InfraboxTf  {
	return dag.
			Infrabox().
			Terragrunt().
			Format(workDir, check)
}
@function
def example(work_dir: str, check: bool) -> dag.InfraboxTf:
	return (
		dag.infrabox()
		.terragrunt()
		.format(work_dir, check)
	)
@func()
example(workDir: string, check: boolean): InfraboxTf {
	return dag
		.infrabox()
		.terragrunt()
		.format(workDir, check)
}

output() 🔗

Return the output of a specific stack

Return Type
Tf !
Arguments
NameTypeDefault ValueDescription
workDirString !-No description provided
isJsonBoolean !-No description provided
Example
dagger -m github.com/Dudesons/daggerverse/infrabox@e1cf0366989ebc8d26ee94d7ac7e1c3b15dfef1a call \
 terragrunt \
 output --work-dir string --is-json boolean
func (m *myModule) example(workDir string, isJson bool) *InfraboxTf  {
	return dag.
			Infrabox().
			Terragrunt().
			Output(workDir, isJson)
}
@function
def example(work_dir: str, is_json: bool) -> dag.InfraboxTf:
	return (
		dag.infrabox()
		.terragrunt()
		.output(work_dir, is_json)
	)
@func()
example(workDir: string, isJson: boolean): InfraboxTf {
	return dag
		.infrabox()
		.terragrunt()
		.output(workDir, isJson)
}

show() 🔗

Run a show on a specific state or plan file

Return Type
Tf !
Arguments
NameTypeDefault ValueDescription
ojsonBoolean -Define if the output is in machine-readable form
pathString !-Define a path to a plan file or state
Example
dagger -m github.com/Dudesons/daggerverse/infrabox@e1cf0366989ebc8d26ee94d7ac7e1c3b15dfef1a call \
 terragrunt \
 show --path string
func (m *myModule) example(path string) *InfraboxTf  {
	return dag.
			Infrabox().
			Terragrunt().
			Show(path)
}
@function
def example(path: str) -> dag.InfraboxTf:
	return (
		dag.infrabox()
		.terragrunt()
		.show(path)
	)
@func()
example(path: string): InfraboxTf {
	return dag
		.infrabox()
		.terragrunt()
		.show(path)
}

runAll() 🔗

Execute the run-all command (only available for terragrunt)

Return Type
Tf !
Arguments
NameTypeDefault ValueDescription
workDirString !-No description provided
cmdString !-No description provided
Example
dagger -m github.com/Dudesons/daggerverse/infrabox@e1cf0366989ebc8d26ee94d7ac7e1c3b15dfef1a call \
 terragrunt \
 run-all --work-dir string --cmd string
func (m *myModule) example(workDir string, cmd string) *InfraboxTf  {
	return dag.
			Infrabox().
			Terragrunt().
			RunAll(workDir, cmd)
}
@function
def example(work_dir: str, cmd: str) -> dag.InfraboxTf:
	return (
		dag.infrabox()
		.terragrunt()
		.run_all(work_dir, cmd)
	)
@func()
example(workDir: string, cmd: string): InfraboxTf {
	return dag
		.infrabox()
		.terragrunt()
		.runAll(workDir, cmd)
}