Skip to content

Terraform module which creates Amazon Machine Images (AMI) for Camellia using HashiCorp Packer and AWS CodeBuild.

License

Notifications You must be signed in to change notification settings

bingkunyangvungle/terraform-aws-camellia-image

 
 

Repository files navigation

Camellia Image Terraform module

Terraform module which creates Amazon Machine Images (AMI) for Camellia using HashiCorp Packer and AWS CodeBuild.

Available Features

  • Apache Kafka version 2.5.1
  • Based on Amazon Linux 2.0 2022 with performance tuning
  • Multi Availability Zone support
  • Support EBS, Instance Storage and root volume as storage types
  • Support gp3, gp2, io1, st1 and ephemeral storage volume types
  • XFS filesystem tune for better performance
  • Swap file setup
  • Support multiple type and number of volumes
  • Service integrated with systemd init system
  • Integrate collectd for OS metrics, support Graphite and Prometheus publishing
  • Integrate Amazon CloudWatch Agent for publishing logs

Usage

module "camellia-image" {
  source = "ninthnails/camellia-image/aws"
  version = "1.10.0"
  prefix = "camellia"
  packer_template = "aws-private.json"
  packer_instance_type = "t3a.medium"
  vpc_id = "vpc-54e70a3249a84d75f"
  subnet_ids = ["subnet-eb537de7850039a7f"]
  tags = {
    Terraform = "true"
  }
}

CodeBuild run is not automatically triggered. You need to execute the build command the command output. For example:

aws --region us-east-2 codebuild start-build --project-name camellia-kafka-automation-packer --source-version xyz...

or even shorter:

$(terraform output packer_build_command)

Requirements

Name Version
terraform >= 1.1
archive >= 2.2
aws >= 3.70
null >= 3.1
random >= 3.1

About

Terraform module which creates Amazon Machine Images (AMI) for Camellia using HashiCorp Packer and AWS CodeBuild.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HCL 52.2%
  • Shell 25.3%
  • Python 16.0%
  • Dockerfile 6.5%