Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DO NOT MERGE] AIoEKS Blueprint Consolidation #751

Draft
wants to merge 20 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
93 changes: 0 additions & 93 deletions ai-ml/bionemo/addons.tf

This file was deleted.

45 changes: 0 additions & 45 deletions ai-ml/bionemo/cleanup.sh

This file was deleted.

145 changes: 0 additions & 145 deletions ai-ml/bionemo/eks.tf

This file was deleted.

36 changes: 4 additions & 32 deletions ai-ml/bionemo/install.sh
Original file line number Diff line number Diff line change
@@ -1,34 +1,6 @@
#!/bin/bash
# Copy the base infrastructure into the folder
cp -r ../infrastructure/terraform/* ./terraform

# List of Terraform modules to apply in sequence
targets=(
"module.vpc"
"module.eks"
)

# Initialize Terraform
echo "Initializing ..."
terraform init --upgrade || echo "\"terraform init\" failed"

# Apply modules in sequence
for target in "${targets[@]}"
do
echo "Applying module $target..."
apply_output=$(terraform apply -target="$target" -auto-approve 2>&1 | tee /dev/tty)
if [[ ${PIPESTATUS[0]} -eq 0 && $apply_output == *"Apply complete"* ]]; then
echo "SUCCESS: Terraform apply of $target completed successfully"
else
echo "FAILED: Terraform apply of $target failed"
exit 1
fi
done

# Final apply to catch any remaining resources
echo "Applying remaining resources..."
apply_output=$(terraform apply -auto-approve 2>&1 | tee /dev/tty)
if [[ ${PIPESTATUS[0]} -eq 0 && $apply_output == *"Apply complete"* ]]; then
echo "SUCCESS: Terraform apply of all modules completed successfully"
else
echo "FAILED: Terraform apply of all modules failed"
exit 1
fi
cd terraform
source ./install.sh
53 changes: 0 additions & 53 deletions ai-ml/bionemo/main.tf

This file was deleted.

9 changes: 0 additions & 9 deletions ai-ml/bionemo/outputs.tf

This file was deleted.

3 changes: 3 additions & 0 deletions ai-ml/bionemo/terraform/blueprint.tfvars
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
name = "bionemo-on-eks"
enable_aws_fsx_csi_driver = "true"
deploy_fsx_volume = "true"
Loading
Loading