This page is specific to S3 remote types (eg acacia and AWS) it does not apply to the more specialised banksia service.
If you need more sophisticated policies and lifecycles, you can use the generated ones shown here as a starting point but will have to use awscli to add any customisations.
Setup
An acacia project can be added to your list of pshell remotes by using an arbitrary remote name (eg project123) and supplying the access/secret pair after you select the remote and login.
Policies
Simple S3 policies can also be automatically created for you, noting that:
- Policies are attached to buckets and are a list of statements about actions allowed or denied for that bucket only.
- Policies override the default project permissions so care should be taken not to lock yourself out of the bucket.
- Any DENY in a policy statement counts as a negative permission overall for that action, even if there is also an ALLOW elsewhere.
- Policies only grant visibility of objects in a bucket, not visibility of the bucket itself.
You can use the pshell command "info mybucket" to examine the active policies on that bucket.
Lifecycles
Simple S3 bucket lifecycles can also be automatically created for you affecting multi-part uploads and versioning.
Use the pshell command "info mybucket" to check if there are any current lifecycle rules as the following may overwrite them.
lifecycle my-bucket --review
Reviewing deletions: bucket=my-bucket, prefix=
* folder1/my_file.txt
lifecycle my-bucket/folder1/my_file.txt --restore
Restoring deletions: bucket=my-bucket, prefix=folder1/my_file.txt
restoring: folder1/my_file.txt
Restored object count: 1