NEW: more samples

This commit is contained in:
xpk
2020-10-07 09:15:05 +08:00
parent deb31cd525
commit 5361a040c1
9 changed files with 124 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
locals {
group_names = {
group1 = "/users/"
group2 = "/users/"
group3 = "/users/"
}
}
resource "aws_iam_group" "iam-groups" {
for_each = local.group_names
name = each.key
path = each.value
}
+10
View File
@@ -0,0 +1,10 @@
variable "aws_access_key" {}
variable "aws_secret_key" {}
variable "aws_region" {}
provider "aws" {
access_key = var.aws_access_key
secret_key = var.aws_secret_key
region = var.aws_region
}