Skip to content

Commit

Permalink
Remove unused IAM policy document
Browse files Browse the repository at this point in the history
  • Loading branch information
unfunco committed Dec 10, 2021
1 parent 1252f5d commit 24afc52
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
| ------------------------------- | ---------- | -------------------------------------------------------------- |
| `attach_read_only_policy` | `true` | Flag to attach/detach the ReadOnly policy. |
| `enabled` | `true` | Flag to enable/disable creation of resources. |
| `force_detach_policies` | `false` | Flag to force detachment of policies attached to the IAM role. |
| `force_detach_policies` | `false` | Flag to force detach policies attached to the IAM role. |
| `iam_policy_name` | `"github"` | Name of the IAM policy to be assumed by GitHub. |
| `iam_policy_path` | `"/"` | Path to the IAM policy. |
| `iam_role_name` | `"github"` | Name of the IAM role. |
Expand Down
12 changes: 0 additions & 12 deletions data.tf
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,3 @@ data "aws_iam_policy_document" "assume_role" {

version = "2012-10-17"
}

data "aws_iam_policy_document" "github" {
count = local.enabled

statement {
actions = ["sts:GetCallerIdentity"]
effect = "Allow"
resources = ["*"]
}

version = "2012-10-17"
}

0 comments on commit 24afc52

Please sign in to comment.