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.35.tar.gz
(20.5 kB
view hashes)
Built Distribution
Close
Hashes for cdk_efs_assets-0.1.35-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b953f47ea89f9db7e13a506a2f01c8ce364a4b55cc1af49bd96d83c612ea21e |
|
MD5 | f3b139c8587edc37a623d0b1382b17e2 |
|
BLAKE2b-256 | d907d0af075c1ab78696c09d2ea615ecd5c73a9525e1012fe8e90fecc05619d4 |