nimbus-lib
Library for wrapping AWS CDK primitives in a useful way.
FargateStack
Configurable CDK stack to take a docker image and deploy it to the cloud with the AWS CDK. Intended to be subclassed
- Support for both ECR images and Docker Hub images.
- Persistent container volumes using EFS.
- Passing environment variables to the containers.
- Allowlist of IP addresses (if you don't want the whole internet to have access).
- Updating arbitrary security groups to allow ingress from the containers (e.g. to allow your service access to an AWS database).
Useful AWS/CDK commands
aws sso loginauthenticate with AWS via ssocdk lslist all stacks in the appcdk synthemits the synthesized CloudFormation templatecdk deploydeploy this stack to your default AWS account/regioncdk diffcompare deployed stack with current statecdk docsopen CDK documentation
To authenticate docker with the AWS Elastic Container Registry:
aws ecr get-login-password | docker login --username AWS --password-stdin $AWS_ACCOUNT.dkr.ecr.$AWS_REGION.amazonaws.com
Useful rye commands
rye is experimental, but I like it a lot, so I've been using it for all my personal projects, including this one.
rye syncinstall dependencies
You can still install things in standard pip fashion by pip install -r requirements.lock and pip install -r requirements-dev.lock.
Scripts
These are custom scripts defined in pyproject.toml under tool.rye.scripts.
rye run fmtrun code formattingrye run typecheckrun type checkingrye run lintrun code lintingrye run testrun testsrye run qualityrun formatting, linting, and tests on the project
Metadata
Release files for nimbus-lib 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| nimbus_lib-0.1.0.tar.gz | 10.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nimbus_lib-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.6 kB
Release files / nimbus_lib-0.1.0.tar.gz
| Download URL | nimbus_lib-0.1.0.tar.gz |
|---|---|
| Size | 10.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ffb6122c7a2012ef3065dc1737182715f50257451c44e8f31f76107832cd3f4f
|
|
BLAKE2b-256 checksum How to use checksums |
e74bc0cd0fac841f6b3e2de1cf8dfde20333fac06136c443aed1b53409843fdd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|
Release files / nimbus_lib-0.1.0-py3-none-any.whl
| Download URL | nimbus_lib-0.1.0-py3-none-any.whl |
|---|---|
| Size | 8.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7d08d4f29a4e75acd7647ed184bb6833da9b3fe8b954edd129096a160b9dbeee
|
|
BLAKE2b-256 checksum How to use checksums |
72009f64ea96da6c023daadb485d386f81bef24108085f5093dbc10b4e2ffb6f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|