10 lines
300 B
Bash
Executable File
10 lines
300 B
Bash
Executable File
# Select Development workspace
|
|
terraform workspace select prod
|
|
|
|
# Plan the current execution with variables and verify
|
|
GIT_HASH=$(git rev-parse --short HEAD)
|
|
terraform plan -var-file prod.tfvars -var git_version=${GIT_HASH} -out plans/prod.plan
|
|
|
|
# Apply Configuration
|
|
terraform apply plans/prod.plan
|