Skip to content

knightjoel/awscliv2-on-openbsd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AWS Command Line Interface v2 on OpenBSD

This repo contains code which will allow you to build and install the AWS CLIv2 on OpenBSD using the OpenBSD ports system.

For more information, read the blog post AWS CLIv2 on OpenBSD.

The ports in this repo are tested on OpenBSD 7.7 using the amd64 and arm64 architectures.

An older version of this code is supported on OpenBSD 7.6. Changes in ports infrastructure and AWS CLI dependencies make the latest version of this code unsupported on OpenBSD versions earlier than 7.7.

Installation

To install the AWS CLIv2 port:

1 - Clone the repository from GitHub:

git clone https://github.com/knightjoel/awscliv2-on-openbsd

If you're building on OpenBSD 7.6, check out the OPENBSD_7_6 tag:

git checkout OPENBSD_7_6

2 - Copy the contents of the repo's ports/ directory to /usr/ports (or wherever your ports tree is).

cd awscliv2-on-openbsd/ports
cp -a * /usr/ports

3 - Install some packages needed to build the port. You could allow ports to build and install this software, but installing the packages will reduce the build time.

doas pkg_add cmake python%3 ninja

4 - Install the AWS CLIv2 port.

If you have v1 of the AWS CLI installed, you'll have to uninstall it first.

doas pkg_delete awscli
cd /usr/ports/sysutils/awscliv2
make install

5 - Verify installation

% aws --version
aws-cli/2.28.4 Python/3.12.11 OpenBSD/7.7 source/amd64

About

An OpenBSD port for running the AWS Command Line Interface v2 on OpenBSD

Resources

Stars

Watchers

Forks

Packages

No packages published