issues with deployment to us-east-2 region
bennettatoms opened this issue · 0 comments
bennettatoms commented
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.