# Serverless deploy error : inaccessible host

**URL:** <https://forum.serverless.com/t/serverless-deploy-error-inaccessible-host/2774>\
**Category:** Serverless Framework\
**Created:** [September 27, 2017, 12:59am UTC](https://forum.serverless.com/t/serverless-deploy-error-inaccessible-host/2774 "2017-09-27T00:59:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![grg\_justin](https://avatars.discourse-cdn.com/v4/letter/g/c5a1d2/32.png) [@grg\_justin](https://forum.serverless.com/u/grg_justin)\
**Post date:** [September 27, 2017, 12:59am UTC](https://forum.serverless.com/t/serverless-deploy-error-inaccessible-host/2774/1 "2017-09-27T00:59:29Z")

</div>

I have developed a very basic java8 app and am trying to deploy using the “serverless deploy” command. I get ServerlessError: Inaccessible host: `cloudformation.us-east-1.amazonaws.com'. This service may not be available in the`us-east-1’ region.

OS:win32  
Node Version: 6.11.2  
Serverless Version:1.23.0

serverless file contents shown below:

service: sam-app-services  
package:  
artifact: target/sam-app-parserapi-1.0-SNAPSHOT.jar

provider:  
name: aws  
runtime: java8  
stage: dev  
region: us-east-1  
memorySize: 512  
timeout: 30

functions:  
sam-app-parserapi:  
handler: com.serverless.japi.LambdaHandler  
runtime: java8  
description: function for parser api  
events:  
- http:  
path: /sam-app-parserapi/files  
method: get  
- cloudwatchLog:  
logGroup: /aws/lambda/sam-app-parserapi

any suggestions to resolve this would really help.

Thanks

---

<div class="post-metadata">

**Author:** ![grg\_justin](https://avatars.discourse-cdn.com/v4/letter/g/c5a1d2/32.png) [@grg\_justin](https://forum.serverless.com/u/grg_justin)\
**Post date:** [September 27, 2017, 8:53pm UTC](https://forum.serverless.com/t/serverless-deploy-error-inaccessible-host/2774/2 "2017-09-27T20:53:23Z")

</div>

Please ignore this post. Mistake in proxy configuration.

---

<div class="post-metadata">

**Author:** ![daniperez](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/daniperez/32/1101_2.png) [@daniperez](https://forum.serverless.com/u/daniperez)\
**Post date:** [October 2, 2017, 12:11pm UTC](https://forum.serverless.com/t/serverless-deploy-error-inaccessible-host/2774/3 "2017-10-02T12:11:21Z")

</div>

Hi!

Could you elaborate a bit more about the proxy configuration? Were you using a proxy and it was wrongly configured?

I still have the same problem since I reported this here a couple of weeks ago: ["Inaccessible host" deploying in non-default region](http://forum.serverless.com/t/inaccessible-host-deploying-in-non-default-region/2751) . I do not use a proxy. Any help is welcome!

---

<div class="post-metadata">

**Author:** ![grg\_justin](https://avatars.discourse-cdn.com/v4/letter/g/c5a1d2/32.png) [@grg\_justin](https://forum.serverless.com/u/grg_justin)\
**Post date:** [October 2, 2017, 2:15pm UTC](https://forum.serverless.com/t/serverless-deploy-error-inaccessible-host/2774/4 "2017-10-02T14:15:21Z")

</div>

If you access the internet through a proxy, you would need to have environment variables HTTP\_PROXY and HTTPS\_PROXY configured to http://\<proxy\_server\>:

I use a proxy and it was wrongly configured. If you dont use a proxy, guess you wont need the variables.  
Also verify [http://docs.aws.amazon.com/general/latest/gr/rande.html](http://docs.aws.amazon.com/general/latest/gr/rande.html) and check if the service is available in your region

Hope this helps.

---

<div class="post-metadata">

**Author:** ![daniperez](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/daniperez/32/1101_2.png) [@daniperez](https://forum.serverless.com/u/daniperez)\
**Post date:** [October 3, 2017, 6:22am UTC](https://forum.serverless.com/t/serverless-deploy-error-inaccessible-host/2774/5 "2017-10-03T06:22:06Z")

</div>

Thanks for the pointers!

I checked also [how virtual hosting works for S3](http://docs.aws.amazon.com/AmazonS3/latest/dev/VirtualHosting.html). There’s something weird. It seems I should be using:

> `<bucket id>.s3.amazonaws.com`

or

> `<bucket id>.s3-eu-central-1.amazonaws.com`

But in the error I see (mind the point before `s3`):

> `'<redacted bucket id>.s3.eu-central-1.amazonaws.com'. This service may not be available in the `eu-central-1' region.`

Looking for that in internet, that domain looks like a bit fishy 😨
