# Create the deployment and confirm it serves The shared final step for every path, once the image is available — referenced publicly, or pushed into the service registry. ## Deployment shape A deployment is an immutable version: one or more container entries plus one public endpoint — omit the endpoint only when the service should be reachable privately rather than from the internet: from your other Lightsail resources in the same region over its private domain `.service.local`, or from your own VPC where VPC peering is active — see SKILL.md Security considerations. Create it with the **`create-container-service-deployment`** operation: ```bash aws lightsail create-container-service-deployment \ --service-name NAME \ --containers '{"web":{"image":"public.ecr.aws/nginx/nginx:latest","ports":{"80":"HTTP"}}}' \ --public-endpoint '{"containerName":"web","containerPort":80,"healthCheck":{"path":"/"}}' \ --region REGION ``` The parameters: - **`containers`** — a map of container name → entry. Each entry: - `image` — a public image name, or a versioned reference from a push (not the local image name). These are immutable snapshots and increment on every push, so a deployment still naming an earlier version serves the old image while reporting `ACTIVE`. Reference `:.