cdk-efs-assets


Namecdk-efs-assets JSON
Version 0.1.24 PyPI version JSON
download
home_pagehttps://github.com/pahud/cdk-efs-assets.git
SummaryAmazon EFS assets from Github repositories or S3 buckets
upload_time2020-10-29 06:35:48
maintainer
docs_urlNone
authorPahud Hsieh<pahudnet@gmail.com>
requires_python>=3.6
licenseApache-2.0
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # cdk-efs-assets

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

# `GithubSourceSync`

The `GithubSourceSync` deploys your Amazon EFS assets from specified Github repository.

## Sample

```python
# 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, "GithubSourceSync",
    repository="https://github.com/pahud/cdk-efs-assets.git",
    efs_access_point=efs_access_point,
    runs_after=[fs.mount_targets_available],
    vpc=vpc
)
```

# `S3SourceSync`

TBD



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/pahud/cdk-efs-assets.git",
    "name": "cdk-efs-assets",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "",
    "author": "Pahud Hsieh<pahudnet@gmail.com>",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/58/07/b17ffb12c7a8f85951c0768954d3fd8fce3dab4c60d803731b74cd2c5d40/cdk-efs-assets-0.1.24.tar.gz",
    "platform": "",
    "description": "# cdk-efs-assets\n\nCDK construct library to populate Amazon EFS assets from Github or S3.\n\n# `GithubSourceSync`\n\nThe `GithubSourceSync` deploys your Amazon EFS assets from specified Github repository.\n\n## Sample\n\n```python\n# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826\nfrom cdk_efs_assets import GithubSourceSync\n\napp = App()\n\nenv = {\n    \"region\": process.env.CDK_DEFAULT_REGION ?? AWS_DEFAULT_REGION,\n    \"account\": process.env.CDK_DEFAULT_ACCOUNT\n}\n\nstack = Stack(app, \"testing-stack\", env=env)\n\nvpc = ec2.Vpc.from_lookup(stack, \"Vpc\", is_default=True)\n\nfs = efs.FileSystem(stack, \"Filesystem\",\n    vpc=vpc,\n    removal_policy=RemovalPolicy.DESTROY\n)\n\nefs_access_point = fs.add_access_point(\"EfsAccessPoint\",\n    path=\"/demo\",\n    create_acl={\n        \"owner_gid\": \"1001\",\n        \"owner_uid\": \"1001\",\n        \"permissions\": \"0755\"\n    },\n    posix_user={\n        \"uid\": \"1001\",\n        \"gid\": \"1001\"\n    }\n)\n\n# create the one-time sync from Github repository to Amaozn EFS\nGithubSourceSync(stack, \"GithubSourceSync\",\n    repository=\"https://github.com/pahud/cdk-efs-assets.git\",\n    efs_access_point=efs_access_point,\n    runs_after=[fs.mount_targets_available],\n    vpc=vpc\n)\n```\n\n# `S3SourceSync`\n\nTBD\n\n\n",
    "bugtrack_url": null,
    "license": "Apache-2.0",
    "summary": "Amazon EFS assets from Github repositories or S3 buckets",
    "version": "0.1.24",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "c466e7a020e7ffa181aec7bc070abb3f",
                "sha256": "73cc7031cfc1d3e4d0f806a69c82219c1bbbac737ecaefc4cd6dfb17520338d1"
            },
            "downloads": -1,
            "filename": "cdk_efs_assets-0.1.24-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "c466e7a020e7ffa181aec7bc070abb3f",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 20274,
            "upload_time": "2020-10-29T06:35:46",
            "upload_time_iso_8601": "2020-10-29T06:35:46.843197Z",
            "url": "https://files.pythonhosted.org/packages/7a/28/54208d9a99d6d48aa1c7bb32a385465b901e4b814079728840222a8e35f9/cdk_efs_assets-0.1.24-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "fbea9a8d6ed446de35f2c95d107060da",
                "sha256": "dfa86dfe1ea94f8be89705167e43fcb535aadc25d9df6d5edd9692df801748e9"
            },
            "downloads": -1,
            "filename": "cdk-efs-assets-0.1.24.tar.gz",
            "has_sig": false,
            "md5_digest": "fbea9a8d6ed446de35f2c95d107060da",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 20382,
            "upload_time": "2020-10-29T06:35:48",
            "upload_time_iso_8601": "2020-10-29T06:35:48.561275Z",
            "url": "https://files.pythonhosted.org/packages/58/07/b17ffb12c7a8f85951c0768954d3fd8fce3dab4c60d803731b74cd2c5d40/cdk-efs-assets-0.1.24.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2020-10-29 06:35:48",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": null,
    "github_project": "pahud",
    "error": "Could not fetch GitHub repository",
    "lcname": "cdk-efs-assets"
}
        
Elapsed time: 0.16518s