File tree 3 files changed +6
-4
lines changed 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 2
2
3
3
# Set bash unofficial strict mode http://redsymbol.net/articles/unofficial-bash-strict-mode/
4
4
set -euo pipefail
5
-
5
+
6
6
# Set DEBUG to true for enhanced debugging: run prefixed with "DEBUG=true"
7
7
${DEBUG:- false} && set -vx
8
8
# Credit to https://stackoverflow.com/a/17805088
@@ -30,6 +30,7 @@ $DOCKER_PACKER validate app/packer/machines/web-server.json
30
30
if [[ " ${SKIP_TERRAFORM:- false} " == " false" ]]; then
31
31
DOCKER_TERRAFORM=$( get_docker_terraform)
32
32
fmt=$( $DOCKER_TERRAFORM fmt)
33
+ echo " Linting terraform files for formatting"
33
34
if [[ -n " $fmt " ]]; then
34
35
echo ' ERROR: these files are not formatted correctly. Run "terraform fmt"'
35
36
echo " $fmt "
@@ -42,7 +43,6 @@ if [[ "${SKIP_TERRAFORM:-false}" == "false" ]]; then
42
43
-var ' newrelic_license_key=ZZZZ' \
43
44
-var ' newrelic_api_key=ZZZZ' \
44
45
-var ' newrelic_alert_email=ferd.berferd@example.com' \
45
- echo " Linting terraform files for formatting"
46
46
fi
47
47
48
48
echo " Linting shell scripts"
Original file line number Diff line number Diff line change 18
18
"vpc_id" : " {{user `aws_vpc_id`}}" ,
19
19
"ssh_username" : " centos" ,
20
20
"ami_name" : " devops-infra-demo-centos-7-{{timestamp}}" ,
21
- "ami_description" : " DevOps Infrastructure Demo CentOS 7 - CIS hardened"
21
+ "ami_description" : " DevOps Infrastructure Demo CentOS 7 - CIS hardened" ,
22
+ "ami_users" : [" 587267277416" ] // Share with devops sandbox account
22
23
}],
23
24
"provisioners" : [
24
25
{
Original file line number Diff line number Diff line change @@ -48,9 +48,10 @@ variable "google_project" {
48
48
default = " example-media"
49
49
}
50
50
51
+ # Use devops prod account as default. We bake and store AMIs using packer.
51
52
variable "aws_account_id_for_ami" {
52
53
description = " AWS Account ID where AMIs live, if not the default"
53
- default = " "
54
+ default = " 191447213457 "
54
55
}
55
56
56
57
variable "ami_pattern" {
You can’t perform that action at this time.
0 commit comments