An open API service indexing awesome lists of open source software.

https://github.com/numtide/terraform-nixos-amis

Fork of https://github.com/tweag/terraform-nixos/tree/master/aws_image_nixos
https://github.com/numtide/terraform-nixos-amis

aws terraform terraform-module

Last synced: 5 months ago
JSON representation

Fork of https://github.com/tweag/terraform-nixos/tree/master/aws_image_nixos

Awesome Lists containing this project

README

          

# AWS Collection of NixOS AMIs

This terraform module provides links to official NixOS AMIs on AWS. The AMIs are
released by the NixOS project.

Since image names are unique, only one instance per version of the module is
supported.

## Example

provider "aws" {
region = "eu-west-1"
}

module "nixos_image_1903" {
source = "path/to/aws_image_nixos"
release = "19.03"
}

resource "aws_instance" "example" {
ami = module.nixos_image_1903.ami
instance_type = "t2.micro"

...
}

## New NixOS releases

Run the `./update-url-map` script to fetch new image releases.

## Inputs

| Name | Description | Type | Default | Required |
|------|-------------|:----:|:-----:|:-----:|
| region | The region to use. If not provided, current provider's region will be used. | string | `` | no |
| release | The NixOS version to use. For example, 18.09 | string | `latest` | no |
| type | The type of the AMI to use -- hvm-ebs, pv-ebs, or pv-s3. | string | `hvm-ebs` | no |
| url\_map | A map of release series to actual releases | map | `` | no |

## Outputs

| Name | Description |
|------|-------------|
| id | NixOS AMI on AWS |