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

issues with deployment to us-east-2 region #317

Open
bennettatoms opened this issue Oct 25, 2018 · 0 comments
Open

issues with deployment to us-east-2 region #317

bennettatoms opened this issue Oct 25, 2018 · 0 comments

Comments

@bennettatoms
Copy link

Hi there! I have been using s3_website for automated deployments to buckets in the us-east-1 region, and it's been working really well, so thanks! However, I have been trying to do the same for a bucket in the us-east-2 region, and I am getting the error:
[fail] Could not load the site: Unrecognised endpoint: us-east-2

Can someone help point me in the right direction? Here's what my yaml file looks like:

s3_id: <%= ENV['AWS_ACCESS_KEY_ID'] %>
s3_secret: <%= ENV['AWS_SECRET_ACCESS_KEY'] %>

# switch the following depending on desired
# branch/environment for deployment

<%
  if ENV['ENV'] == 'production'
    @s3_bucket = ENV['AWS_PRODUCTION_S3_BUCKET']
    @s3_endpoint = ENV['AWS_PRODUCTION_REGION']
  elsif ENV['ENV'] == 'staging'
    @s3_bucket = ENV['AWS_STAGING_S3_BUCKET']
    @s3_endpoint = ENV['AWS_STAGING_REGION']
  else
    @s3_bucket = ENV['AWS_DEVELOPMENT_S3_BUCKET']
    @s3_endpoint = ENV['AWS_DEVELOPMENT_REGION']
  end
%>

s3_bucket: <%= @s3_bucket %>
s3_endpoint: <%= @s3_endpoint %>

site: ./
// etc.
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