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
- Host: GitHub
- URL: https://github.com/numtide/terraform-nixos-amis
- Owner: numtide
- License: mit
- Created: 2022-02-10T15:26:29.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-07-26T09:34:21.000Z (almost 2 years ago)
- Last Synced: 2026-01-13T21:54:02.404Z (6 months ago)
- Topics: aws, terraform, terraform-module
- Language: HCL
- Homepage:
- Size: 13.7 KB
- Stars: 1
- Watchers: 7
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 |