Skip to content

Commit

Permalink
correction de main.tf
Browse files Browse the repository at this point in the history
  • Loading branch information
SylvainArd committed Jul 6, 2024
1 parent 9cf6230 commit f6e38b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,9 @@ jobs:
INSTANCE_IDS=$(aws ec2 describe-instances --filters "Name=tag:Name,Values=backend-instance-*" --query "Reservations[*].Instances[*].InstanceId" --output text)
echo "Instance IDs: $INSTANCE_IDS"
for INSTANCE_ID in $INSTANCE_IDS; do
echo "Checking instance $INSTANCE_ID"
PUBLIC_IP=$(aws ec2 describe-instances --instance-ids $INSTANCE_ID --query "Reservations[*].Instances[*].PublicIpAddress" --output text)
echo "Connecting to $PUBLIC_IP"
echo "Public IP for instance $INSTANCE_ID: $PUBLIC_IP"
if [ -z "$PUBLIC_IP" ]; then
echo "No public IP found for instance $INSTANCE_ID"
exit 1
Expand Down

0 comments on commit f6e38b4

Please # to comment.