|
1 | 1 | <!-- BEGIN_TF_DOCS --> |
| 2 | +### Example Variable Values |
| 3 | + |
| 4 | +Here is an example of how to define the variable values in your `terraform.tfvars` file: |
| 5 | + |
| 6 | +```hcl |
| 7 | +vpc_id = "vpc-12345678" |
| 8 | +public_subnet_ids = ["subnet-abcdef01", "subnet-abcdef02"] |
| 9 | +private_subnet_ids = ["subnet-abcdef03", "subnet-abcdef04"] |
| 10 | +kong_public_domain_name = "api.example.com" |
| 11 | +kong_admin_domain_name = "admin-api.example.com" |
| 12 | +
|
| 13 | +rds_instance_class = "db.t3.medium" |
| 14 | +db_max_allocated_storage = 100 |
| 15 | +manage_master_user_password = true |
| 16 | +backup_retention_period = 7 |
| 17 | +deletion_protection = true |
| 18 | +create_db_subnet_group = true |
| 19 | +performance_insights_enabled = true |
| 20 | +performance_insights_retention_period = 7 |
| 21 | +rds_db_tags = { |
| 22 | + Environment = "production" |
| 23 | + Team = "devops" |
| 24 | +} |
| 25 | +multi_az = true |
| 26 | +backup_window = "07:00-09:00" |
| 27 | +maintenance_window = "Mon:00:00-Mon:03:00" |
| 28 | +
|
| 29 | +cluster_name = "default" |
| 30 | +ssl_policy = "ELBSecurityPolicy-2016-08" |
| 31 | +container_image = "kong:2.5" |
| 32 | +log_configuration_for_kong = { |
| 33 | + log_driver = "awslogs" |
| 34 | + options = { |
| 35 | + "awslogs-group" = "/ecs/kong" |
| 36 | + "awslogs-region" = "ap-south-1" |
| 37 | + "awslogs-stream-prefix" = "kong" |
| 38 | + } |
| 39 | +} |
| 40 | +cpu_for_kong_task = 512 |
| 41 | +memory_for_kong_task = 1024 |
| 42 | +desired_count_for_kong_service = 2 |
| 43 | +force_new_deployment = true |
| 44 | +``` |
| 45 | + |
| 46 | +Place this `terraform.tfvars` file in the same directory as your Terraform configuration to automatically load these values. Adjust the values as needed to fit your specific environment and requirements. |
| 47 | + |
2 | 48 | ## Requirements |
3 | 49 |
|
4 | 50 | | Name | Version | |
|
0 commit comments