instance-module
BrynardSecurity-terraform/instance-module/poc
Terraform Module
HCL
POC
Install
module "instance-module" {
source = "BrynardSecurity-terraform/instance-module/poc"
version = "0.0.1"
}
Inputs (16)
| Name | Type | Description | Default |
|---|---|---|---|
| availability_zone | string | AZ to start the instance in | required |
| vmname | string | The name of the virtual machine used to deploy the vms. This name can scale out | required |
| vpc_security_group_ids | list(string) | A list of security group IDs to associate with | required |
| remote_exec_user | string | User account to use for remote execution | required |
| remote_exec_password | string | Remote exec user password | required |
| user_data_base64 | string | Can be used instead of user_data to pass base64-encoded binary data directly. Us | required |
| command | string | Local Exec Provisioner command to execute | required |
| staticvmname | string | Static name of the EC2 instance. When this option is used, instances can't be sc | required |
| working_dir | string | Working directory that local-exec provisioner will execute from | required |
| subnet_id | string | The VPC Subnet ID to launch in | required |
| user_data | string | The user data to provide when launching the instance. Do not pass gzip-compresse | required |
| vmnameformat | string | vmname format. default is set to 2 decimal with leading 0. example: %03d for 3 d | "%02d" |
| instance_type | string | The type of instance to start | "t3.micro" |
| ami | string | ID of the AMI to use for the instance | "" |
| instances | number | Number of instances to be deployed from this module | 1 |
| tags | map(string) | A mapping of tags to assign to the resource | {} |
Outputs (8)
public_dns — The public DNS name assigned to the instance. For EC2-VPC, this is only available if you've enabled public_ip — The public IP address assigned to the instance, if applicable. NOTE: If you are using an aws_eip witprivate_ip — The private IP address assigned to the instance.tags_all — A map of tags assigned to the resource, including those inherited from the provider default_tags conid — The ID of the instancearn — The ARN of the instanceinstance_state — The state of the instance. One of: `pending`, `running`, `shutting-down`, `terminated`, `stopping`, private_dns — The private DNS name assigned to the instance. Can only be used inside the Amazon EC2, and only avaiResources (1)
aws_instance
Details
FrameworkTerraform Module
LanguageHCL
Version0.0.1
Cloud POC
★ Stars0
Forks0
Total downloads337
Inputs16
Outputs8
Resources1
NamespaceBrynardSecurity-terraform
Updated