I added this to the config.pp ```class awscli2::co...
# forge-modules
t
I added this to the config.pp
Copy code
class awscli2::config {
    
  #########################
  #adds files and folders
  #########################
  file { '/root/.aws':
    ensure  => directory,
  }

  file { '/root/.aws/credentials':
    ensure  => 'file',
    require =>  File['/root/.aws'] ,
    content => template('awscli2/credentials.erb'),
  }

  file { '/root/.aws/config':
    ensure  => present,
    content  => template('awscli2/aws-config.erb'),
    require => [ File['/root/.aws'] ] ,
  }

}