Blob Blame History Raw
Name:       resalloc-aws
Summary:    Resource allocator scripts for AWS
Version:    1.3
Release:    2%{?dist}
License:    GPLv2+
BuildArch:  noarch

Requires: awscli

# Source is created by:
# git clone %%url && cd copr
# tito build --tgz --tag %%name-%%version-%%release
Source0: %{name}-%{version}.tar.gz

# This one is bundled, though it is GPLv2+, too.

When allocating/removing a machine in AWS/EC2 from command-line, there are many
non-trivial options in the 'aws-cli' command.  This project provides a
simplified wrapping command.

The 'resalloc-aws-new' script is able to (a) start a machine, (b) wait till SSH
is available and (c) run a specified playbook.

The 'resalloc-aws-delete' removes a machine started by 'resalloc-aws-new'

These scripts are primarily designed to be used with 'resalloc-server', but they
might be used separately.

%setup -q

sed '1c#! %{__python3}' %SOURCE1 > %{name}-wait-for-ssh

mkdir -p %{buildroot}%{_bindir}
install -p -m 0755 bin/resalloc-aws-new %{buildroot}%{_bindir}
install -p -m 0755 bin/resalloc-aws-delete %{buildroot}%{_bindir}
install -p -m 0755 bin/resalloc-aws-list %{buildroot}%{_bindir}
install -p -m 0755 %{name}-wait-for-ssh %{buildroot}%{_bindir}/resalloc-aws-wait-for-ssh

%license COPYING

* Sat Jul 23 2022 Fedora Release Engineering <> - 1.3-2
- Rebuilt for

* Wed Jun 22 2022 Pavel Raiskup <> 1.3-1
- New script resalloc-aws-list

* Tue Mar 22 2022 Pavel Raiskup <> 1.2-1
- resalloc-aws-new: tag volumes started with new instances

* Fri Oct 15 2021 Pavel Raiskup <> 1.1-1
- spec: package-review fixes (

* Tue Oct 12 2021 Pavel Raiskup <> 1-1
- new package built with tito