-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tf
34 lines (30 loc) · 805 Bytes
/
main.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "3.37.0"
}
}
backend "s3" {
bucket = "nether-infrastructure"
key = "terraform/state"
region = "af-south-1"
}
}
provider "aws" {
region = "af-south-1"
}
resource "aws_elastic_beanstalk_application" "nether-web" {
name = "nether-web"
description = "Nether Website"
}
resource "aws_elastic_beanstalk_environment" "nether-web-env" {
name = "nether-web"
application = aws_elastic_beanstalk_application.nether-web.name
solution_stack_name = "64bit Amazon Linux 2 v5.3.1 running Node.js 14"
setting {
namespace = "aws:autoscaling:launchconfiguration"
name = "IamInstanceProfile"
value = "aws-elasticbeanstalk-ec2-role"
}
}