# ----------------------------------------------------------------------------------------------------------- # IAM User for Uploading resource "aws_iam_user" "s3" { name = "${var.site}-s3" path = "/${var.site}/" tags = { Site = var.site Category = "S3" } } resource "aws_iam_user_policy" "s3" { name = "test" user = aws_iam_user.s3.name policy = <