Skip to content

Commit

Permalink
Remove unused variables and update documentation (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevcube authored Apr 9, 2022
1 parent 6f90809 commit c26a176
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 31 deletions.
2 changes: 0 additions & 2 deletions examples/complete/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ module "aws_oidc_github" {
create_oidc_provider = var.create_oidc_provider
force_detach_policies = var.force_detach_policies
github_thumbprint = var.github_thumbprint
iam_policy_name = var.iam_policy_name
iam_policy_path = var.iam_policy_path
iam_role_name = var.iam_role_name
iam_role_path = var.iam_role_path
iam_role_permissions_boundary = var.iam_role_permissions_boundary
Expand Down
12 changes: 0 additions & 12 deletions examples/complete/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -44,18 +44,6 @@ variable "github_thumbprint" {
type = string
}

variable "iam_policy_name" {
default = "github"
description = "Name of the IAM policy to be assumed by GitHub."
type = string
}

variable "iam_policy_path" {
default = "/"
description = "Path to the IAM policy."
type = string
}

variable "iam_role_name" {
default = "github"
description = "Name of the IAM role."
Expand Down
22 changes: 5 additions & 17 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ variable "force_detach_policies" {
type = string
}

variable "github_organisation" {
description = "GitHub organisation name."
variable "github_organization" {
description = "GitHub organization name."
type = string
}

variable "github_repositories" {
description = "List of GitHub repository names."
description = "List of GitHub repository names which will be authorized to assume role."
type = list(string)
}

Expand All @@ -59,27 +59,15 @@ variable "github_thumbprint" {
type = string
}

variable "iam_policy_name" {
default = "github"
description = "Name of the IAM policy to be assumed by GitHub."
type = string
}

variable "iam_policy_path" {
default = "/"
description = "Path to the IAM policy."
type = string
}

variable "iam_role_name" {
default = "github"
description = "Name of the IAM role."
description = "Name of the IAM role to be created. This will be assumable by GitHub."
type = string
}

variable "iam_role_path" {
default = "/"
description = "Path to the IAM role."
description = "Path under which to create IAM role."
type = string
}

Expand Down

0 comments on commit c26a176

Please sign in to comment.