If any component used in a MACH composer stack is defined with an
endpoint, MACH composer will create
the necessary resources to be able to route traffic to that components.
The information needed for components to add custom routes to that API Gateway are provided through Terraform variables.
If you have defined your component with a
default endpoint, MACH composer will
create an API Gateway for you which includes a default AWS API Gateway domain.
components: - name: payment source: git::ssh://firstname.lastname@example.org/your-project/components/payment-component.git//terraform endpoints: public: default version: ....
default endpoint doesnt need to be defined in your endpoints definition.
A site might have a couple of endpoints defined and for each endpoint MACH composer will create:
- API Gateway + default routing
- ACM Certificate (with DNS validation)
- Route53 record on the zone auto-detected or configured on the endpoint
MACH composer will not create and manage the Route53 zone itself but expects
it to be created already as described in the
It will try to lookup that zone using the