AWS::Lightsail::ContainerResource Type definition for AWS::Lightsail::Container
8 configurable properties. 3 required. Click a row to see details.
| Property | Type | Flags |
|---|---|---|
Power | string | Required |
Scale | integer | Required |
ServiceName | string | RequiredCreate-only |
ContainerServiceDeployment | ContainerServiceDeployment | |
IsDisabled | boolean | |
PrivateRegistryAccess | PrivateRegistryAccess | |
PublicDomainNames | Array<PublicDomainName> | |
Tags | Array<Tag> |
Values returned after the resource is created. Access these with Fn::GetAtt.
| Attribute | Type | Description |
|---|---|---|
ContainerArn | string | - |
PrincipalArn | string | The principal ARN of the container service. |
Url | string | The publicly accessible URL of the container service. |
A minimal template with required properties and common optional ones.
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::Lightsail::Container
Resources:
MyResource:
Type: AWS::Lightsail::Container
Properties:
ServiceName: "my-servicename"
Power: "value"
Scale: 1
Tags:
- Key: Environment
Value: ProductionPermissions CloudFormation needs in your IAM role to manage this resource.
lightsail:CreateContainerServicelightsail:CreateContainerServiceDeploymentlightsail:GetContainerServiceslightsail:TagResourcelightsail:UntagResourcelightsail:UpdateContainerServicelightsail:GetContainerServiceslightsail:DeleteContainerServicelightsail:GetContainerServiceslightsail:GetContainerServiceslightsail:CreateContainerServiceDeploymentlightsail:GetContainerServiceslightsail:TagResourcelightsail:UntagResourcelightsail:UpdateContainerServiceOur bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to NewsletterServiceNameThese properties cannot be changed after the resource is created. Updating them triggers a replacement.
ServiceName