Browse Source

added instance ip/dns outputs

Roberto Barbosa 8 năm trước cách đây
mục cha
commit
ccd3ed615d
3 tập tin đã thay đổi với 15 bổ sung2 xóa
  1. 11 0
      instance/outputs.tf
  2. 1 1
      s3/variables.tf
  3. 3 1
      vpc/variables.tf

+ 11 - 0
instance/outputs.tf

@@ -0,0 +1,11 @@
+output "ec2_instance_id" {
+  value = "${aws_instance.ec2.id}"
+}
+
+output "ec2_public_ip" {
+  value = "${aws_instance.ec2.public_ip}"
+}
+
+output "ec2_public_dns" {
+  value = "${aws_instance.ec2.public_dns}"
+}

+ 1 - 1
s3/variables.tf

@@ -2,4 +2,4 @@ variable "stack_name" {
 }
 
 variable "cust_id" {
-}
+}

+ 3 - 1
vpc/variables.tf

@@ -1,6 +1,8 @@
 variable "name" {}
 
-variable "cidr" {}
+variable "cidr" {
+  default  = "10.0.0.0/16"
+}
 
 variable "public_subnet" {
   description = "Default public subnet inside the VPC."