CDK Bucket Deployment Expirator
Why This Package
I've been having issues with my React deployments to AWS S3 while using Cloudfront due to browsers caching and attempting to load chunks that were unavailable after using CDK Bucket Deployment.
I had been using prune: true to clean up the bucket and this was causing all previous chunks to be deleted. However, the reality is we want to support N number of older chunks, just in case, and provide a mechanism for alerting the user that a new version is available (not part of this construct).
Must Be Used With CDK Bucket Deployment
# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
from aws_cdk.aws_s3 import Bucket
from aws_cdk.aws_s3_deployment import BucketDeployment, Source
bucket = Bucket(self, "SourceBucket")
now = Date().get_time()
bucket_deployment = BucketDeployment(self, "deploy-spa",
sources=[Source.asset("path/to/assets")],
destination_bucket=bucket,
metadata=UserDefinedObjectMetadata(deployed=now.to_string()),
prune=False
)
BucketDeploymentExpirator(self, "expirator",
bucket_deployment=bucket_deployment, # need this to add cfn depends on
source_bucket=bucket
)
Versioning
I will attempt to align the major and minor version of this package with [AWS CDK], but always check the release descriptions for compatibility.
References
Metadata
Release files for cdk-bucket-deployment-expirator 1.87.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cdk-bucket-deployment-expirator-1.87.1.tar.gz | 1.0 MB | Without provenance | Details for cdk-bucket-deployment-expirator-1.87.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cdk_bucket_deployment_expirator-1.87.1-py3-none-any.whl | Python 3 | none | any | Details for cdk_bucket_deployment_expirator-1.87.1-py3-none-any.whl |
Total release size: 2.0 MB
Release files / cdk-bucket-deployment-expirator-1.87.1.tar.gz
| Download URL | cdk-bucket-deployment-expirator-1.87.1.tar.gz |
|---|---|
| Size | 1.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
21bd6cabc25ef596ffbf61f1677f75d3880b70b124aa2aca8f3d9ee2c6503b44
|
|
BLAKE2b-256 checksum How to use checksums |
5e7f265032195e89d275ebdab179ee4e1a27b1fdf4d2c3399be42a647d7b4b65
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.9
|
Release files / cdk_bucket_deployment_expirator-1.87.1-py3-none-any.whl
| Download URL | cdk_bucket_deployment_expirator-1.87.1-py3-none-any.whl |
|---|---|
| Size | 1.0 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b0ada58abd290cc8cfe775ee0001392ffa58e09b1373c6a44c29345788274615
|
|
BLAKE2b-256 checksum How to use checksums |
c7710b2d6dee3e3ebbfea6b36adcee11790c9f19add7a5b70a8da1c5a5e53fb6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.9
|
Security for cdk-bucket-deployment-expirator 1.87.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.