local module usage
This commit is contained in:
parent
19a87d89ae
commit
f5acff9695
2 changed files with 15 additions and 0 deletions
12
module1/module1.tf
Normal file
12
module1/module1.tf
Normal 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
3
project4/base.tf
Normal file
|
@ -0,0 +1,3 @@
|
|||
module "my_module" {
|
||||
source = "../module1"
|
||||
}
|
Loading…
Reference in a new issue