Skip to main content

Library wrapping AWS CDK primitives in a useful way.

Project description

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 login authenticate with AWS via sso
  • cdk ls list all stacks in the app
  • cdk synth emits the synthesized CloudFormation template
  • cdk deploy deploy this stack to your default AWS account/region
  • cdk diff compare deployed stack with current state
  • cdk docs open 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 sync install 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 fmt run code formatting
  • rye run typecheck run type checking
  • rye run lint run code linting
  • rye run test run tests
  • rye run quality run formatting, linting, and tests on the project

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nimbus_lib-0.1.0.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

nimbus_lib-0.1.0-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file nimbus_lib-0.1.0.tar.gz.

File metadata

  • Download URL: nimbus_lib-0.1.0.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for nimbus_lib-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ffb6122c7a2012ef3065dc1737182715f50257451c44e8f31f76107832cd3f4f
MD5 67e7d2a6aaa657007879d2e1c01ee98d
BLAKE2b-256 e74bc0cd0fac841f6b3e2de1cf8dfde20333fac06136c443aed1b53409843fdd

See more details on using hashes here.

File details

Details for the file nimbus_lib-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: nimbus_lib-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for nimbus_lib-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7d08d4f29a4e75acd7647ed184bb6833da9b3fe8b954edd129096a160b9dbeee
MD5 1c4e47ce008137cd265cf0730a3bfd89
BLAKE2b-256 72009f64ea96da6c023daadb485d386f81bef24108085f5093dbc10b4e2ffb6f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page