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.
GithubSourceSync
The GithubSourceSync deploys your Amazon EFS assets from specified Github repository.
Sample
# 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
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.40.tar.gz
(20.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cdk-efs-assets-0.1.40.tar.gz.
File metadata
- Download URL: cdk-efs-assets-0.1.40.tar.gz
- Upload date:
- Size: 20.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
391c16578a6ad1ac1e18f99d595447e3829e49577e11f3367c1248078095c326
|
|
| MD5 |
02d4150681be78ee25b2243ff71b413d
|
|
| BLAKE2b-256 |
b659b7f4a99909a2629d8e8033eec74be0fdc8e670cc1a994e9ddea67608b1f1
|
File details
Details for the file cdk_efs_assets-0.1.40-py3-none-any.whl.
File metadata
- Download URL: cdk_efs_assets-0.1.40-py3-none-any.whl
- Upload date:
- Size: 20.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
66a66254a7e988faade34880ce2d78bd0d64d857e803a6aaf027f85d4274e79e
|
|
| MD5 |
ae44fdfdd727c1a153633b6f9e942281
|
|
| BLAKE2b-256 |
6c70782cb67ed8796dfa92fdd4ada169703ff240845b15f13fa2815764803633
|