Skip to content

Commit

Permalink
Merge branch 'develop' into new-ami-and-explicit-block-device-mappings
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Russell committed Jun 15, 2016
2 parents 4a58248 + ea6aabc commit 4a61b34
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 13 deletions.
19 changes: 15 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
PKG := azanium
PYTHON ?= $(shell which python3)
PIP := ${PYTHON} -m pip
DIST_NAME ?= $(shell ${PYTHON} setup.py --fullname)

define print-help
$(if $(need-help),$(warning $1 -- $2))
Expand All @@ -7,11 +11,18 @@ need-help := $(filter help,$(MAKECMDGOALS))

help: ; @echo $(if $(need-help),,Type \'$(MAKE)$(dash-f) help\' to get help)

install: $(call print-help,install,installs the Python package)
@python3 setup.py dist
dev: $(call print-help,dev,installs the ${PKG} python package for development)
@if ! test -d "${VIRTUAL_ENV}"; then \
echo "ERROR: No virtualenv active"; \
exit 1; fi
${VIRTUAL_ENV}/bin/python3 -m pip install -e ".[dev]"

install: $(call print-help,install,installs the ${PKG} python package in user-space)
${PYTHON} setup.py sdist 2> /dev/null
${PIP} install --user "dist/${DIST_NAME}.tar.gz"

uninstall: $(call print-help,uninstall,un-installs the Python package)
@python3 -m pip uninstall -y wormbase-db-build
${PIP} uninstall -y "${PKG}"

clean: $(call print-help,clean,Cleans build artefacts)
@rm -rf build dist
Expand All @@ -29,4 +40,4 @@ admin-docs: $(call print-help,admin-docs,Builds the documentation for admins)
docs-all: $(call print-help,docs-all,Builds all documentation) dev-docs admin-docs user-docs


.PHONY: install uninstall clean admin-docs dev-docs docs-all user-docs
.PHONY: dev install uninstall clean admin-docs dev-docs docs-all user-docs
16 changes: 9 additions & 7 deletions docs/admin/iam-setup.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ The rationale

IAM admin tool (`azanium admin`)
================================
For convenience, the `wormbase-db-migration` package provides a
For convenience, the `azanium` package provides a
:term:`CLI` for performing the *minimal* :term:`IAM` configuration
necessary for a migration to be performed.

Expand All @@ -37,13 +37,15 @@ necessary for a migration to be performed.
.. ATTENTION::
The remainder of this document provides a walk-through of how one
would work with :term:`AWS` :term:`IAM` scheme employed by
:term:`azanium admin`.
would manually setup the :term:`AWS` :term:`IAM` scheme.
The :term:`azanium admin` automates this.

The commands below should not need to be used in normal
circumstances. This is because using Amazon's AssumeRole API
requires specification of an :term:`ARN` when forming relationships
between trusted entities in :term:`IAM`.
The commands shown below illustrate the steps required to configure
IAM such that users can use the `AssumeRole` API.

The `azanium admin` command was written, as the formation of these
policies require specification of a fully-qualified :term:`ARN`
when forming relationships between trusted entities in :term:`IAM`.

Initial configuration
=====================
Expand Down
4 changes: 2 additions & 2 deletions docs/user/db-migration-procedure.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ The following steps should be executed in order.
AWS_PROFILE="${USER}"
WB_DATA_RELEASE="WS254"
WB_DB_RELEASE_TAG="0.1"
TAG="0.1"
azanium cloud --profile $USER \
init \
"dist/wormbase-db-migration-${WB_DB_RELEASE}.tar.gz" \
"dist/azanium-${TAG}.tar.gz" \
"${WB_DATA_RELEASE}"

.. _db-migration-step-2:
Expand Down

0 comments on commit 4a61b34

Please sign in to comment.