resume-manpage/_meta/iac/provider.aws.iam.tf
bdeshi 8befe6d530
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
chore: move meta dir
2024-05-17 10:05:29 +06:00

20 lines
567 B
HCL

resource "aws_iam_user" "publisher" {
name = "${var.domain_name}_publisher"
path = "/${var.aws_tag_iac_identifier}/${local.workspace_env}/"
force_destroy = true
}
resource "aws_iam_access_key" "publisher" {
user = aws_iam_user.publisher.name
}
resource "aws_iam_policy" "publisher" {
name_prefix = "${var.domain_name}_publisher"
policy = data.aws_iam_policy_document.pubilsher.json
}
resource "aws_iam_user_policy_attachment" "publisher" {
policy_arn = aws_iam_policy.publisher.arn
user = aws_iam_user.publisher.name
}