Class: TerraspacePluginAws::Interfaces::Backend::Setup
- Defined in:
- lib/terraspace_plugin_aws/interfaces/backend/setup.rb
Instance Method Summary collapse
Methods inherited from Base
Methods included from Logging
Methods included from Clients
#dynamodb, #s3, #secretsmanager, #ssm, #sts
Constructor Details
This class inherits a constructor from TerraspacePluginAws::Interfaces::Backend::Base
Instance Method Details
#check! ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 |
# File 'lib/terraspace_plugin_aws/interfaces/backend/setup.rb', line 3 def check! sts.get_caller_identity rescue Aws::Errors::MissingCredentialsError => e logger.info "ERROR: #{e.class}: #{e.message}".color(:red) logger.info " It doesnt look like AWS credentials and access has been setup.\n Please double check the AWS credentials setup.\n IE: ~/.aws/config and the AWS_PROFILE env variable.\n EOL\n exit 1\nend\n" |