mirror of
https://github.com/farcasclaudiu/terraform-course.git
synced 2026-06-22 07:01:56 +03:00
changes
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
resource "aws_s3_bucket" "terraform-state" {
|
||||
bucket = "terraform-state-a2b621f"
|
||||
acl = "private"
|
||||
|
||||
tags {
|
||||
Name = "Terraform state"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
terraform remote config -backend=s3 -backend-config="bucket=terraform-state-a2b621f" -backend-config="key=terraform/terraform.tfstate" -backend-config="region=eu-west-1"
|
||||
@@ -18,7 +18,7 @@ mount /var/lib/jenkins
|
||||
wget -q -O - https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo apt-key add -
|
||||
echo "deb http://pkg.jenkins.io/debian-stable binary/" >> /etc/apt/sources.list
|
||||
apt-get update
|
||||
apt-get install -y jenkins=${JENKINS_VERSION}
|
||||
apt-get install -y jenkins=${JENKINS_VERSION} unzip
|
||||
|
||||
# install pip
|
||||
wget -q https://bootstrap.pypa.io/get-pip.py
|
||||
|
||||
@@ -22,9 +22,6 @@ variable "JENKINS_VERSION" {
|
||||
default = "2.19.1"
|
||||
}
|
||||
|
||||
variable "APP_INSTANCE_AMI" {
|
||||
default = "ami-2291de51"
|
||||
}
|
||||
variable "APP_INSTANCE_COUNT" {
|
||||
default = "0"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user