https://github.com/jameswoolfenden/terraform-aws-launchtemplate
It's a launch template module
https://github.com/jameswoolfenden/terraform-aws-launchtemplate
aws module terraform
Last synced: 2 months ago
JSON representation
It's a launch template module
- Host: GitHub
- URL: https://github.com/jameswoolfenden/terraform-aws-launchtemplate
- Owner: JamesWoolfenden
- License: apache-2.0
- Created: 2022-02-09T17:22:21.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2026-05-03T16:36:49.000Z (2 months ago)
- Last Synced: 2026-05-03T17:34:59.794Z (2 months ago)
- Topics: aws, module, terraform
- Language: HCL
- Homepage:
- Size: 22.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# terraform-aws-launchtemplate
[](https://github.com/JamesWoolfenden/terraform-aws-launchtemplate)
[](https://github.com/JamesWoolfenden/terraform-aws-launchtemplate/releases/latest)
[](https://github.com/JamesWoolfenden/terraform-aws-launchtemplate/releases/latest)

[](https://github.com/pre-commit/pre-commit)
[](https://www.checkov.io/)
Terraform module -
---
It's 100% Open Source and licensed under the [APACHE2](LICENSE).
## Usage
This is just a very basic example.
```cli
$ checkov -d . --external-checks-dir checkov
...
```

Include **module.launch-template.tf** this repository as a module in your existing terraform code:
```terraform
module "launch-template" {
source = "JamesWoolfenden/launchtemplate/aws"
version = "0.0.1"
cluster = var.cluster
subnet_list = ["subnet-04338b6369d8288a5"]
kms_key_arn = aws_kms_key.example.arn
}
```
See the example for security group details.
To view the snapshot:
```shell
aws launch-template describe-snapshots
```
## Requirements
No requirements.
## Providers
| Name | Version |
| ---- | ------- |
| [aws](#provider\_aws) | n/a |
## Modules
No modules.
## Resources
| Name | Type |
| ---- | ---- |
| [aws_launch_template.examplea](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/launch_template) | resource |
| [aws_security_group.example](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/security_group) | resource |
## Inputs
| Name | Description | Type | Default | Required |
| ---- | ----------- | ---- | ------- | :------: |
| [disk](#input\_disk) | n/a |
object(
{
device_name = string
ebs = object({
delete_on_termination = bool
encrypted = bool
iops = number
snapshot_id = string
throughput = number
volume_size = number
volume_type = string
})
}
)
| n/a | yes |
| [egress](#input\_egress) | n/a | list(object({
cidr_blocks = list(string)
description = string
from_port = number
ipv6_cidr_blocks = list(string)
prefix_list_ids = list(string)
protocol = string
security_groups = list(string)
self = bool
to_port = number
})) | n/a | yes |
| [group](#input\_group) | (optional) describe your variable | object({
name = string
description = string
vpc_id = string
}) | n/a | yes |
| [ingress](#input\_ingress) | n/a | list(object({
cidr_blocks = list(string)
description = string
from_port = number
ipv6_cidr_blocks = list(string)
prefix_list_ids = list(string)
protocol = string
security_groups = list(string)
self = bool
to_port = number
})) | n/a | yes |
| [template](#input\_template) | n/a | object({
description = string
image_id = string
instance_type = string
name = string
}) | n/a | yes |
## Outputs
No outputs.
## Policy
This is the policy required to build this project:
The Terraform resource required is:
```golang
resource "aws_iam_policy" "terraform_pike" {
name_prefix = "terraform_pike"
path = "/"
description = "Pike Autogenerated policy from IAC"
policy = jsonencode({
"Version": "2012-10-17",
"Statement": [
{
"Sid": "VisualEditor0",
"Effect": "Allow",
"Action": [
"ec2:AuthorizeSecurityGroupEgress",
"ec2:AuthorizeSecurityGroupIngress",
"ec2:CreateLaunchTemplate",
"ec2:CreateLaunchTemplateVersion",
"ec2:CreateSecurityGroup",
"ec2:DeleteLaunchTemplate",
"ec2:DeleteSecurityGroup",
"ec2:DescribeAccountAttributes",
"ec2:DescribeInstanceTypes",
"ec2:DescribeLaunchTemplateVersions",
"ec2:DescribeLaunchTemplates",
"ec2:DescribeNetworkInterfaces",
"ec2:DescribeSecurityGroups",
"ec2:RevokeSecurityGroupEgress",
"ec2:RevokeSecurityGroupIngress"
],
"Resource": [
"*"
]
}
]
})
}
```
## Related Projects
Check out these related projects.
- [terraform-aws-s3](https://github.com/jameswoolfenden/terraform-aws-s3) - S3 buckets
## Help
**Got a question?**
File a GitHub [issue](https://github.com/JamesWoolfenden/terraform-aws-launchtemplate/issues).
## Contributing
### Bug Reports & Feature Requests
Please use the [issue tracker](https://github.com/JamesWoolfenden/terraform-aws-launchtemplate/issues) to report any bugs or file feature requests.
## Copyrights
Copyright © 2022 James Woolfenden
## License
[](https://opensource.org/licenses/Apache-2.0)
See [LICENSE](LICENSE) for full details.
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
### Contributors
[![James Woolfenden][jameswoolfenden_avatar]][jameswoolfenden_homepage]
[James Woolfenden][jameswoolfenden_homepage]
[jameswoolfenden_homepage]: https://github.com/jameswoolfenden
[jameswoolfenden_avatar]: https://github.com/jameswoolfenden.png?size=150