Repository for setting up simple MLOps infrastructure
- Install terraform
- Set up an AWS account and a default aws-cli profile with a corresponding Acces key ID an a Secret access key.
- Create a
.env
file in the same directory wheremain.tf
is located and contains the following info:NOTE: DO NOT VERSION THEAWS_ACCESS_KEY_ID = <my_access_key_id> AWS_SECRET_ACCESS_KEY = <my_secret_access_key>
.env
FILE WITH GIT! - create a python virtual environment and instal
pydotenv[cli]
. This tool will be used to pass environmental variables stored in the.env
file to terraform. - Run
dotenv run terraform init
- Make any desired changes to the terraform state.
- Run
dotenv run terraform apply
to apply changes. - Profit!