http.additional_rules.`path` String
Requests to this path will be forwarded to your service. Each listener rule should listen on a unique path.
{% include 'http-additionalrules-healthcheck.en.md' %}
http.additional_rules.`deregistration_delay` Duration
The amount of time to wait for targets to drain connections during deregistration. The default is 60s. Setting this to a larger value gives targets more time to gracefully drain connections, but increases the time required for new deployments. Range 0s-3600s.
http.additional_rules.`target_container` String
A sidecar container that requests are routed to instead of the main service container.
If the target container's port is set to `443`, then the protocol is set to `HTTPS` so that the load balancer establishes
TLS connections with the Fargate tasks using certificates that you install on the target container.
http.additional_rules.`target_port` String
The container port that receives traffic. Specify this field if the container port is different from `image.port` for the main container or `sidecar.port` for the sidecar containers.
http.additional_rules.`stickiness` Boolean
Indicates whether sticky sessions are enabled.
http.additional_rules.`allowed_source_ips` Array of Strings
CIDR IP addresses permitted to access your service.
```yaml
http:
additional_rules:
- allowed_source_ips: ["192.0.2.0/24", "198.51.100.10/32"]
```
http.additional_rules.`alias` String or Array of Strings or Array of Maps
HTTPS domain alias of your service.
```yaml
# String version.
http:
additional_rules:
- alias: example.com
# Alternatively, as an array of strings.
http:
additional_rules:
- alias: ["example.com", "v1.example.com"]
# Alternatively, as an array of maps.
http:
additional_rules:
- alias:
- name: example.com
hosted_zone: Z0873220N255IR3MTNR4
- name: v1.example.com
hosted_zone: AN0THE9H05TED20NEID
```
http.additional_rules.`hosted_zone` String
ID of your existing hosted zone; can only be used with `http.alias` and `http.additional_rules.alias`. If you have an environment with imported certificates, you can specify the hosted zone into which Copilot should insert the A record once the load balancer is created.
```yaml
http:
additional_rules:
- alias: example.com
hosted_zone: Z0873220N255IR3MTNR4
# Also see http.alias array of maps example, above.
```
http.additional_rules.`redirect_to_https` Boolean
Automatically redirect the Application Load Balancer from HTTP to HTTPS. By default it is `true`.
http.additional_rules.`version` String
The HTTP(S) protocol version. Must be one of `'grpc'`, `'http1'`, or `'http2'`. If omitted, then `'http1'` is assumed.
If using gRPC, please note that a domain must be associated with your application.