Carina

Carina

A strongly typed infrastructure management tool written in Rust.

main.crn
provider awscc {
  source  = 'carina-rs/awscc'
  version = '0.7.1'
  region  = awscc.Region.ap_northeast_1
}

let vpc = awscc.ec2.Vpc {
  cidr_block         = '10.0.0.0/16'
  enable_dns_support = true
}

awscc.ec2.Subnet {
  vpc_id     = vpc.vpc_id
  cidr_block = '10.0.1.0/24'
}
terminal
$ carina plan
Execution Plan:

+ awscc.ec2.Vpc vpc
    cidr_block: '10.0.0.0/16'
    enable_dns_support: true
      │
      └─ + awscc.ec2.Subnet awscc_ec2_subnet_2dc874b0
            cidr_block: '10.0.1.0/24'
            vpc_id: vpc.vpc_id

Plan: 2 to add, 0 to change, 0 to destroy.