Skip to content

Commit

Permalink
remoção de provider do módulo + remoçãpo de variavel de região
Browse files Browse the repository at this point in the history
  • Loading branch information
evairmarinho committed Jun 3, 2021
1 parent 18d14b7 commit 67c4c5a
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 11 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ module "terraform-aws-iam-users-groups" {

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| <a name="input_region"></a> [region](#input\_region) | Region where the resources will be created. | `string` | n/a | yes |
| <a name="input_create_groups"></a> [create\_groups](#input\_create\_groups) | Define if Terraform will create new\_groups based on variable groups . | `bool` | `false` | no |
| <a name="input_groups"></a> [groups](#input\_groups) | List of group names for Terraform create, case create\_groups variable be true | `list(string)` | `[]` | no |
| <a name="input_users"></a> [users](#input\_users) | Map for Terraform create users. | `map(any)` | `{}` | no |
Expand Down
5 changes: 0 additions & 5 deletions main.tf
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
provider "aws" {
region = var.region
}


resource "aws_iam_group" "groups" {
for_each = var.create_groups ? toset(var.groups) : toset([])
name = each.value
Expand Down
5 changes: 0 additions & 5 deletions variables.tf
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
variable "region" {
type = string
description = "Region where the resources will be created."
}

variable "groups" {
type = list(string)
default = []
Expand Down

0 comments on commit 67c4c5a

Please sign in to comment.