Need to setup gpg-agent first, on OSX I use keychain (it also does ssh-agent)
$ brew info keychain
keychain: stable 2.8.5
User-friendly front-end to ssh-agent(1)
https://www.funtoo.org/Keychain
/usr/local/Cellar/keychain/2.8.5 (7 files, 108.5KB) *| Mute these words in your settings here: https://twitter.com/settings/muted_keywords | |
| ActivityTweet | |
| generic_activity_highlights | |
| generic_activity_momentsbreaking | |
| RankedOrganicTweet | |
| suggest_activity | |
| suggest_activity_feed | |
| suggest_activity_highlights | |
| suggest_activity_tweet |
| # NB! not for production! | |
| # https://docs.docker.com/engine/reference/builder/#arg | |
| # Warning: It is not recommended to use build-time variables for passing secrets like github keys, user credentials etc. Build-time variable values are visible to any user of the image with the docker history command. | |
| FROM golang:1.13 as builder | |
| # This argument should be defined as your personal access tokens, from: https://github.com/settings/tokens | |
| ARG GITHUB_ACCESS_TOKEN | |
| # Any kind of configurations: | |
| ENV GO111MODULE=on |
| """ | |
| Craft a web request to the AWS rest API and hit an endpoint that actually works but isn't supported in the CLI or in Boto3. | |
| Based on this: https://github.com/aws/aws-cli/issues/2268#issuecomment-373803942 | |
| """ | |
| import boto3 | |
| import os | |
| import sys, os, base64, datetime, hashlib, hmac, urllib | |
| import requests |