```hcl
data "aws_iam_policy_document" "travis_permissions" {
  statement {
    actions = [
      "s3:*",
    ]

    resources = [
      "${var.bucket_arn}/uk/ac/wellcome/${var.name}_2.12/*",
    ]
  }

  statement {
    actions = [
      "s3:ListBucket",
    ]

    resources = [
      "${var.bucket_arn}",
    ]
  }
}
```

Allow read access to Travis can resolve other S3 dependencies
user
```hcl
data "aws_iam_policy_document" "travis_permissions" {
  statement {
    actions = [
      "s3:*",
    ]

    resources = [
      "${var.bucket_arn}/uk/ac/wellcome/${var.name}_2.12/*",
    ]
  }

  statement {
    actions = [
      "s3:ListBucket",
    ]

    resources = [
      "${var.bucket_arn}",
    ]
  }

  statement {
    actions = [
      "s3:Get*",
      "s3:List*",
    ]

    resources = [
      "${var.bucket_arn}/uk/ac/wellcome/*",
    ]
  }
}
```
assistant