mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-03-20 16:43:46 +01:00
first commit
This commit is contained in:
9
test/integration/default/test_eks.rb
Normal file
9
test/integration/default/test_eks.rb
Normal file
@@ -0,0 +1,9 @@
|
||||
# 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
|
||||
Reference in New Issue
Block a user