Meet OPSd. The unique and effortless way of managing cloud infrastructure.
Terraform module which creates a launch template that contains the configuration information to launch an instance.
module "launch_template_amd64" {
source = "../modules/terraform-module-aws-launch-template"
name = "foo-amd64"
image_id = "ami-0a0956a3bacfbf233"
vpc_security_group_ids = ["sg-09d49e22dafd43e23", "sg-0ea844093e906d7fg"]
user_data = "IyEvYmluL2Jhc2gKI0ZvciB1c2Ugd2l0aCB0aGUgQVNHIHVzZXIgZGF0YSBzZWN0aW9uIG9mIExhdW5jaCBDb25maWdzIHB1c2ggbXExClNUQVJUVElNRT0k"
key_name = "mykey"
iam_instance_profile = "myprofile"
}
IMPORTANT: Make sure not to pin to master because there may be breaking changes between releases.
Name | Version |
---|---|
terraform | >= 1.5.5 |
aws | ~> 5.0 |
Name | Version |
---|---|
aws | ~> 5.0 |
No modules.
Name | Type |
---|---|
aws_launch_template.main | resource |
Name | Description | Type | Default | Required |
---|---|---|---|---|
ebs_optimized | If true, used EC2 instance will be EBS-optimized | bool |
false |
no |
iam_instance_profile | The IAM Instance Profile to launch the instance with. | object({ |
n/a | yes |
image_id | The name of the AMI. | string |
n/a | yes |
instance_type | The type of the instance. | string |
null |
no |
key_name | The Name of ssh public key to add to ec2-user account. | string |
n/a | yes |
launch_template_description | Description of the launch template. | string |
null |
no |
launch_template_version | A version of the launch template | string |
"$Default" |
no |
metadata_options | Customize the metadata options for the instance. | object({ |
{ |
no |
name | The name of the launch template. | string |
n/a | yes |
network_interfaces | A list of network interfaces to be attached to the instance. | list(object({ |
[] |
no |
tags | The Tags to to apply to the launch template, EC2, volume, network interface. | map(string) |
{} |
no |
user_data | The user data to pass to the instance at launch time. | string |
null |
no |
vpc_security_group_ids | A list of security group IDs to assign to. | list(string) |
[] |
no |
Name | Description |
---|---|
arn | Amazon Resource Name (ARN) of the launch template. |
id | The ID of the launch template. |
name | Amazon Resource Name (ARN) of the launch template. |
Do you want to see how the module works? See all the usage examples.
The list of related modules (if present).
If you are interested in contributing to the project, see see our guide.
If you have a problem with the module or want to propose a new feature, you can report it via the project's (Github) issue tracker.
If you want to discuss something in person, you can join our community on Slack.