Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fallback should work without defined AWS credentials #96

Open
prem-prakash opened this issue Jan 20, 2021 · 1 comment
Open

Fallback should work without defined AWS credentials #96

prem-prakash opened this issue Jan 20, 2021 · 1 comment

Comments

@prem-prakash
Copy link

Trying to initialize rails without AWS credentials set will raise error:

/usr/local/bundle/gems/aws-sdk-core-3.105.0/lib/aws-sdk-core/plugins/regional_endpoint.rb:55:in `after_initialize': No region was provided. Configure the `:region` option or export the region name to ENV['AWS_REGION'] (Aws::Errors::MissingRegionError)
	from /usr/local/bundle/gems/aws-sdk-core-3.105.0/lib/seahorse/client/base.rb:81:in `block in after_initialize'
	from /usr/local/bundle/gems/aws-sdk-core-3.105.0/lib/seahorse/client/base.rb:80:in `each'
	from /usr/local/bundle/gems/aws-sdk-core-3.105.0/lib/seahorse/client/base.rb:80:in `after_initialize'
	from /usr/local/bundle/gems/aws-sdk-core-3.105.0/lib/seahorse/client/base.rb:24:in `initialize'
	from /usr/local/bundle/gems/aws-sdk-secretsmanager-1.42.0/lib/aws-sdk-secretsmanager/client.rb:335:in `initialize'
	from /usr/local/bundle/gems/aws-sdk-core-3.105.0/lib/seahorse/client/base.rb:102:in `new'
	from /usr/local/bundle/gems/sekreto-0.5.1/lib/sekreto/railtie.rb:14:in `block (2 levels) in <class:Railtie>'
	from /usr/local/bundle/gems/sekreto-0.5.1/lib/sekreto.rb:26:in `setup'
	from /usr/local/bundle/gems/sekreto-0.5.1/lib/sekreto/railtie.rb:13:in `block in <class:Railtie>'
	from /usr/local/bundle/gems/activesupport-6.0.2.1/lib/active_support/lazy_load_hooks.rb:69:in `block in execute_hook'
	from /usr/local/bundle/gems/activesupport-6.0.2.1/lib/active_support/lazy_load_hooks.rb:62:in `with_execution_control'
	from /usr/local/bundle/gems/activesupport-6.0.2.1/lib/active_support/lazy_load_hooks.rb:67:in `execute_hook'
	from /usr/local/bundle/gems/activesupport-6.0.2.1/lib/active_support/lazy_load_hooks.rb:52:in `block in run_load_hooks'
	from /usr/local/bundle/gems/activesupport-6.0.2.1/lib/active_support/lazy_load_hooks.rb:51:in `each'
	from /usr/local/bundle/gems/activesupport-6.0.2.1/lib/active_support/lazy_load_hooks.rb:51:in `run_load_hooks'
	from /usr/local/bundle/gems/railties-6.0.2.1/lib/rails/application.rb:96:in `inherited'
	from /app/config/application.rb:26:in `<module:SparkEcommerce>'
	from /app/config/application.rb:24:in `<top (required)>'
	from /usr/local/bundle/gems/spring-2.1.0/lib/spring/application.rb:92:in `require'
	from /usr/local/bundle/gems/spring-2.1.0/lib/spring/application.rb:92:in `preload'
	from /usr/local/bundle/gems/spring-2.1.0/lib/spring/application.rb:157:in `serve'
	from /usr/local/bundle/gems/spring-2.1.0/lib/spring/application.rb:145:in `block in run'
	from /usr/local/bundle/gems/spring-2.1.0/lib/spring/application.rb:139:in `loop'
	from /usr/local/bundle/gems/spring-2.1.0/lib/spring/application.rb:139:in `run'
	from /usr/local/bundle/gems/spring-2.1.0/lib/spring/application/boot.rb:19:in `<top (required)>'
	from /usr/local/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:85:in `require'
	from /usr/local/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:85:in `require'
	from -e:1:in `<main>'
@prem-prakash
Copy link
Author

#97

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant