A module for provisioning Artifactory resources in AWS using Terraform
This module requires a few inputs defined in the Inputs section of the README. The AWS provider configuration is deliberately left blank to provide a more flexible means of authenticating to AWS.
See the authentication section of the AWS provider documentation for more information on providing credentials for the provider.
After specifying the required inputs, invoke the following commands:
$ terraform init
$ terraform apply
Name | Description | Type | Default | Required |
---|---|---|---|---|
allow_ssh | Whether the user can use SSH | string | "false" |
no |
associate_public_ip_address | Specifies whether to assign a public IP address to each instance | string | "false" |
no |
autoscaling_group_name | The name of the Auto Scaling group | string | "artifactory" |
no |
cidr_block | The IPv4 network range for the VPC, in CIDR notation | string | n/a | yes |
create_key_pair | Creates a 2048-bit RSA key pair with the specified name | string | "false" |
no |
create_nat_gateway | Creates a NAT gateway in the specified public subnet | string | "true" |
no |
create_vpc | Creates a VPC with the specified IPv4 CIDR block | string | "true" |
no |
desired_capacity | The number of EC2 instances that should be running in the group | string | "" |
no |
enable_bastion | Create the bastion host | string | "false" |
no |
enable_dns_hostnames | Indicates whether the instances launched in the VPC get DNS hostnames | string | "true" |
no |
enable_logging | Enable CloudWatch Logs | string | "true" |
no |
health_check_type | The service to use for the health checks | string | "EC2" |
no |
instance_type | The instance type of the EC2 instance | string | n/a | yes |
key_name | The name of the key pair | string | "" |
no |
map_public_ip_on_launch | Indicates whether instances launched in this subnet receive a public IPv4 address | string | "false" |
no |
max_size | The maximum size of the group | string | n/a | yes |
min_size | The minimum size of the group | string | n/a | yes |
subnets | The IDs of the public subnets | list | [] |
no |
vpc_id | The ID of the VPC | string | "" |
no |
vpc_zone_identifier | A comma-separated list of subnet IDs for your virtual private cloud (VPC) | list | [] |
no |
Name | Description |
---|---|
autoscaling_group_name | The name of the Auto Scaling group |
dns_name | The public DNS name of the load balancer |
Jason Walsh @jasonwalsh |