🕵️ SicherheitslückenHak5: Hackers Just Poisoned the Rust Supply Chain | Threat Wire(01.09.2026 um 14:00 Uhr)
🕵️ SicherheitslückenHak5: Hackers Found a Way Into Humanoid Robots | Threat Wire(04.09.2026 um 15:04 Uhr)
🔧 AI Nachrichten Bits und so #1021 (Passwort für Laufwerk)(31.08.2026 um 22:15 Uhr)
🔧 AI Nachrichten Bits und so #1022 (Wie Weißbier)(06.09.2026 um 20:39 Uhr)
🍏 iOS / Mac OSHue-App 6.0 ist da: das sind die Neuerungen(07.09.2026 um 17:21 Uhr)
🕵️ SicherheitslückenHak5: Hackers Just Poisoned the Rust Supply Chain | Threat Wire(01.09.2026 um 14:00 Uhr)
🕵️ SicherheitslückenHak5: Hackers Found a Way Into Humanoid Robots | Threat Wire(04.09.2026 um 15:04 Uhr)
🔧 AI Nachrichten Bits und so #1021 (Passwort für Laufwerk)(31.08.2026 um 22:15 Uhr)
🔧 AI Nachrichten Bits und so #1022 (Wie Weißbier)(06.09.2026 um 20:39 Uhr)
🍏 iOS / Mac OSHue-App 6.0 ist da: das sind die Neuerungen(07.09.2026 um 17:21 Uhr)

🔧 Programmierung 🕛 kürzlich 4 Min Lesezeit
0

Starting a YugabyteDB lab cluster with AWS CLI

↗ Quelle (dev.to)
🗣️ Stimme:

Here are some command lines to start a YugabyteDB cluster across multiple AWS regions using the AWS CLI. Please note that this setup is for lab purposes only and features no security measures (all ports are open, and the data is transmitted over the public internet without encryption). I use this configuration solely for quick tests.



I set some environment variables, with the most important being zones, which lists the zones where I will start a node.




CODE
export AWS_PAGER=""
KEY_NAME=id_rsa.pub
KEY_NAME=lab.pub
INSTANCE_TYPE=m7i.large
VOLUMESIZE=500

zones="us-east-1a ap-northeast-1a ap-southeast-5a"







For each zone, I create an SSH key and a security group and launch an instance using the environment variables mentioned above.




CODE
for zone in $zones
do
export AWS_REGION=${zone%?}
ZONE=${zone}
# Import the key to ssh
aws ec2 import-key-pair --key-name $KEY_NAME --public-key-material "$(base64 ~/.ssh/id_rsa.pub)"
# Security group all open (put your network)
aws ec2 create-security-group \
--group-name lab-public \
--description "Security group that allows all traffic"
aws ec2 authorize-security-group-ingress \
--protocol -1 \
--port all \
--cidr 0.0.0.0/0 \
--group-id $(
aws ec2 describe-security-groups \
--filters "Name=group-name,Values=lab-public" \
--query "SecurityGroups[*].[GroupId]" \
--output text
)
# run an instance
aws ec2 run-instances \
--count 1 \
--instance-type $INSTANCE_TYPE \
--key-name $KEY_NAME \
--associate-public-ip-address \
--placement "AvailabilityZone=${ZONE}" \
--block-device-mappings "DeviceName=/dev/sda1,Ebs={VolumeSize=${VOLUMESIZE}}" \
--image-id $(
aws ec2 describe-images --owners 'aws-marketplace' \
--filters "Name=name,Values=AlmaLinux OS 8*" "Name=architecture,Values=x86_64" \
--query "Images | sort_by(@, &CreationDate) | [-1].[ImageId]" \
--output text | tee /dev/stderr
) \
--tag-specifications 'ResourceType=instance,Tags=[{Key=Name,Value=yb},{Key=Environment,Value=lab}]' \
--security-group-ids $(aws ec2 describe-security-groups \
--filters "Name=group-name,Values=lab-public" \
--query "SecurityGroups[*].[GroupId]" \
--output text | tee /dev/stderr ) \
--user-data '#!/bin/bash
sudo dnf update -y
'
\
--output text
done







I use the tag Environment=lab to identify the instances. I list the instances running under this tag in each zone.




CODE
# describe
for zone in $zones
do
export AWS_REGION=${zone%?}
aws ec2 describe-instances \
--filters "Name=tag:Environment,Values=lab" "Name=instance-state-name,Values=running" \
--query "Reservations[*].Instances[*].[Tags[?Key=='Name'].Value|[0] , InstanceId, State.Name, Placement.AvailabilityZone, PublicDnsName ]" \
--output text | awk '{$NF="http://"$NF":7000";print}'
done









To terminate the instances, ensure that the zones environment variable is set.




CODE
# terminate
for zone in $zones
do
export AWS_REGION=${zone%?}
aws ec2 terminate-instances --instance-ids $(
aws ec2 describe-instances \
--filters "Name=tag:Environment,Values=lab" \
--query "Reservations[*].Instances[*].InstanceId" \
--output text --no-paginate | tee /dev/stderr
) --output text
done







If you modify the zones or the tags, ensure consistency when listing the instances.

Vollständiger Original-Bericht
Ausführliche Details, Code-Beispiele & Hersteller-Stellungnahme auf dev.to.
↗ Original-Artikel auf dev.to lesen
Wie bewertest du diesen Beitrag?
1 Klick Feedback
Teilen mit Netzwerk & Team:

Community-Analysen & Experten-Meinungen 0

Verfasse deine eigene Analyse, teile Workarounds oder diskutiere diesen Vorfall im Blog.
Noch keine Community-Analyse verfasst. Markiere einen Textabschnitt oder klicke oben auf Eigene Analyse verfassen“!
Community Pulse: Relevanz-Einschätzung
1 Klick Experten-Votum
🔴 Akute Relevanz 0%
🟡 In Evaluierung 0%
🟢 Keine Auswirkung 0%
Spannende Innovation 0%
Verwandte Story-Cluster & Quellen (Vektor-KI)
Port 8095 Engine
1 Quelle
Hackers Just Poisoned the Rust Supply Chain | Threat Wire
1 Quelle
Hackers Found a Way Into Humanoid Robots | Threat Wire
1 Quelle
Bits und so #1021 (Passwort für Laufwerk)
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Starting a YugabyteDB lab cluster with AWS CLI

Thematisch verwandte Begriffe: Starting, YugabyteDB, cluster, with · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...