liveBook · Manning

Endpoint

As explained in Amazon Web Services in Action, Third Edition: An in-depth guide to AWS

A service endpoint is a network-accessible address through which clients connect to a specific service or resource.

An endpoint is an address clients use to reach a service. Its form depends on the service: a browser opens an S3 website URL, while a database client connects to an RDS address and port. A REST API also has routes, such as `POST /image`, that select an operation after a request reaches the web service. section 7.6.3 section 10.1.2 section 16.3.2

Choose the endpoint for the job:

  • For an S3 static website, use the website endpoint for the bucket’s region. A custom subdomain can use a CNAME when the bucket name matches it; for HTTPS, put CloudFront in front of S3. section 7.6.3
  • For RDS, retrieve the instance endpoint with `aws rds describe-db-instances --query "DBInstances[0].Endpoint"`. Use its address and port from a client that can reach the database; keeping the instance accessible only within its VPC is recommended. section 10.1.1 section 10.1.2
  • For a read replica, use its separate endpoint for SQL reads. The application must support routing reads to the replica, and the replica incurs charges. section 10.6.2

Importing through an RDS endpoint

On a virtual machine with access to the database, run `mysql --host $DBAddress --user wordpress -p < wordpress-import.sql`, replacing `$DBAddress` with the endpoint’s Address. The hostname identifies where the client connects; the SQL file supplies the data to import. section 10.2

$ aws rds describe-db-instances --query "DBInstances[0].Endpoint"
{
  "HostedZoneId": "Z2R2ITUGPM61AM",
  "Port": 3306,                                                          #1
  "Address": "wdwcoq2o8digyr.cqrxioeaavmf.us-east-1.rds.amazonaws.com"   #2
}

The RDS command output shows the two connection details to look for: Address and Port. section 10.1.2

How Amazon Web Services in Action, Third Edition: An in-depth guide to AWS covers it

How deep it goes
Shows regional website URL selection and RDS endpoint discovery, then uses a database address in an import command.
Examples
Uses a regional S3 website URL, an RDS Address-and-Port response, a WordPress SQL import, and image-processing REST routes.
What it assumes
Introduces endpoint selection through browser URLs and database connection commands, while assuming basic familiarity with browsers and terminal commands.
What you can do after
Operate/configure it by finding an RDS endpoint, connecting an authorized client, and choosing an S3 website URL for browser access.
How it connects
Connects endpoints to S3 static website hosting, Route 53, CloudFront, RDS, VPC access, REST APIs, and read replicas.

Also explained in

Compare how 26 books explain endpoint →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Amazon Web Services in Action, Third Edition: An in-depth guide to AWS. The section links point to the parts of the book it draws on.