Security groups for a particular instance:
aws ec2 describe-instances --instance-id="${INSTANCE_ID}" \
--query 'Reservations[*].Instances[*].SecurityGroups[*].GroupId' --output=text | \
xargs aws ec2 describe-security-groups --group-ids
| services: | |
| searxng: | |
| container_name: searxng | |
| image: docker.io/searxng/searxng:latest | |
| restart: unless-stopped | |
| ports: | |
| - "8080:8080" | |
| volumes: | |
| - ./searxng-settings.yml:/etc/searxng/settings.yml:ro | |
| environment: |
| FROM ubuntu:22.04 AS dev | |
| RUN apt-get update && apt-get install -y \ | |
| gnupg \ | |
| wget \ | |
| curl | |
| # 1. RVM does not support /bin/sh -- it requires bash or other friends (e.g. zsh) | |
| # 2. Docker's `RUN` command only uses /bin/sh | |
| # 3. Ubuntu 22.04 only has openssl 3.x available in the package repositories |
| #!/bin/bash | |
| V_POS="20" | |
| V_NEG="21" | |
| gpio_path() { | |
| local pin="${1}" | |
| echo "/sys/class/gpio/gpio${pin}" | |
| } |
Security groups for a particular instance:
aws ec2 describe-instances --instance-id="${INSTANCE_ID}" \
--query 'Reservations[*].Instances[*].SecurityGroups[*].GroupId' --output=text | \
xargs aws ec2 describe-security-groups --group-ids
| """ | |
| Defers with timeouts. Use `trail` to run the included tests. | |
| """ | |
| from twisted.internet import defer, reactor, task | |
| from twisted.python import failure | |
| from twisted.trial import unittest | |
| class TimeoutDeferredError(Exception): | |
| pass |