---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "awscc_lightsail_container Data Source - terraform-provider-awscc"
subcategory: ""
description: |-
Data Source schema for AWS::Lightsail::Container
---
# awscc_lightsail_container (Data Source)
Data Source schema for AWS::Lightsail::Container
## Schema
### Required
- `id` (String) Uniquely identifies the resource.
### Read-Only
- `container_arn` (String)
- `container_service_deployment` (Attributes) Describes a container deployment configuration of an Amazon Lightsail container service. (see [below for nested schema](#nestedatt--container_service_deployment))
- `is_disabled` (Boolean) A Boolean value to indicate whether the container service is disabled.
- `power` (String) The power specification for the container service.
- `public_domain_names` (Attributes Set) The public domain names to use with the container service, such as example.com and www.example.com. (see [below for nested schema](#nestedatt--public_domain_names))
- `scale` (Number) The scale specification for the container service.
- `service_name` (String) The name for the container service.
- `tags` (Attributes Set) An array of key-value pairs to apply to this resource. (see [below for nested schema](#nestedatt--tags))
- `url` (String) The publicly accessible URL of the container service.
### Nested Schema for `container_service_deployment`
Read-Only:
- `containers` (Attributes Set) An object that describes the configuration for the containers of the deployment. (see [below for nested schema](#nestedatt--container_service_deployment--containers))
- `public_endpoint` (Attributes) An object that describes the endpoint of the deployment. (see [below for nested schema](#nestedatt--container_service_deployment--public_endpoint))
### Nested Schema for `container_service_deployment.containers`
Read-Only:
- `command` (Set of String) The launch command for the container.
- `container_name` (String) The name of the container.
- `environment` (Attributes Set) The environment variables of the container. (see [below for nested schema](#nestedatt--container_service_deployment--containers--environment))
- `image` (String) The name of the image used for the container.
- `ports` (Attributes Set) The open firewall ports of the container. (see [below for nested schema](#nestedatt--container_service_deployment--containers--ports))
### Nested Schema for `container_service_deployment.containers.environment`
Read-Only:
- `value` (String)
- `variable` (String)
### Nested Schema for `container_service_deployment.containers.ports`
Read-Only:
- `port` (String)
- `protocol` (String)
### Nested Schema for `container_service_deployment.public_endpoint`
Read-Only:
- `container_name` (String) The name of the container for the endpoint.
- `container_port` (Number) The port of the container to which traffic is forwarded to.
- `health_check_config` (Attributes) An object that describes the health check configuration of the container. (see [below for nested schema](#nestedatt--container_service_deployment--public_endpoint--health_check_config))
### Nested Schema for `container_service_deployment.public_endpoint.health_check_config`
Read-Only:
- `healthy_threshold` (Number) The number of consecutive health checks successes required before moving the container to the Healthy state. The default value is 2.
- `interval_seconds` (Number) The approximate interval, in seconds, between health checks of an individual container. You can specify between 5 and 300 seconds. The default value is 5.
- `path` (String) The path on the container on which to perform the health check. The default value is /.
- `success_codes` (String) The HTTP codes to use when checking for a successful response from a container. You can specify values between 200 and 499. You can specify multiple values (for example, 200,202) or a range of values (for example, 200-299).
- `timeout_seconds` (Number) The amount of time, in seconds, during which no response means a failed health check. You can specify between 2 and 60 seconds. The default value is 2.
- `unhealthy_threshold` (Number) The number of consecutive health check failures required before moving the container to the Unhealthy state. The default value is 2.
### Nested Schema for `public_domain_names`
Read-Only:
- `certificate_name` (String)
- `domain_names` (Set of String) An object that describes the configuration for the containers of the deployment.
### Nested Schema for `tags`
Read-Only:
- `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.
- `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.