Skip to content

Instantly share code, notes, and snippets.

View denist-huma's full-sized avatar

Denis Trofimov denist-huma

View GitHub Profile
repositories:
- name: huma
url: ghcr.io/huma-engineering/helm-charts
oci: true
- name: argo
url: https://argoproj.github.io/argo-helm
environments:
default:
missingFileHandler: Error
@denist-huma
denist-huma / s3-upload-aws4.sh
Last active May 20, 2022 17:58 — forked from vszakats/s3-upload-aws4.sh
AWS S3 upload using signature v4
#!/bin/sh -u
# To the extent possible under law, Viktor Szakats
# has waived all copyright and related or neighboring rights to this
# script.
# CC0 - https://creativecommons.org/publicdomain/zero/1.0/
# Upload a file to Amazon AWS S3 using Signature Version 4
#
# docs:
@denist-huma
denist-huma / delete_iam_user.sh
Last active May 9, 2022 19:51 — forked from kgmoore431/delete_iam_user.sh
Delete an IAM user with AWS CLI
#!/bin/bash
user_name="$1"
echo "Removing user: ${user_name}"
keys=("$(aws iam list-access-keys --user-name "${user_name}" | jq -r '.AccessKeyMetadata[] | .AccessKeyId')")
if [[ "${#keys}" -gt "0" ]]; then
echo "Deleting Access Keys:"
# shellcheck disable=SC2068