This Terraform module facilitates the provisioning of an AWS EC2 instance, featuring the latest Amazon Linux 2 AMI with Docker pre-installed.
Note: This module is designed solely for illustrative purposes and is not intended for production use.
- Creates an EC2 instance equipped with Amazon Linux 2 and Docker, ready for use.
- Demonstrates the procedure for structuring and publishing a module within the Terraform Registry.
provider "aws" {
region = "us-east-1"
}
module "docker_instance" {
source = "bekirbilgec/docker-instance/aws"
key_name = "first"
}
Name | Description | Type | Default | Required |
---|---|---|---|---|
key_name | Name of the SSH key pair | string | - | yes |
Name | Description |
---|---|
instance_id | ID of the EC2 instance |
instance_ip | Public IP address of the instance |
instance_arn | ARN of the EC2 instance |
This project is licensed under the MIT License - see the LICENSE file for details.