File tree Expand file tree Collapse file tree 3 files changed +17
-19
lines changed
infrastructure-as-code/aws-ec2-instance Expand file tree Collapse file tree 3 files changed +17
-19
lines changed Original file line number Diff line number Diff line change @@ -2,21 +2,6 @@ terraform {
2
2
required_version = " >= 0.11.0"
3
3
}
4
4
5
- variable "aws_region" {
6
- description = " AWS region"
7
- default = " us-west-1"
8
- }
9
-
10
- variable "ami_id" {
11
- description = " ID of the AMI to provision. Default is Ubuntu 14.04 Base Image"
12
- default = " ami-2e1ef954"
13
- }
14
-
15
- variable "instance_type" {
16
- description = " type of EC2 instance to provision."
17
- default = " t2.micro"
18
- }
19
-
20
5
provider "aws" {
21
6
region = " ${ var . aws_region } "
22
7
}
@@ -30,7 +15,3 @@ resource "aws_instance" "ubuntu" {
30
15
Name = " Provisioned-by-Terraform"
31
16
}
32
17
}
33
-
34
- output "public_dns" {
35
- value = " ${ aws_instance . ubuntu . public_dns } "
36
- }
Original file line number Diff line number Diff line change
1
+ output "public_dns" {
2
+ value = " ${ aws_instance . ubuntu . public_dns } "
3
+ }
Original file line number Diff line number Diff line change
1
+ variable "aws_region" {
2
+ description = " AWS region"
3
+ default = " us-west-1"
4
+ }
5
+
6
+ variable "ami_id" {
7
+ description = " ID of the AMI to provision. Default is Ubuntu 14.04 Base Image"
8
+ default = " ami-2e1ef954"
9
+ }
10
+
11
+ variable "instance_type" {
12
+ description = " type of EC2 instance to provision."
13
+ default = " t2.micro"
14
+ }
You can’t perform that action at this time.
0 commit comments