Skip to main content

Amazon DataZone L2 Construct library

Project description

Apache 2.0 License Release badge Open in DEV Containers

CDK Amazon DataZone Construct Library

CDK Amazon DataZone is an AWS CDK construct library that simplifies the creation and management of Amazon DataZone resources. This library enables developers to automate data governance, data cataloging, and secure data sharing across domains by using familiar infrastructure-as-code practices with AWS CDK.

Features

  • Easily create and manage Amazon DataZone components, such as Domains, Projects, and Environments.
  • Seamless integration with the AWS CDK ecosystem, allowing users to manage DataZone resources alongside other AWS resources.
  • Support for secure resource configurations like KMS encryption, S3 bucket management, and domain-level blueprinting.

Installation

To install this library, use the following npm command:

npm install @cdklabs/cdk-data-zone

Usage Example

Here’s an example of how to use the @cdklabs/cdk-data-zone library in your AWS CDK project:

from aws_cdk import App, RemovalPolicy
from aws_cdk.aws_kms import Key
from aws_cdk.aws_s3 import Bucket, BucketEncryption


app = App()
stack = Stack(app, "TestStack")

# Create an S3 Bucket for the Blueprint
bucket = Bucket(stack, "BlueprintBucket",
    enforce_sSL=True,
    removal_policy=RemovalPolicy.DESTROY,
    auto_delete_objects=True,
    encryption=BucketEncryption.S3_MANAGED
)

# Create a DataZone Domain
domain = Domain(stack, "Domain",
    name="integration",
    encryption_key=Key(stack, "Key", enable_key_rotation=True)
)

# Enable a Blueprint for the Domain
blueprint = domain.enable_blueprint(BlueprintEnvironmentIdentifiers.DEFAULT_DATA_LAKE,
    parameters={
        "S3Location": f"s3://{bucket.bucketName}"
    }
)

# Create a Project within the Domain
project = domain.create_project("test-project",
    name="test-project",
    glossaries=Glossaries.from_file("./resources/glossaries.json"),
    forms=Forms.from_file("./resources/form-metadata.json")
)

# Create an Environment Profile for the Project
environment_profile = EnvironmentProfile(stack, "EnvironmentProfile",
    name="dev",
    blueprint=blueprint,
    project=project
)

# Create an Environment using the Environment Profile
Environment(stack, "environment",
    project=project,
    name="DEV",
    environment_profile=environment_profile
)

app.synth()

Key Features Highlighted

  • Domain Creation: Easily create Amazon DataZone Domains with encryption and other security features.
  • Project Management: Use Blueprints, Forms, and Glossaries to structure data governance.
  • Environment Profiles: Manage different environments within your data projects to ensure proper data governance policies.

Projen for Development

This project leverages Projen for managing development workflows. Projen automates common tasks like dependency management, testing, and versioning.

Getting Started with Development

  1. Clone the Repository:

    git clone https://github.com/cdklabs/cdk-data-zone.git
    cd cdk-data-zone
    
  2. Install Dependencies:

    npx projen install
    
  3. Run Projen to synthesize files:

    npx projen
    
  4. Build the Project:

    npx projen build
    
  5. Run Tests:

    npx projen test
    

API Reference

Detailed documentation of the available constructs, their properties, and methods is available in the API.md file.

Contributing

Contributions are welcome! Please see the CONTRIBUTING.md guide for more details on how to get involved.

Security policy

Please see the SECURITY.md for more information.

License

This project is licensed under the Apache-2.0 License. See the LICENSE file for more information.

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

cdk_data_zone-0.0.3.tar.gz (150.9 kB view details)

Uploaded Source

Built Distribution

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

cdk_data_zone-0.0.3-py3-none-any.whl (148.7 kB view details)

Uploaded Python 3

File details

Details for the file cdk_data_zone-0.0.3.tar.gz.

File metadata

  • Download URL: cdk_data_zone-0.0.3.tar.gz
  • Upload date:
  • Size: 150.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for cdk_data_zone-0.0.3.tar.gz
Algorithm Hash digest
SHA256 189948b367218b25c1623cc3d38aacdad476f7e3a828c417a92e851c8a056a07
MD5 6a898b3ba7222e1d7f1beff580099e72
BLAKE2b-256 9e166c790dad30f930e69895f5672cd99453ab37b2db8c576d248e2dc3d00a48

See more details on using hashes here.

File details

Details for the file cdk_data_zone-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: cdk_data_zone-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 148.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for cdk_data_zone-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 fc72b5b16c8dd28c4a919da8179681306678776cc770528e6e1c1c4c3a433713
MD5 fb50d9547a0e7ff3a3deacda24d2b00a
BLAKE2b-256 bfb5a7f504608e07e2d5dd1ad47a158fc44f7f1a059e321a0038da41578810ff

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