Elastic compute optimized for long-running workloads.
EC2Instance resources let you describe or reconcile individual EC2
instances with the familiar metadata/spec shape. You can adopt
existing instances with babyctl get and feed the object back into
babyctl apply to update user data, networking, or tagging details
without writing Terraform from scratch.
The ECRRepository resource mirrors the knobs you would typically set
in Terraform when defining an AWS Elastic Container Registry. Use it
to standardise repository encryption, immutability, lifecycle rules,
and naming conventions across accounts.
apiVersion:aws/v1kind:ECRRepositorymetadata:name:platform-imagesspec:repositoryName:platform-imagesimageTagMutability:IMMUTABLEencryptionConfiguration:type:KMSkmsKeyArn:arn:aws:kms:ap-southeast-2:123456789012:key/abcdscanOnPush:truelifecyclePolicies:-description:Keep last 30 prod tagsrulePriority:1selection:tagStatus:taggedtagPrefixList:[prod-]countType:imageCountMoreThancountNumber:30action:type:expire
resource"aws_ecr_repository""platform"{name="platform-images"image_tag_mutability="IMMUTABLE"encryption_configuration{encryption_type="KMS"kms_key="arn:aws:kms:ap-southeast-2:123456789012:key/abcd"}image_scanning_configuration{scan_on_push=true}}resource"aws_ecr_lifecycle_policy""platform"{repository=aws_ecr_repository.platform.namepolicy=jsonencode({rules=[{description="Keep last 30 prod tags"rulePriority=1selection={tagStatus="tagged"tagPrefixList=["prod-"]countType="imageCountMoreThan"countNumber=30}action={type="expire"}}]})}
Event-driven serverless compute with millisecond billing.
LambdaFunction resources bring AWS Lambda into the same document-driven
workflow as other providers. Use them to keep runtime, IAM role, package
sources, and tuning flags aligned between HCL and YAML consumers.