This is a generic skeleton project that can be used to quickly get a new cisagov Terraform module GitHub repository started. This skeleton project contains licensing information, as well as pre-commit hooks and GitHub Actions configurations appropriate for the major languages that we use.
See here for more details on Terraform modules and the standard module structure.
module "example" {
source = "github.com/cisagov/foundryvtt-ec2-tf-module"
aws_region = "us-west-1"
aws_availability_zone = "b"
subnet_id = "subnet-0123456789abcdef0"
tags = {
Key1 = "Value1"
Key2 = "Value2"
}
}
Name | Description | Type | Default | Required |
---|---|---|---|---|
aws_region | The AWS region to deploy into (e.g. us-east-1) | string | yes | |
aws_availability_zone | The AWS availability zone to deploy into (e.g. a, b, c, etc.) | string | yes | |
subnet_id | The ID of the AWS subnet to deploy into (e.g. subnet-0123456789abcdef0) | string | yes | |
tags | Tags to apply to all AWS resources created | map(string) | {} |
no |
Name | Description |
---|---|
id | The EC2 instance ID |
arn | The EC2 instance ARN |
availability_zone | The AZ where the EC2 instance is deployed |
private_ip | The private IP of the EC2 instance |
subnet_id | The ID of the subnet where the EC2 instance is deployed |
Running pre-commit
requires running terraform init
in every directory that
contains Terraform code. In this repository, these are the main directory and
every directory under examples/
.
We welcome contributions! Please see here for details.
This project is in the worldwide public domain.
This project is in the public domain within the United States, and copyright and related rights in the work worldwide are waived through the CC0 1.0 Universal public domain dedication.
All contributions to this project will be released under the CC0 dedication. By submitting a pull request, you are agreeing to comply with this waiver of copyright interest.