From e6ddc059d47a986e761fe6417a3c36e351cf93ca Mon Sep 17 00:00:00 2001 From: Cedric Girard Date: Tue, 12 May 2020 10:31:09 +0200 Subject: [PATCH] two resources --- project1/base.tf | 13 +++++++++++-- project1/terraform.tfstate | 2 +- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/project1/base.tf b/project1/base.tf index 95889a4..ec17934 100644 --- a/project1/base.tf +++ b/project1/base.tf @@ -2,11 +2,20 @@ provider "aws" { region = "eu-west-2" } -resource "aws_instance" "cedric-res1" { +resource "aws_instance" "cedric-instance1" { ami = "ami-01a6e31ac994bbc09" instance_type = "t2.micro" key_name = "cedric" 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" } } diff --git a/project1/terraform.tfstate b/project1/terraform.tfstate index 878aff9..79c0125 100644 --- a/project1/terraform.tfstate +++ b/project1/terraform.tfstate @@ -1,7 +1,7 @@ { "version": 4, "terraform_version": "0.12.24", - "serial": 7, + "serial": 18, "lineage": "6efb1875-c719-ba5d-da5b-08b8b95e015f", "outputs": {}, "resources": []