pub struct Terraform;
Expand description
Used to store the result of the terraform command.
Implementations§
Source§impl Terraform
impl Terraform
Sourcepub fn init(stack: &Stack) -> Result<Command>
pub fn init(stack: &Stack) -> Result<Command>
Will synthesize (see Terraform::synth
). Returns a prepared Terraform command to run
initialization.
§Errors
Will return Err
if failed to synthesize stack (see Terraform::synth
).
§Panics
Will panic if failed to generate document (see Terraform::synth
).
Sourcepub fn validate(stack: &Stack) -> Result<Command>
pub fn validate(stack: &Stack) -> Result<Command>
Will synthesize (see Terraform::synth
). Returns a prepared Terraform command to run
validate.
§Errors
Will return Err
if failed to synthesize stack (see Terraform::synth
).
§Panics
Will panic if failed to generate document (see Terraform::synth
).
Sourcepub fn apply(stack: &Stack) -> Result<Command>
pub fn apply(stack: &Stack) -> Result<Command>
Will synthesize (see Terraform::synth
). Returns a prepared Terraform command to run
deploy.
§Errors
Will return Err
if failed to synthesize stack (see Terraform::synth
).
§Panics
Will panic if failed to generate document (see Terraform::synth
).
Sourcepub fn destroy(stack: &Stack) -> Result<Command>
pub fn destroy(stack: &Stack) -> Result<Command>
Will synthesize (see Terraform::synth
). Returns a prepared Terraform command to run
destroy.
§Errors
Will return Err
if failed to synthesize stack (see Terraform::synth
).
§Panics
Will panic if failed to generate document (see Terraform::synth
).
Sourcepub fn plan(stack: &Stack) -> Result<Command>
pub fn plan(stack: &Stack) -> Result<Command>
Will synthesize (see Terraform::synth
). Returns a prepared Terraform command to run
plan.
§Errors
Will return Err
if failed to synthesize stack (see Terraform::synth
).
§Panics
Will panic if failed to generate document (see Terraform::synth
).