2020-05-11 14:46:09 +02:00
|
|
|
provider "aws" {
|
2020-05-11 15:58:56 +02:00
|
|
|
region = "eu-west-2"
|
2020-05-11 14:46:09 +02:00
|
|
|
}
|
|
|
|
|
2020-05-12 10:31:09 +02:00
|
|
|
resource "aws_instance" "cedric-instance1" {
|
2020-05-11 16:12:25 +02:00
|
|
|
ami = "ami-01a6e31ac994bbc09"
|
2020-05-11 14:46:09 +02:00
|
|
|
instance_type = "t2.micro"
|
2020-05-11 16:12:25 +02:00
|
|
|
key_name = "cedric"
|
2020-05-11 15:58:56 +02:00
|
|
|
tags = {
|
2020-05-12 10:31:09 +02:00
|
|
|
Name = "cedric-instance1"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
resource "aws_instance" "cedric-instance2" {
|
|
|
|
ami = "ami-01a6e31ac994bbc09"
|
|
|
|
instance_type = "t2.micro"
|
|
|
|
key_name = "cedric"
|
|
|
|
tags = {
|
|
|
|
Name = "cedric-instance2"
|
2020-05-11 15:58:56 +02:00
|
|
|
}
|
2020-05-11 14:46:09 +02:00
|
|
|
}
|