two resources
This commit is contained in:
parent
b62e61d747
commit
e6ddc059d4
2 changed files with 12 additions and 3 deletions
|
@ -2,11 +2,20 @@ provider "aws" {
|
||||||
region = "eu-west-2"
|
region = "eu-west-2"
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "aws_instance" "cedric-res1" {
|
resource "aws_instance" "cedric-instance1" {
|
||||||
ami = "ami-01a6e31ac994bbc09"
|
ami = "ami-01a6e31ac994bbc09"
|
||||||
instance_type = "t2.micro"
|
instance_type = "t2.micro"
|
||||||
key_name = "cedric"
|
key_name = "cedric"
|
||||||
tags = {
|
tags = {
|
||||||
Name = "cedric-res1"
|
Name = "cedric-instance1"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
resource "aws_instance" "cedric-instance2" {
|
||||||
|
ami = "ami-01a6e31ac994bbc09"
|
||||||
|
instance_type = "t2.micro"
|
||||||
|
key_name = "cedric"
|
||||||
|
tags = {
|
||||||
|
Name = "cedric-instance2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"version": 4,
|
"version": 4,
|
||||||
"terraform_version": "0.12.24",
|
"terraform_version": "0.12.24",
|
||||||
"serial": 7,
|
"serial": 18,
|
||||||
"lineage": "6efb1875-c719-ba5d-da5b-08b8b95e015f",
|
"lineage": "6efb1875-c719-ba5d-da5b-08b8b95e015f",
|
||||||
"outputs": {},
|
"outputs": {},
|
||||||
"resources": []
|
"resources": []
|
||||||
|
|
Loading…
Reference in a new issue