---
# System prepended metadata

title: Untitled

---

resource "random_string" "default" {
  length  = 16
  special = false
}

resource "aws_s3_bucket" "this" {
    acl    = "private"
    bucket = "TEST-${random_string.default.id}"
}

bcuket_name = test-2jntmf3nmvaeacwd

import boto3
import yaml

s3 = boto3.client("s3")
with open("../files.yml", "r") as stream:
    out = yaml.load(stream, Loader=yaml.FullLoader)
    s3.upload_file(Bucket="test-2jntmf3nmvaeacwd", Filename=out["files"][0]["path"], Key=out["files"][0]["name"])
    s3.upload_file(Bucket="test-2jntmf3nmvaeacwd", Filename=out["files"][1]["path"], Key=out["files"][1]["name"])
