This repository has been archived on 2024-07-19. You can view files and clone it, but cannot push or open issues or pull requests.
lambda-boilerplate/script/plan
Marc Cataford 494bb4d681
refactor: pure bash instead of python scripts (#9)
docs: instructions around tooling

infra: fix linting and CI
2022-09-23 01:11:41 -04:00

17 lines
365 B
Bash

#!/usr/bin/bash
# Generates a plan for the given project.
#
# The project name is expected to be passed as an environment variable,
# i.e. PROJECT=app . script/plan
(
source $(dirname $0)/../.config
PROJECT_ROOT=$(realpath $BOOTSTRAP_ROOT/infrastructure/$PROJECT)
cd $PROJECT_ROOT
terraform init
terraform plan --var-file $VARIABLES_PATH
)