AVIV CDK for Python
A set of AWS CDK examples and constructs.
Install
Requires:
- Python >= 3.6, pip
- cdk
npm install -g aws-cdk
pip install aviv-cdk
# With 'extra' to install additionnal libraries
pip install aviv-cdk[data]
Use it
import aviv_cdk
CICD
from aws_cdk import App
from aviv_cdk.cicd.stack import CodePipelineStack
app = App()
CodePipelineStack(
app, 'cicd-stack',
connections={'myorg': dict(connection_name='myorg')},
sources={'cicd-stack': dict(repo_string='myorg/repo', branch='main')},
pipeline=dict(
self_mutation=False
)
)
app.synth()
Route53
from aviv_cdk.route53 import DomainZone
# Creates a new HostedZone
z = DomainZone(stack, 'myzone', fqdn='mydomain.com')
# add record
z.a('toto.mydomain.com', '10.0.0.1')
# Use an existing Zone
z = DomainZone(stack, 'myzone', fqdn='mydomain.com', zone_id='42')
z.txt('mydomain.com', 'my-dummy-check')
RDS
Fargate
Development
Develop and contribute :)
Requirements:
- pipenv, cdk client
- [optional] docker & AWS codebuild docker image (standard >= 4.0)
git clone https://github.com/aviv-group/aviv-cdk-python && cd aviv-cdk-python
pipenv install -d -e .
# Build with codebuild agent - see: buildspec.yml
codebuild_build.sh -i aws/codebuild/standard:4.0 -a cdk.out
# Run tests
pipenv run pytest -v tests/
Build, distrib & release
Requires twine to be installed (pip install twine) and credentials to upload a new verison to pypi.
# Test and build
python3 setup.py sdist bdist_wheel
# Release on pypi
python3 -m twine upload --repository testpypi dist/*
python3 -m twine upload --repository pypi dist/*
Contribute
Yes please! Fork this project, tweak it and share it back by sending your PRs.
Have a look at the TODO's and changelog file if you're looking for inspiration.
License
This project is developed under the MIT license.
Author(s) and Contributors
- Jules Clement <jules.clement@aviv-group.com>
Metadata
Release files for aviv-cdk 0.3.13
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| aviv-cdk-0.3.13.tar.gz | 18.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aviv_cdk-0.3.13-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 41.2 kB
Release files / aviv-cdk-0.3.13.tar.gz
| Download URL | aviv-cdk-0.3.13.tar.gz |
|---|---|
| Size | 18.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
03a51257dc9d6dfee54e86622245e8ebb7f7d02103a287b06058da73818b1833
|
|
BLAKE2b-256 checksum How to use checksums |
004eaec196abf028e7d7d60a226bdc3b7feb274987701859e41b5413ce2978a9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.10.4
|
Release files / aviv_cdk-0.3.13-py3-none-any.whl
| Download URL | aviv_cdk-0.3.13-py3-none-any.whl |
|---|---|
| Size | 22.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
73ff69457f10f581457f934b943186693512c627fcbe4831d601b17f4d885ae8
|
|
BLAKE2b-256 checksum How to use checksums |
a29af94a64733eb641a6db77d0e0687b088eb18f7921e34f49a086b2b7d4566e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.10.4
|
Security for aviv-cdk 0.3.13
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.