Core / Build Stable / v15_test (push) Canceled after 0s
Core / Build Stable / v16_test (push) Canceled after 0s
Docs / Publish Site / Docs / Build (24) (push) Canceled after 0s
Lint / lint (push) Canceled after 0s
Core / Build Stable / v15_publish (push) Canceled after 0s
Core / Build Stable / v16_publish (push) Canceled after 0s
Core / Build Stable / Update example.env and pwd.yml (push) Canceled after 0s
Core / Build Stable / Release Helm (push) Canceled after 0s
Docs / Publish Site / Docs / Deploy (push) Canceled after 0s
20 lines
411 B
Python
20 lines
411 B
Python
import os
|
|
|
|
import boto3
|
|
|
|
|
|
def main() -> int:
|
|
resource = boto3.resource(
|
|
service_name="s3",
|
|
endpoint_url="http://minio:9000",
|
|
region_name="us-east-1",
|
|
aws_access_key_id=os.getenv("S3_ACCESS_KEY"),
|
|
aws_secret_access_key=os.getenv("S3_SECRET_KEY"),
|
|
)
|
|
resource.create_bucket(Bucket="frappe")
|
|
return 0
|
|
|
|
|
|
if __name__ == "__main__":
|
|
raise SystemExit(main())
|