Skip to main content

NPM version PyPI version Release

Terraform CDK - AWS Secure constructs

The Level 2 construct can be used to set up your AWS account with the reasonably secure configuration baseline. Internally it uses the Terraform CDK and the AWS Provider.

Features

  • Account password policies
  • Cloudtrail
  • Guardduty
  • EBS encrypt default
  • VPC flow log
  • Security Hub
  • Enable Config rules above

Install

Just the constructs

npm install cdktf-aws-secure

Examples

# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
from constructs import Construct
from cdktf import Resource
from cdktf_aws_secure import secure

class AwsSecure(Resource):
    def __init__(self, scope, name):
        super().__init__(scope, name)

        policy = secure.EnableAccountPasswordPolicy(self, "DefaultAccountPwdPolicy")

        policy.add_config_rule()# and also add Config rule.

        # enable guardduty
        secure.EnableGuardduty(self, "EnableGuardduty")

        # enable cloudtrail
        secure.EnableCloudTrail(self, "EnableCloudTrail")

        # enable ebs encrypt default
        secure.EnableEbsEncryption(self, "EnableEbsEncryption")secure.EnableGuardduty(self, "EnableGuardduty")

        # enable vpc flow log
        secure.EnableVpcFlowLog(self, "EnableVpcFlowLog",
            vpc_id="vpc-0123456789"
        )

        # enable security hub
        secure.EnableSecurityHub(self, "EnableSecurityHub")

Docs

See API Docs

Metadata

Release files for cdktf-aws-secure 2.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cdktf-aws-secure 2.0.1
File Size Uploaded Provenance Actions
cdktf-aws-secure-2.0.1.tar.gz 113.8 kB Without provenance Details for cdktf-aws-secure-2.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cdktf-aws-secure 2.0.1
File Interpreter ABI Platform Actions
cdktf_aws_secure-2.0.1-py3-none-any.whl Python 3 none any Details for cdktf_aws_secure-2.0.1-py3-none-any.whl

Total release size: 225.9 kB

Release files / cdktf-aws-secure-2.0.1.tar.gz

Download URL cdktf-aws-secure-2.0.1.tar.gz
Size 113.8 kB
Tags Source
SHA-256 checksum
How to use checksums
2224b87710647febaeb6c46d6c8aee00a021fd936ae46c66973771f6702a1977
BLAKE2b-256 checksum
How to use checksums
23361b28a3eb0bc38669a7ea47b8e8785e7daaa3e8888d50b6de9a33c12352d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.9

Release files / cdktf_aws_secure-2.0.1-py3-none-any.whl

Download URL cdktf_aws_secure-2.0.1-py3-none-any.whl
Size 112.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1be42ea9a56820465ce4a3c67bfe20919219862061319167cb515a50611c721c
BLAKE2b-256 checksum
How to use checksums
0fc754b062fa2d971163dbd91d2aceca3ef8db4890b87bf9743d7da214c40278
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.9

Security for cdktf-aws-secure 2.0.1

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page