|
| 1 | +# AWS Batch Example - EC2 |
| 2 | + |
| 3 | +Configuration in this directory creates: |
| 4 | + |
| 5 | +- AWS Batch compute environments using managed EC2, managed EC2 Spot, and unmanaged EC2 |
| 6 | +- AWS Batch job queue for high priority tasks with scheduling policy |
| 7 | +- AWS Batch job queue for low priority tasks |
| 8 | +- AWS Batch job definition using busybox container image |
| 9 | + |
| 10 | +## Usage |
| 11 | + |
| 12 | +To run this example you need to execute: |
| 13 | + |
| 14 | +```bash |
| 15 | +$ terraform init |
| 16 | +$ terraform plan |
| 17 | +$ terraform apply |
| 18 | +``` |
| 19 | + |
| 20 | +Note that this example may create resources which will incur monetary charges on your AWS bill. Run `terraform destroy` when you no longer need these resources. |
| 21 | + |
| 22 | +<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK --> |
| 23 | +## Requirements |
| 24 | + |
| 25 | +| Name | Version | |
| 26 | +|------|---------| |
| 27 | +| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.13.1 | |
| 28 | +| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 3.30 | |
| 29 | + |
| 30 | +## Providers |
| 31 | + |
| 32 | +| Name | Version | |
| 33 | +|------|---------| |
| 34 | +| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 3.30 | |
| 35 | + |
| 36 | +## Modules |
| 37 | + |
| 38 | +| Name | Source | Version | |
| 39 | +|------|--------|---------| |
| 40 | +| <a name="module_batch"></a> [batch](#module\_batch) | ../.. | n/a | |
| 41 | +| <a name="module_batch_disabled"></a> [batch\_disabled](#module\_batch\_disabled) | ../.. | n/a | |
| 42 | +| <a name="module_vpc"></a> [vpc](#module\_vpc) | terraform-aws-modules/vpc/aws | ~> 3.0 | |
| 43 | +| <a name="module_vpc_endpoint_security_group"></a> [vpc\_endpoint\_security\_group](#module\_vpc\_endpoint\_security\_group) | terraform-aws-modules/security-group/aws | ~> 4.0 | |
| 44 | +| <a name="module_vpc_endpoints"></a> [vpc\_endpoints](#module\_vpc\_endpoints) | terraform-aws-modules/vpc/aws//modules/vpc-endpoints | ~> 3.0 | |
| 45 | + |
| 46 | +## Resources |
| 47 | + |
| 48 | +| Name | Type | |
| 49 | +|------|------| |
| 50 | +| [aws_cloudwatch_log_group.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudwatch_log_group) | resource | |
| 51 | +| [aws_ami.ubuntu](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/ami) | data source | |
| 52 | +| [aws_region.current](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/region) | data source | |
| 53 | + |
| 54 | +## Inputs |
| 55 | + |
| 56 | +No inputs. |
| 57 | + |
| 58 | +## Outputs |
| 59 | + |
| 60 | +| Name | Description | |
| 61 | +|------|-------------| |
| 62 | +| <a name="output_compute_environments"></a> [compute\_environments](#output\_compute\_environments) | Map of compute environments created and their associated attributes | |
| 63 | +| <a name="output_instance_iam_instance_profile_arn"></a> [instance\_iam\_instance\_profile\_arn](#output\_instance\_iam\_instance\_profile\_arn) | ARN assigned by AWS to the instance profile | |
| 64 | +| <a name="output_instance_iam_instance_profile_id"></a> [instance\_iam\_instance\_profile\_id](#output\_instance\_iam\_instance\_profile\_id) | Instance profile's ID | |
| 65 | +| <a name="output_instance_iam_instance_profile_unique"></a> [instance\_iam\_instance\_profile\_unique](#output\_instance\_iam\_instance\_profile\_unique) | Stable and unique string identifying the IAM instance profile | |
| 66 | +| <a name="output_instance_iam_role_arn"></a> [instance\_iam\_role\_arn](#output\_instance\_iam\_role\_arn) | The Amazon Resource Name (ARN) specifying the IAM role | |
| 67 | +| <a name="output_instance_iam_role_name"></a> [instance\_iam\_role\_name](#output\_instance\_iam\_role\_name) | The name of the IAM role | |
| 68 | +| <a name="output_instance_iam_role_unique_id"></a> [instance\_iam\_role\_unique\_id](#output\_instance\_iam\_role\_unique\_id) | Stable and unique string identifying the IAM role | |
| 69 | +| <a name="output_job_definitions"></a> [job\_definitions](#output\_job\_definitions) | Map of job defintions created and their associated attributes | |
| 70 | +| <a name="output_job_queues"></a> [job\_queues](#output\_job\_queues) | Map of job queues created and their associated attributes | |
| 71 | +| <a name="output_scheduling_policies"></a> [scheduling\_policies](#output\_scheduling\_policies) | Map of scheduling policies created and their associated attributes | |
| 72 | +| <a name="output_service_iam_role_arn"></a> [service\_iam\_role\_arn](#output\_service\_iam\_role\_arn) | The Amazon Resource Name (ARN) specifying the IAM role | |
| 73 | +| <a name="output_service_iam_role_name"></a> [service\_iam\_role\_name](#output\_service\_iam\_role\_name) | The name of the IAM role | |
| 74 | +| <a name="output_service_iam_role_unique_id"></a> [service\_iam\_role\_unique\_id](#output\_service\_iam\_role\_unique\_id) | Stable and unique string identifying the IAM role | |
| 75 | +| <a name="output_spot_fleet_iam_role_arn"></a> [spot\_fleet\_iam\_role\_arn](#output\_spot\_fleet\_iam\_role\_arn) | The Amazon Resource Name (ARN) specifying the IAM role | |
| 76 | +| <a name="output_spot_fleet_iam_role_name"></a> [spot\_fleet\_iam\_role\_name](#output\_spot\_fleet\_iam\_role\_name) | The name of the IAM role | |
| 77 | +| <a name="output_spot_fleet_iam_role_unique_id"></a> [spot\_fleet\_iam\_role\_unique\_id](#output\_spot\_fleet\_iam\_role\_unique\_id) | Stable and unique string identifying the IAM role | |
| 78 | +<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK --> |
| 79 | + |
| 80 | +Apache-2.0 Licensed. See [LICENSE](https://github.com/clowdhaus/terraform-aws-batch/blob/main/LICENSE). |
0 commit comments