Skip to main content

Amazon EFS assets from Github repositories or S3 buckets

Project description

cdk-efs-assets

CDK construct library to populate Amazon EFS assets from Github or S3.

Sample

The sample below creates the sync from github repository to Amazon EFS filesystem.

# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
from cdk_efs_assets import GithubSourceSync

app = App()

env = {
    "region": process.env.CDK_DEFAULT_REGION ?? AWS_DEFAULT_REGION,
    "account": process.env.CDK_DEFAULT_ACCOUNT
}

stack = Stack(app, "testing-stack", env=env)

vpc = ec2.Vpc.from_lookup(stack, "Vpc", is_default=True)

fs = efs.FileSystem(stack, "Filesystem",
    vpc=vpc,
    removal_policy=RemovalPolicy.DESTROY
)

efs_access_point = fs.add_access_point("EfsAccessPoint",
    path="/demo",
    create_acl={
        "owner_gid": "1001",
        "owner_uid": "1001",
        "permissions": "0755"
    },
    posix_user={
        "uid": "1001",
        "gid": "1001"
    }
)

# create the one-time sync from Github repository to Amaozn EFS
GithubSourceSync(stack, "GithubSourceFeeder",
    repository="https://github.com/pahud/cdk-spot-one.git",
    efs_access_point=efs_access_point,
    efs_security_group=fs.connections.security_groups,
    vpc=vpc
)

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

cdk-efs-assets-0.1.2.tar.gz (20.2 kB view details)

Uploaded Source

Built Distribution

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

cdk_efs_assets-0.1.2-py3-none-any.whl (20.1 kB view details)

Uploaded Python 3

File details

Details for the file cdk-efs-assets-0.1.2.tar.gz.

File metadata

  • Download URL: cdk-efs-assets-0.1.2.tar.gz
  • Upload date:
  • Size: 20.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.7.9

File hashes

Hashes for cdk-efs-assets-0.1.2.tar.gz
Algorithm Hash digest
SHA256 6f0f22562d7f175e77bd8c3f7b51ef9f4d90eb5e678a3d03310337c8172d517a
MD5 8c59fd4fa1d47b010f044cad27e51f7a
BLAKE2b-256 fb7c508659904eac2f09aef44fc1f61ef5e2b899ba5e6d390b515e6456a2b699

See more details on using hashes here.

File details

Details for the file cdk_efs_assets-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: cdk_efs_assets-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 20.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.7.9

File hashes

Hashes for cdk_efs_assets-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b5afb66197a5a8f250d2bfbdea3d9dfe6143d4859a8dee54e9adc314e1839892
MD5 039e8f604fd6010d8d3c107f68c2f5d0
BLAKE2b-256 fa95343a0378d5a527718090cd71b6e2711993f5ac97659a3eabfc072f37f3b0

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