AWS API Gateway + Elastic Beanstalk and Microservices
<p>I'm going to build microservices' architecture on AWS and I want to ask you to clarify my doubts.</p>

<p><strong>My current general concept</strong></p>

<p>I would like to use API Gateway, which exposes microsevices' APIs running in Elastic Beanstalk. I would like to place the Elastic Beanstalk in VPC without direct access from Internet to its instances.</p>

<p><a href="https://i.stack.imgur.com/6BQi4.png" rel="noreferrer"><img src="https://i.stack.imgur.com/6BQi4.png" alt="enter image description here"></a></p>

<p><strong>Questions &amp; Doubts:</strong></p>

<ol>
<li>Elastic Beanstalk gets subdomain on application creation. This subdomain should be used by API Gateway with integration type: AWS service, in action configuration - Am I right?</li>
<li>What would represent a single microservice? An Elastic Beanstalk's application is a specific scalable microservice?</li>
<li>How the microservices should communicate with each other? There would be some task where Im going to use SQS (Simple Queue Service). But in other cases, is it better when two microservices communicates with each other through API Gateway rather than directly - am I right?</li>
<li>Test environment: What structure should I use in test environment (or staging env.)? I think about creating separate VPC with another Elastic Beanstalk and other Amazon services.</li>
<li>Test environment and API Gateway: How should I set up an API Gateway? It should allow clients to access the microservices in test environment if request has specific subdomain, like: test.mydomain.com/hello_world/say_hello. I'm not sure how to use API Gateway in CI/CD to make it fast and simple, without manual copying some configuration from test stage to the production stage. (I'm not expecting any complex solution, only some hints about what components, parts, concepts could I use for it. More details I'll find on my own).</li>
<li>Have you any experience in deploying apps to Elastic Beanstalk using Codep Deploy and/or Jenkins? I'm interesting in which way could be better: Jenkins, AWS Code Deploy or Jenkins+CodeDeploy.</li>
</ol>