Skip to content

Commit

Permalink
fix: remove hard coded sg from client init script
Browse files Browse the repository at this point in the history
  • Loading branch information
assafgi committed Jul 19, 2024
1 parent 3a10135 commit 360ea4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/clients/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ for (( card_index=0; card_index<$max_network_cards ; card_index++)); do
if [[ $counter -eq $additional_nics_num ]]; then
break
fi
eni=$(aws ec2 create-network-interface --region "$region" --subnet-id "$subnet_id" --groups sg-005056932d969643a) # groups should not be in quotes it needs to be a list
eni=$(aws ec2 create-network-interface --region "$region" --subnet-id "$subnet_id" --groups ${groups}) # groups should not be in quotes it needs to be a list
network_interface_id=$(echo "$eni" | python3 -c "import sys, json; print(json.load(sys.stdin)['NetworkInterface']['NetworkInterfaceId'])")
attachment=$(aws ec2 attach-network-interface --region "$region" --network-card-index "$card_index" --device-index "$interface_index" --instance-id "$instance_id" --network-interface-id "$network_interface_id")
attachment_id=$(echo "$attachment" | python3 -c "import sys, json; print(json.load(sys.stdin)['AttachmentId'])")
Expand Down

0 comments on commit 360ea4e

Please sign in to comment.