1
0
Fork 0

local module usage

This commit is contained in:
Cedric Girard 2020-05-13 10:26:38 +02:00
parent 19a87d89ae
commit f5acff9695
Signed by: X-dark
GPG Key ID: E7D0E125DB9519E4
2 changed files with 15 additions and 0 deletions

12
module1/module1.tf Normal file
View File

@ -0,0 +1,12 @@
provider "aws" {
region = "eu-west-2"
}
resource "aws_instance" "cedric-instance1" {
ami = "ami-01a6e31ac994bbc09"
instance_type = "t2.micro"
key_name = "cedric"
tags = {
Name = "cedric-module-instance1"
}
}

3
project4/base.tf Normal file
View File

@ -0,0 +1,3 @@
module "my_module" {
source = "../module1"
}