1
0
Fork 0

two resources

This commit is contained in:
Cedric Girard 2020-05-12 10:31:09 +02:00
parent b62e61d747
commit e6ddc059d4
Signed by: X-dark
GPG key ID: E7D0E125DB9519E4
2 changed files with 12 additions and 3 deletions

View file

@ -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"
} }
} }

View file

@ -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": []