Previous topic

s3_policy

Next topic

ec2_static_ip

This Page

s3_user

class examples.s3_bucket.s3_user.S3UserStack(conf)[source]

Tropostack defining an S3 bucket, together with an IAM user account that is allowed to access the bucket

Parameters:
  • region (str) – Explicit region specification for the stack
  • bucket_name (str) – The name of the S3 bucket to be created. Can contain AWS variables such as ${AWS::AccountId}
  • path (str) – Templated IAM user path. Must start and finish with a /
  • username (str) – Templated username, e.g. ${AWS::StackName}-bot
  • allowed_actions (list of str) – S3 API actions to be enabled for the user
Outputs:
BucketArn (str): The ARN of the created S3 bucket UserName (str): The ARN of the created S3 bucket