cloudknot.aws.get_s3_params¶
- cloudknot.aws.get_s3_params()[source]¶
Get the cloudknot S3 bucket and corresponding access policy
For the bucket name, first check the cloudknot config file for the bucket option. If that fails, check for the CLOUDKNOT_S3_BUCKET environment variable. If that fails, use ‘cloudknot-‘ + get_user().lower() + ‘-‘ + uuid4()
For the policy name, first check the cloudknot config file. If that fails, use ‘cloudknot-bucket-access-‘ + str(uuid.uuid4())
For the region, first check the cloudknot config file. If that fails, use the current cloudknot region
- Returns
bucket (NamedTuple) – A namedtuple with fields [‘bucket’, ‘policy’, ‘policy_arn’, ‘sse’]