A small collection of AWS utilities, packaged as a single standalone binary.
GPL-2.0 License
The AWS SDK was updated to the most recently available one.
This release introduces a new -cleanup
flag to the rotate-keys
sub-command, allowing the removal of all keys except the newly created one.
This was implemented in #20 , as a result of the suggestion in #19.
Published by skx over 2 years ago
This release updates the instances
and csv-instances
sub-commands to make them more flexible, and customizable. The common-code to fetch all the running instances, available to the current role or set of roles, has been merged into a single internal-package to cut down on code duplication too.
By default the output for both sub-commands remains unchanged, however it is now possible to change the output. In the case of the instances
sub-command you can specify a golang template-file as input, to control what is output:
$ aws-utils instances -dump-template > foo.tmpl
$ vi foo.tmpl
$ aws-utils instances -template=./foo.tmpl
The csv-instances
sub-command has been updated such that you can specify the fields that you're interested in viewing, for example if you wish to see the (private) IPv4 address associated with each instance:
$ aws-utils csv-instances --format="id,name,ipv4address"
The list of fields you can use is available in the integrated help (aws-utils help csv-instances
).
Published by skx over 2 years ago
This release is a pretty minimal update to the previous one, with only a couple of minor changes.
subnets
subcommand to report on subnets.Published by skx over 2 years ago
This release fixes an issue with the stacks
sub-command, which might have not shown the names of all stacks which existed within the given account(s).
As part of that fix the dependencies (i.e. the AWS SDK) were updated, but I don't anticipate any changes from that update.
Published by skx over 2 years ago
This release adds some new sub-commands:
orphaned-zones
stacks
In addition to these new sub-commands some changes have been made:
instances
sub-command allows JSON output.instances
sub-command shows the AMI ages.rotate-keys
sub-command only updates the first set of credentials in ~/.aws/credentials
.
version
sub-command shows VCS information, when built with go 1.18+Published by skx almost 3 years ago
This release updates the sg-grep
sub-command to allow it to be executed with a list of roles to assume, matching the flexible approach shared by other sub-commands.
Our implementation was simplified by abstracting the way the various commands operate upon role-files, removing repetition and increasing code-clarity.
Finally the whitelist-self
command will now avoid making needless changes to security-group rules, if no change is necessary.
Published by skx almost 3 years ago
This release adds the rotate-keys
sub-command, which allows rotating your AWS access-keys.
In addition to the new sub-command support has been added for logging all (HTTP) requests made against Amazon, via the use of the environmental variable DEBUG
.
Published by skx almost 3 years ago
This release updates the whitelist-self
sub-command to add more paranoia, and checking:
Name
field we ignore it.In addition to this it is now possible to process multiple JSON files specified upon the command-line.
Published by skx almost 3 years ago
This release updates the name of the whitelisting sub-command to be whitelist-self
, which is more discoverable and descriptive. This sub-command was updated to allow expanding environmental variables in rule-names too.
Otherwise nothing much has changed, the README.md file has been updated to document the integrated help, and a sample-usage of each tool has been provided.
Published by skx almost 3 years ago
This release updates the help-text available for the remote-ip-change
sub-command. There are no functional changes.
Published by skx almost 3 years ago
This release adds a new sub-command for easily updating security-groups, adding new addresses to permit ingress on a particular port.
This is very useful when changes must be made due to home/office IP addresses updating from upstream ISPs.
Published by skx almost 3 years ago
This is the initial release, containing a few small utility sub-commands which are useful to my everyday life.