SWA Secure S3 Storage Bucket Stack Library
Define a S3 bucket that security will be proud of.
S3StorageBucketStack exposes the following deploy-time attributes from the underlying bucket construct:
bucketArn- the ARN of the bucket (i.e.arn:aws:s3:::bucket_name)bucketName- the name of the bucket (i.e.bucket_name)arnForObjects(pattern)- the ARN of an object or objects within the bucket (i.e.arn:aws:s3:::bucket_name/exampleobject.pngorarn:aws:s3:::bucket_name/Development/*)urlForObject(key)- the URL of an object within the bucket (i.e.https://s3.cn-north-1.amazonaws.com.cn/china-bucket/mykey)
S3StorageBucketStack exposes the following deploy-time methods from the underlying bucket construct:
add_lifecycle_ruleadd_metricadd_object_created_notificationadd_object_removed_notificationselfadd_event_notificationadd_to_resource_policyarn_for_objectson_cloud_trail_eventon_cloud_trail_put_objecturl_for_object
Helpfull commands
- Package code for publishing. First increment the version in setup.py then run the following
python3 setup.py sdist bdist_wheel - Publish code -- you need a valid pypi credentials file
python3 -m twine upload dist/* - Generate documentation
cd docs && make html - Run unit tests
pytest --cov . --cov-report=html --html=testreport/report.html - upload to sonar
sonar-scanner \-Dsonar.projectKey=swa_cc_secure_s3_storage_bucket \-Dsonar.sources=source\swa_cc \-Dsonar.host.url=https://sonar-tools.swacorp.com/EC \-Dsonar.login=eda1a69701cd879fe142e1c36b2ed3db6769a01c
Metadata
Release files for swa-cc.secure-s3-storage-bucket 1.3.0
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 |
|---|---|---|---|---|
| swa_cc.secure_s3_storage_bucket-1.3.0.tar.gz | 3.7 kB | Without provenance | Details for swa_cc.secure_s3_storage_bucket-1.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| swa_cc.secure_s3_storage_bucket-1.3.0-py3-none-any.whl | Python 3 | none | any | Details for swa_cc.secure_s3_storage_bucket-1.3.0-py3-none-any.whl |
Total release size: 9.6 kB
Release files / swa_cc.secure_s3_storage_bucket-1.3.0.tar.gz
| Download URL | swa_cc.secure_s3_storage_bucket-1.3.0.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ddc179e08e2de8951697821189d2c304739d37f994a57b0443f3655f05f3741a
|
|
BLAKE2b-256 checksum How to use checksums |
8c15a671b66778ae913f4ece552af7210dafb3673ef45ee46c332b6ea57ea861
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.4
|
Release files / swa_cc.secure_s3_storage_bucket-1.3.0-py3-none-any.whl
| Download URL | swa_cc.secure_s3_storage_bucket-1.3.0-py3-none-any.whl |
|---|---|
| Size | 5.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a44ce0d90de5cbabc43c827b8f8d3b77562506cc0b0fdeff08c350156b5a2e7b
|
|
BLAKE2b-256 checksum How to use checksums |
4ffa18d02b104486ff0297f454cc10972b6eeb3746f3f957836944c673dab247
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.4
|
Security for swa-cc.secure-s3-storage-bucket 1.3.0
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.