I built this module to create test clients for my CFEngine set-up. The set-up is very specific and may not be useful in a general case. The module itself however could be useful as a starting point for building generic test clients.
See the ARCHITECTURE document for details.
The following requirements are needed by this module:
-
terraform (>= 0.13)
-
aws (~> 3.21.0)
-
template (~> 2.2.0)
The following providers are used by this module:
-
aws (~> 3.21.0)
-
template (~> 2.2.0)
The following input variables are required:
Description: Official deb package version to install (e.g. 3.15.0-2)
Type: string
Description: IP or DNS name of the cfengine server, used to bootstrap the clients
Type: string
Description: Value for the Name tag for the instance
Type: string
Description: Value of the Name tag for the security group that applies to the instance (used to look up the security group for the instance, must be unique)
Type: string
Description: Instance type for the CFEngine server
Type: string
Description: Value of the Name tag for the public subnet (used to look up the public subnet for the instance, must be unique)
Type: string
Description: Name of the SSH key pair to install on the instance
Type: string
The following input variables are optional (have default values):
Description: Set to 'latest' to use the latest official Debian 'buster' AMI, or specify an AMI ID to use a different one
Type: string
Default: "latest"
Description: Run the client on a spot instance
Type: bool
Default: true
The following outputs are exported:
Description: Id of the latest AMI of Debian 10 for amd64 processors
Description: Public (elastic) IP for the instance
Description: DNS name associated to the public (elastic) IP for the instance
Description: Id for the instance running the service
Description: Private IP for the instance
Description: Id of the public subnet (calculated from the subnet name)
Description: Id of the security group for the instance (calculated from the security group name)
Description: Spot instance request id (or null if on-demand instances are used)
Description: Command to run to connect to the instance via SSH