File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,36 +5,40 @@ provider "aws" {
55locals {
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
4044resource "aws_iam_user" "users" {
@@ -322,6 +326,8 @@ resource "aws_iam_group_policy" "users3" {
322326}
323327
324328resource "aws_security_group" "app" {
329+ depends_on = [aws_default_vpc . vpc ]
330+
325331 name = " EC2"
326332
327333 egress {
You can’t perform that action at this time.
0 commit comments