File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 22
33# Set bash unofficial strict mode http://redsymbol.net/articles/unofficial-bash-strict-mode/
44set -euo pipefail
5-
5+
66# Set DEBUG to true for enhanced debugging: run prefixed with "DEBUG=true"
77${DEBUG:- false} && set -vx
88# Credit to https://stackoverflow.com/a/17805088
@@ -30,6 +30,7 @@ $DOCKER_PACKER validate app/packer/machines/web-server.json
3030if [[ " ${SKIP_TERRAFORM:- false} " == " false" ]]; then
3131 DOCKER_TERRAFORM=$( get_docker_terraform)
3232 fmt=$( $DOCKER_TERRAFORM fmt)
33+ echo " Linting terraform files for formatting"
3334 if [[ -n " $fmt " ]]; then
3435 echo ' ERROR: these files are not formatted correctly. Run "terraform fmt"'
3536 echo " $fmt "
@@ -42,7 +43,6 @@ if [[ "${SKIP_TERRAFORM:-false}" == "false" ]]; then
4243 -var ' newrelic_license_key=ZZZZ' \
4344 -var ' newrelic_api_key=ZZZZ' \
444545- echo " Linting terraform files for formatting"
4646fi
4747
4848echo " Linting shell scripts"
Original file line number Diff line number Diff line change 1818 "vpc_id" : " {{user `aws_vpc_id`}}" ,
1919 "ssh_username" : " centos" ,
2020 "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
2223 }],
2324 "provisioners" : [
2425 {
Original file line number Diff line number Diff line change @@ -48,9 +48,10 @@ variable "google_project" {
4848 default = " example-media"
4949}
5050
51+ # Use devops prod account as default. We bake and store AMIs using packer.
5152variable "aws_account_id_for_ami" {
5253 description = " AWS Account ID where AMIs live, if not the default"
53- default = " "
54+ default = " 191447213457 "
5455}
5556
5657variable "ami_pattern" {
You can’t perform that action at this time.
0 commit comments