Tools for deploying to AWS via CloudFormation and Serverless framework that support a pull request based workflow
Project description
Nameless Deploy Tools
Released version 1.239
Nameless deploy tools are a set of tools to implement a true Infrastructure As Code workflow with various cloud infrastructure management tools. Currently supported tools are CloudFormation, AWS CDK, Serverless Framework, Terraform, Azure Resource Manager (with a YAML syntax) and Bicep.
Why Nameless?
A common analogy for cloud infrastructure has been to move from having pets with names that need lots of looking after, to cattle that has at most id's. It's time to move to the industrial age from the agrarian era. The infrastructure our applications runs now comes and goes and we know at most some statistical information about the actual executions. Run times, memory usage, used bandwidth and the like. We no longer know even the id's of the things that actually run the code. Hence - nameless.
Rationale
We at Nitor are software engineers with mostly a developer or architect background, but a lot of us have had to work closely with various Operations teams around the world. DevOps has a natural appeal to us and immediately "infrastructure as code" meant for us that we should apply the best development practices to infrastructure development. It starts with version control and continues with testing new features in isolation and a workflow that supports this. Our teams usually take into use a feature branch workflow if it is feasible and we expect all of the tools and practices to support this. For infrastructure this type of branching means that you should be able to spin up enough of the infrastructure to be able to verify the changes you want to implement in production. Also the testing environment should be close enough to the target environment for the results to be valid. So the differences between testing and production environments should be minimized and reviewable.
With the popular tools like Ansible, Terraform, Chef etc. you need to come up with and implement the ways to achieve the goals above. As far as I know, no tool besides ndt has at it's core a thought-out way of a branching infrastructure development model.
What it is
nameless-deploy-tools works by defining Amazon Machine Images, Docker containers, Serverless services and deploying CloudFormation stacks of resources. CloudFormation stacks can also be defined with AWS CDK applications. All of the above can also be deployed using Terraform.
Installation
pip install nameless-deploy-tools
On OSX you may need to add --ignore-installed
to get around platform installed versions
of six
and other packages.
Getting started
To use nameless-deploy-tools you need to set up a project repository that describes the images you want to build, and the stacks you want to deploy them in. See ndt-project-template for an example.
Here are few commands you can use. All of these are run in your project repository root. You need to have AWS credentials for command line access set up.
- To bake a new version of an image:
ndt bake-image <image-name>
- To build a new Docker container image
ndt bake-docker <component> <docker-name>
- To deploy a stack:
- with a known AMI id:
ndt deploy-stack <image-name> <stack-name> <AMI-id>
- with the newest AMI id by a given bake job:
ndt deploy-stack <image-name> <stack-name> "" <bake-job-name>
- with a known AMI id:
- To undeploy a stack:
ndt undeploy-stack <image-name> <stack-name>
For full list of commands see here
Documentation
- Command Reference
- ndt workspace tooling
- Template Pre-Processing
- Multifactor Authentication
- Common parameters
Versioning
This library uses a simplified semantic versioning scheme: major version change for changes that are not backwards compatible (not expecting these) and the minor version for all backwards compatible changes. We won't make the distinction between new functionality and bugfixes, since we don't think it matters and is not a thing worth wasting time on. We will release often and if we need changes that are not comptatible, we will fork the next major version and release alphas versions of that until we are happy to release the next major version and try and have a painless upgrade path.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for nameless-deploy-tools-1.239.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6bf3986bce64e99b3d9f2894df89d8c5ddb4a5e590b227a7c3b2a70185bd56c3 |
|
MD5 | 0db7b2bc7d2494e03e18df73ba6be755 |
|
BLAKE2b-256 | 646c7ea59a3f2406bcc9c0307b17f107b93d751c46d604c391e05b0a392e0fa7 |
Hashes for nameless_deploy_tools-1.239-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f275f03f7732593bfdcba41ff33f214ddeae05fc0141e84bec0bd4e13e82487 |
|
MD5 | ddfe1aafbbdbe65a224b10b1ae24592a |
|
BLAKE2b-256 | 4d23fe76edb8c0b2c0c2d706fca2aeae85a1ea2c95a14453475f1bff819a23c2 |