Module: CertificationHelper

Included in:
CFM::Configuration, EC2::Ec2ApiGateway, VPC::VpcApiGateway
Defined in:
lib/etude_for_aws/helpers/certification_helper.rb

Instance Method Summary collapse

Instance Method Details

#aws_certificateObject



5
6
7
8
9
10
11
12
13
14
15
# File 'lib/etude_for_aws/helpers/certification_helper.rb', line 5

def aws_certificate
  Dotenv.load
  yaml_region = ConfigurationHelper.get_yaml_region
  region = ENV['AWS_REGION']
  region = yaml_region if region.nil?
  Aws.config.update(
      access_key_id: ENV['AWS_ACCESS_KEY_ID'],
      secret_access_key: ENV['AWS_SECRET_ACCESS_KEY'],
      region: region
  )
end