Previous topic

s3_minimal

Next topic

s3_user

This Page

s3_policy

class examples.s3_bucket.s3_policy.AugmentedCLI(stack_cls)[source]

Extend the default set of CLI commands to add a custom action.

cmd_purge()[source]

Delete all objects inside the S3 bucket, along with the bucket itself.

class examples.s3_bucket.s3_policy.S3BucketStack(conf)[source]

Tropostack defining an S3 bucket with optional IP-based access restriction

Parameters:
  • allowed_cidr (str) – IP CIDR range to allow access from. Use 0.0.0.0/0 to allow access from anywhere.
  • bucket_name (str) – The name of the S3 bucket to be created. Can contain AWS variables such as ${AWS::AccountId}
Outputs:
BucketArn (str): The ARN of the created S3 bucket