<commit_before>provider "aws" {
  access_key = "${var.aws_access_key}"
  secret_key = "${var.aws_secret_key}"
  region = "ap-northeast-1"
}

resource "aws_s3_bucket" "main" {
  bucket = "${var.bucket_name}"
  acl = "public-read"

  website {
    index_document = "index.html"
    error_document = "error.html"
  }

  tags {
    Name = "${var.bucket_name}"
    Environment = "pkgng"
  }
}

resource "aws_iam_user" "main" {
    name = "pkgng-s3-sync"
    path = "/pkgng/"
}

resource "aws_iam_access_key" "main" {
    user = "${aws_iam_user.main.name}"
}

resource "template_file" "policy" {
  filename = "s3-sync-policy.json"
  vars {
    bucket = "${aws_s3_bucket.main.id}"
  }
}<commit_msg>fix path to IAM polocy template_file<commit_after>provider "aws" {
  access_key = "${var.aws_access_key}"
  secret_key = "${var.aws_secret_key}"
  region = "ap-northeast-1"
}

resource "aws_s3_bucket" "main" {
  bucket = "${var.bucket_name}"
  acl = "public-read"

  website {
    index_document = "index.html"
    error_document = "error.html"
  }

  tags {
    Name = "${var.bucket_name}"
    Environment = "pkgng"
  }
}

resource "aws_iam_user" "main" {
    name = "pkgng-s3-sync"
    path = "/pkgng/"
}

resource "aws_iam_access_key" "main" {
    user = "${aws_iam_user.main.name}"
}

resource "template_file" "policy" {
  filename = "${path.module}/s3-sync-policy.json"
  vars {
    bucket = "${aws_s3_bucket.main.id}"
  }
}
{'fraction_non_alphanumeric': 0.16830985915492958, 'fraction_numerical': 0.007042253521126761, 'mean_word_length': 3.440625, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '291326', 'n_tokens_mistral': 562, 'n_tokens_neox': 554, 'n_words': 95}