Containers – Containers
What this page covers
Basic example
terraform {
required_providers {
verda = {
source = "verda-cloud/verda"
version = "~> 1.0"
}
}
}
provider "verda" {}
resource "verda_container" "example" {
name = "api-service"
image = "ghcr.io/example/my-api:1.2.0"
cpu = 2
memory = 4096
env = {
ENVIRONMENT = "production"
LOG_LEVEL = "info"
}
}
output "container_id" {
value = verda_container.example.id
}Key concepts
Container identity
Container images
Resource configuration
Environment variables
Updating containers safely
Importing an existing container
Troubleshooting
Last updated
Was this helpful?