Skip to main content

AWS EMR Launch modules

Project description

EMR Launch

Usage

This library is acts as a plugin to the AWS CDK providing additional L2 Constructs. To avoid circular references with CDK dependencies, this package will not install CDK and Boto3. Instead it expects these packages to already be installed.

It is recommended that a Python3 venv be used for all CDK builds and deployments.

To get up and running quickly:

  1. Install the CDK CLI

    npm install -g aws-cdk
    
  2. Use your mechanism of choice to create and activate a Python3 venv:

    python3 -m venv .env
    source .env/bin/activate
    
  3. Install the CDK and Boto3 minimum requirements:

    pip install -r requirements.txt
    
  4. Install aws-emr-launch package (package is currently installed from a wheel file):

    pip install aws-emr-launch
    

Development

Follow Step 1 - 3 above to configure an environment and install requirements

Install development requirements

After activating your venv:

pip install -r requirements-dev.txt

Installing New Layer Packages

The following will install the Lambda Layer packages

  1. Update the requirements-lambda-layer.txt adding the new package(s)
  2. Install new package(s): pip install -r requirements-lambda-layer.txt --target=aws_emr_launch/lambda_sources/layers/emr_config_utils/python/lib/python3.7/site-packages/
    • This will skip upgrades of previously installed packages

Updating Lambda Layer Packages

To Update the Lambda Layer packages it is recommended that you first delete the entire layer contents to eliminate bloat.

  1. Remove packages: rm -fr aws_emr_launch/lambda_sources/layers/emr_config_utils/*
  2. Update the requirements-lambda-layer.txt
  3. Reinstall packages: pip install -r requirements-lambda-layer.txt --target=aws_emr_launch/lambda_sources/layers/emr_config_utils/python/lib/python3.7/site-packages/

Testing

To run the test suite (from within the venv):

pytest

After running tests

View test coverage reports by opening htmlcov/index.html in your web browser.

To write a test

  • start a file named test_[the module you want to test].py
  • import the module you want to test at the top of the file
  • write test case functions that match either test_* or *_test

For more information refer to pytest docs

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aws_emr_launch-1.3.1-py3-none-any.whl (7.4 MB view details)

Uploaded Python 3

File details

Details for the file aws_emr_launch-1.3.1-py3-none-any.whl.

File metadata

  • Download URL: aws_emr_launch-1.3.1-py3-none-any.whl
  • Upload date:
  • Size: 7.4 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.7

File hashes

Hashes for aws_emr_launch-1.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3b7784511aec7edd5da906ce074b59729712141666995c8805a4cafb6234585b
MD5 23a3ad9f21451f10dc7689f374985c86
BLAKE2b-256 95fc9bb76b67f561038eb50cb78597a52835cbb799c2d66a29b04ef587cf6b9e

See more details on using hashes here.

Supported by

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