neulabs-cdk-constructs
Project description
Neulabs CDK Constructs
The neulabs-cdk-constructs library contains CDK-based constructs and stacks to allow the creation of cloud infrastructure on AWS.
The purpose of the library is to expose modules that can facilitate the creation and maintenance of the infrastructure as code.
Inside you will find generic stacks that allow the creation of services by simply instantiating a class, or constructs that implement logic to facilitate the developer and many other aspects.
We decided to develop it in Typescript, using projen for repository management, and the JSII library to be able to compile the neulabs-cdk-constructs package into multiple languages.
Usage
Package Installation (npm):
yarn add neulabs-cdk-constructs
# or
npm install neulabs-cdk-constructs
Package Installation (python):
pip install neulabs-cdk-constructs
Examples
Stack for integration between AWS and New Relic.
File app.py
import aws_cdk as cdk
from neulabs_cdk_constructs.stacks.monitoring.newrelic import EndpointUrlLogs
from neulabs_cdk_constructs.stacks.monitoring.newrelic import EndpointUrlMetrics
from neulabs_cdk_constructs.stacks.monitoring.newrelic import NewRelicStack
app = cdk.App()
environment = cdk.Environment(
account=os.getenv('CDK_DEFAULT_ACCOUNT'),
region=os.getenv('CDK_DEFAULT_REGION'),
)
stage = os.getenv('ENVIRONMENT', 'develop')
new_relic_account_id = os.getenv('NEW_RELIC_ACCOUNT_ID')
new_relic_license_key = os.getenv('NEW_RELIC_LICENSE_KEY')
new_relic_stack = NewRelicStack(
app,
'NewRelicStack',
env=environment,
stage=stage,
new_relic_bucket_name=f'neulabs-newrelic-{stage}',
new_relic_account_id=new_relic_account_id,
new_relic_license_key=new_relic_license_key,
new_relic_api_url_metrics=EndpointUrlMetrics.EU_METRICS,
new_relic_api_url_logs=EndpointUrlLogs.EU_LOGS,
)
Dev mode
Run in shell
npx projen default
Contributors
License
See the LICENSE file for more information.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file neulabs-cdk-constructs-0.3.2.tar.gz.
File metadata
- Download URL: neulabs-cdk-constructs-0.3.2.tar.gz
- Upload date:
- Size: 375.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cd1c4a5d9602d1ee3bef51bf61549b737e59d1211ce15259ec323553db14dbbf
|
|
| MD5 |
d54aa45bd46d32ee504ceb5185b9b50b
|
|
| BLAKE2b-256 |
ae0dd6145113a3b2a9072479712d5bcae2d640e6f3bca0d1de0532a52196b9d6
|
File details
Details for the file neulabs_cdk_constructs-0.3.2-py3-none-any.whl.
File metadata
- Download URL: neulabs_cdk_constructs-0.3.2-py3-none-any.whl
- Upload date:
- Size: 377.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
438bf6e98b57ebde552990c8f77217f56dc671d9fa2230dca7f6d4a7b2b200fd
|
|
| MD5 |
1e5cf01c8193429f946f1a33fae44f39
|
|
| BLAKE2b-256 |
9c4d17e2df5eb552a01571ea872ba3a706b665facc9c7878b8e91659e0c71dcc
|