File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
# Create an EC2 instance in the public subnet
2
2
resource "aws_instance" "instance0" {
3
- ami = var. aws_ami_id
3
+ ami = var. aws_ami_id
4
4
instance_type = " t3.micro"
5
5
6
6
network_interface {
Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ resource "aws_route_table" "route_table" {
109
109
lifecycle {
110
110
create_before_destroy = true
111
111
}
112
-
112
+
113
113
depends_on = [aws_vpc . vpc0 ]
114
114
}
115
115
@@ -121,7 +121,7 @@ resource "aws_route" "public_route" {
121
121
lifecycle {
122
122
create_before_destroy = true
123
123
}
124
-
124
+
125
125
depends_on = [aws_route_table . route_table ]
126
126
}
127
127
Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ resource "aws_network_acl" "main" {
137
137
from_port = 443
138
138
to_port = 443
139
139
}
140
-
140
+
141
141
# for ssh access to ec2 instances
142
142
ingress {
143
143
protocol = " tcp"
You can’t perform that action at this time.
0 commit comments