Files
terraform-aws-eks/test/integration/default/test_eks.rb
brandoconnor 07aba1b766 first commit
2018-06-06 20:55:23 -07:00

10 lines
300 B
Ruby

# frozen_string_literal: true
require 'awspec'
# rubocop:disable LineLength
state_file = 'terraform.tfstate.d/kitchen-terraform-default-aws/terraform.tfstate'
tf_state = JSON.parse(File.open(state_file).read)
region = tf_state['modules'][0]['outputs']['region']['value']
ENV['AWS_REGION'] = region