Skip to content

Commit

Permalink
Configurable names for aws_iam_policy test
Browse files Browse the repository at this point in the history
  • Loading branch information
jckuester committed May 25, 2020
1 parent 5471966 commit 0fa10cd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/test-fixtures/iam-policy/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ terraform {
}

resource "aws_iam_user" "test" {
name = "awsweeper-test-acc"
name = var.name

tags = {
awsweeper = "test-acc"
}
}

resource "aws_iam_role" "test" {
name = "awsweeper-test-acc"
name = var.name

assume_role_policy = <<EOF
{
Expand All @@ -44,11 +44,11 @@ EOF
}

resource "aws_iam_group" "test" {
name = "awsweeper-test-acc"
name = var.name
}

resource "aws_iam_policy" "test" {
name = "awsweeper-test-acc"
name = var.name
description = "A test policy"

policy = <<EOF
Expand All @@ -68,7 +68,7 @@ EOF
}

resource "aws_iam_policy_attachment" "test" {
name = "awsweeper-test-acc"
name = var.name
users = [aws_iam_user.test.name]
roles = [aws_iam_role.test.name]
groups = [aws_iam_group.test.name]
Expand Down

0 comments on commit 0fa10cd

Please sign in to comment.