whisk.cli.commands.project.s3

Module Contents

Functions

cli()

create(bucket)

Creates an S3 bucket to store data. If no bucket name is provided, the bucket name is generated from the project directory name.

delete(bucket)

Delete the S3 bucket used for data storage. If no bucket name is provided, the bucket name is generated from the project directory name.

make_public(bucket)

Creates a public read-only policy for the S3 bucket.

delete_policy(bucket)

Deletes the policy associated with the S3 bucket.

Attributes

project

A reference to the associated whisk.project.Project object for this project.

PUBLIC_READ_ONLY_POLICY

The public read-only policy to apply to an S3 bucket.

DEFAULT_BUCKET_NAME

The default bucket name for the project.

S3_CLIENT

whisk.cli.commands.project.s3.project[source]

A reference to the associated whisk.project.Project object for this project.

whisk.cli.commands.project.s3.PUBLIC_READ_ONLY_POLICY[source]

The public read-only policy to apply to an S3 bucket.

whisk.cli.commands.project.s3.DEFAULT_BUCKET_NAME[source]

The default bucket name for the project.

whisk.cli.commands.project.s3.S3_CLIENT[source]
whisk.cli.commands.project.s3.cli()[source]
whisk.cli.commands.project.s3.create(bucket)[source]

Creates an S3 bucket to store data. If no bucket name is provided, the bucket name is generated from the project directory name.

whisk.cli.commands.project.s3.delete(bucket)[source]

Delete the S3 bucket used for data storage. If no bucket name is provided, the bucket name is generated from the project directory name.

whisk.cli.commands.project.s3.make_public(bucket)[source]

Creates a public read-only policy for the S3 bucket.

This is useful when end users need access to data or artifacts not stored in the code version control.

Use whisk delete-policy to revert.

whisk.cli.commands.project.s3.delete_policy(bucket)[source]

Deletes the policy associated with the S3 bucket.