Skip to content

Commit

Permalink
X
Browse files Browse the repository at this point in the history
  • Loading branch information
John Major committed Dec 12, 2024
1 parent 82e2da9 commit 586f013
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions bin/daylily-create-ephemeral-cluster
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,9 @@ echo ""
# Fetch all key pairs in the given region
key_data=$(aws ec2 describe-key-pairs --region "$region" --query 'KeyPairs[*].[KeyName, KeyType]' --output text --profile $AWS_PROFILE | grep omics)

echo "KEYs in region $region:"
echo "$key_data"

# Filter for keys with the required suffix
filtered_keys=()
while IFS=$'\t' read -r key_name key_type; do
Expand Down Expand Up @@ -353,6 +356,7 @@ echo ""
# Check if no valid keys were found
if [[ ${#valid_keys[@]} -eq 0 ]]; then
echo "No valid ED25519 keys with matching PEM files were found."
echo "Please ensure the required keys are available in the $HOME/.ssh directory AND that the keypair name includes 'omics' in the name."
return 3
fi
# Present valid keys to the user using 'select'
Expand Down
6 changes: 4 additions & 2 deletions config/daylily_ephemeral_cost_config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
zones:
- us-east-1a
aws_profile: "default"
- eu-central-1a
- eu-central-1b
- eu-central-1c
aws_profile: "daylily"
vcpu_cost_per_min: 0.05
storage_rate: 0.023
transfer_rate: 0.01
Expand Down

0 comments on commit 586f013

Please sign in to comment.