From c0214bf1f7d1b544155788bfa04befa10b1f58e4 Mon Sep 17 00:00:00 2001 From: Nathen Harvey Date: Wed, 30 Nov 2016 07:13:16 -0800 Subject: [PATCH] New AMIs for RedHat Chef Compliance Workstations * ChefDK 1.0.3 is installed * AMI version bumped to 1.3.1 * AMI name updated * AMI ID updated in the build and show scripts Signed-off-by: Nathen Harvey --- build_compliance_workstations.sh | 2 +- compliance-rhel.json | 2 +- show_running_compliance_instances.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build_compliance_workstations.sh b/build_compliance_workstations.sh index a13b5cb..26d5361 100755 --- a/build_compliance_workstations.sh +++ b/build_compliance_workstations.sh @@ -2,7 +2,7 @@ # Builds training instances in EC2 USAGE="Usage: $0 [number] [name] [department] [contact] [project] [termination-date]" -AMI_ID=ami-352f0d22 +AMI_ID=ami-614d7476 NUMHOSTS=$1 NAME=$2 diff --git a/compliance-rhel.json b/compliance-rhel.json index 7980211..d0328de 100644 --- a/compliance-rhel.json +++ b/compliance-rhel.json @@ -16,7 +16,7 @@ "instance_type": "m3.medium", "source_ami": "ami-2051294a", "ssh_username": "ec2-user", - "ami_name": "Compliance Workshop Workstation - RedHat 7 - 1.2.1" + "ami_name": "Compliance Workshop Workstation (ChefDK 1.0.3)- RedHat 7 - 1.3.1" }], "provisioners": [{ diff --git a/show_running_compliance_instances.sh b/show_running_compliance_instances.sh index 00e57d7..779d049 100755 --- a/show_running_compliance_instances.sh +++ b/show_running_compliance_instances.sh @@ -1,5 +1,5 @@ #!/bin/sh -AMI_ID=ami-352f0d22 +AMI_ID=ami-614d7476 aws ec2 describe-instances --query 'Reservations[*].Instances[*].[InstanceId,ImageId,PublicIpAddress,State.Name,Tags[?Key==`Name`].Value | [0]]' --output text | grep running | grep $AMI_ID