fix: flattened variables for terraform

This commit is contained in:
2025-01-11 22:45:43 -05:00
parent 895650a89e
commit 95f67c07b7
2 changed files with 17 additions and 11 deletions

View File

@@ -1,24 +1,24 @@
data "aws_s3_bucket" "storage_bucket" {
bucket = var.gitea_boot.bucket
bucket = var.boot_bucket
}
data "aws_iam_policy_document" "gitea_bool_policy" {
statement {
effect = "Allow"
actions = ["s3:*", "s3-object-lambda:*"]
resources = ["${data.aws_s3_bucket.storage_bucket.arn}/${var.gitea_boot.key}"]
resources = ["${data.aws_s3_bucket.storage_bucket.arn}/${var.boot_key}"]
}
}
resource "aws_iam_policy" "gitea_boot_policy" {
name = "${var.gitea_boot.role}Policy"
name = "${var.boot_role}Policy"
description = "The policy that manages the Gitea Boot."
policy = data.aws_iam_policy_document.gitea_bool_policy.json
}
resource "aws_iam_user" "gitea_boot_user" {
name = "${var.gitea_boot.role}User"
name = "${var.boot_role}User"
}
resource "aws_iam_user_policy_attachment" "attachment" {