This commit is contained in:
Edward Viaene
2016-10-19 15:33:30 +00:00
parent 41c4cab50f
commit 55b8be8dc3
4 changed files with 11 additions and 4 deletions
+8
View File
@@ -0,0 +1,8 @@
resource "aws_s3_bucket" "terraform-state" {
bucket = "terraform-state-a2b621f"
acl = "private"
tags {
Name = "Terraform state"
}
}
+2
View File
@@ -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"
+1 -1
View File
@@ -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
-3
View File
@@ -22,9 +22,6 @@ variable "JENKINS_VERSION" {
default = "2.19.1"
}
variable "APP_INSTANCE_AMI" {
default = "ami-2291de51"
}
variable "APP_INSTANCE_COUNT" {
default = "0"
}