CfnContainerProps Struct
Properties for defining a CfnContainer.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_lightsail as lightsail } from 'aws-cdk-lib';
const cfnContainerProps: lightsail.CfnContainerProps = {
power: 'power',
scale: 123,
serviceName: 'serviceName',
// the properties below are optional
containerServiceDeployment: {
containers: [{
command: ['command'],
containerName: 'containerName',
environment: [{
value: 'value',
variable: 'variable',
}],
image: 'image',
ports: [{
port: 'port',
protocol: 'protocol',
}],
}],
publicEndpoint: {
containerName: 'containerName',
containerPort: 123,
healthCheckConfig: {
healthyThreshold: 123,
intervalSeconds: 123,
path: 'path',
successCodes: 'successCodes',
timeoutSeconds: 123,
unhealthyThreshold: 123,
},
},
},
isDisabled: false,
privateRegistryAccess: {
ecrImagePullerRole: {
isActive: false,
principalArn: 'principalArn',
},
},
publicDomainNames: [{
certificateName: 'certificateName',
domainNames: ['domainNames'],
}],
tags: [{
key: 'key',
value: 'value',
}],
};
Properties
containerServiceDeploymentoptionalIResolvable | CfnContainer.ContainerServiceDeploymentPropertycontainer_service_deploymentoptionaltyping.Union[IResolvable, ContainerServiceDeploymentProperty]containerServiceDeploymentoptionalIResolvableContainerServiceDeploymentoptionalIResolvableContainerServiceDeploymentoptionalinterface{}#isDisabledoptionalboolean | IResolvableis_disabledoptionaltyping.Union[bool, IResolvable]isDisabledoptionalBooleanIsDisabledoptionalboolIsDisabledoptionalinterface{}#The power specifies the amount of RAM, the number of vCPUs, and the base price of the container service.
privateRegistryAccessoptionalIResolvable | CfnContainer.PrivateRegistryAccessPropertyprivate_registry_accessoptionaltyping.Union[IResolvable, PrivateRegistryAccessProperty]privateRegistryAccessoptionalIResolvablePrivateRegistryAccessoptionalIResolvablePrivateRegistryAccessoptionalinterface{}#notes
For more information, see Configuring access to an Amazon ECR private repository for an Amazon Lightsail container service in the Amazon Lightsail Developer Guide .
publicDomainNamesoptionalIResolvable | IResolvable | CfnContainer.PublicDomainNameProperty[]public_domain_namesoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, PublicDomainNameProperty]]]publicDomainNamesoptionalIResolvablePublicDomainNamesoptionalIResolvablePublicDomainNamesoptionalinterface{}#notes
You can specify up to four public domain names for a container service. The domain names that you specify are used when you create a deployment with a container that is configured as the public endpoint of your container service.
If you don't specify public domain names, then you can use the default domain of the container service.
You must create and validate an SSL/TLS certificate before you can use public domain names with your container service. Use the AWS::Lightsail::Certificate resource to create a certificate for the public domain names that you want to use with your container service.
The scale specifies the allocated compute nodes of the container service.