Skip to content

Commit a5339c7

Browse files
committed
Change users
1 parent 83807c4 commit a5339c7

1 file changed

Lines changed: 30 additions & 24 deletions

File tree

terraform/users/main.tf

Lines changed: 30 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -5,36 +5,40 @@ provider "aws" {
55
locals {
66
all_names = [
77
"dog",
8-
"cat",
9-
"elephant",
10-
"giraffe",
11-
"lion",
12-
"tiger",
13-
"bear",
14-
"wolf",
15-
"fox",
16-
"rabbit",
17-
"deer",
18-
"horse",
19-
"cow",
20-
"sheep",
21-
"chicken",
22-
"duck",
23-
"goose",
24-
"eagle",
25-
"owl",
26-
"penguin",
27-
"dolphin",
28-
"whale",
29-
"kangaroo",
30-
"zebra"
8+
# "cat",
9+
# "elephant",
10+
# "giraffe",
11+
# "lion",
12+
# "tiger",
13+
# "bear",
14+
# "wolf",
15+
# "fox",
16+
# "rabbit",
17+
# "deer",
18+
# "horse",
19+
# "cow",
20+
# "sheep",
21+
# "chicken",
22+
# "duck",
23+
# "goose",
24+
# "eagle",
25+
# "owl",
26+
# "penguin",
27+
# "dolphin",
28+
# "whale",
29+
# "kangaroo",
30+
# "zebra"
3131
]
3232

3333
user_count = length(local.all_names)
3434

3535
names = slice(local.all_names, 0, local.user_count)
3636

37-
expire_user_at = "2024-06-21T13:00:00.000Z"
37+
expire_user_at = "2024-10-17T13:00:00.000Z"
38+
}
39+
40+
resource "aws_default_vpc" "vpc" {
41+
3842
}
3943

4044
resource "aws_iam_user" "users" {
@@ -322,6 +326,8 @@ resource "aws_iam_group_policy" "users3" {
322326
}
323327

324328
resource "aws_security_group" "app" {
329+
depends_on = [aws_default_vpc.vpc]
330+
325331
name = "EC2"
326332

327333
egress {

0 commit comments

Comments
 (0)