aws_eb_service
This module creates an elastic beanstalk service, with associated route53 entry, acm certificate for https and appropriate IAM policies.
Terraform Module Source
module "aws_eb_service" {
source = "https://tfmodules.matillion-cto.matillion.com/aws_eb_service.tar.gz"
...
}
Resources
| Name | Type |
|---|---|
| aws_elastic_beanstalk_application.eb_application | resource |
| aws_elastic_beanstalk_environment.eb_environment | resource |
| aws_iam_instance_profile.eb_profile | resource |
| aws_iam_policy.service_policy | resource |
| aws_iam_role.eb_role | resource |
| aws_iam_role.service_role | resource |
| aws_s3_bucket.deployment_bucket | resource |
| aws_security_group.security_group | resource |
| random_id.index | resource |
| aws_caller_identity.aws | data source |
| aws_elastic_beanstalk_hosted_zone.current | data source |
| aws_elastic_beanstalk_solution_stack.solution_stack | data source |
| aws_iam_policy_document.empty_policy | data source |
| aws_subnets.subnets | data source |
| aws_vpc.vpc | data source |
Inputs
| Name | Description | Type | Default | Required |
|---|---|---|---|---|
| serviceName | The name of the service | string | n/a | yes |
| serviceUrlName | The first part of the URL, this gets combined with zone to be serviceUrlName.zone | string | n/a | yes |
| bucketName | n/a | string | "" | no |
| bucketPrefix | n/a | string | "mtln-" | no |
| bucketSlug | n/a | string | "" | no |
| bucketSuffix | n/a | string | "-deployment-" | no |
| ebPolicyJson | n/a | string | "" | no |
| envVars | n/a | map | {} | no |
| instanceType | n/a | string | "t3.small" | no |
| internalPort | n/a | number | 8080 | no |
| maxInstances | The maximum number of instances that should be created | number | 2 | no |
| minInstances | The minimum number of instances that should be created | number | 2 | no |
| profile | The spring profile that should be enabled | string | "preprod" | no |
| subnet_id | The subnet to deploy the service to | string | "" | no |
| vpc_name | n/a | string | "public" | no |
| zone | The name of the Route53 zone to use | string | "matillion-cto.matillion.com" | no |
Outputs
| Name | Description |
|---|---|
| eb_profile_arn | n/a |
| output_values | n/a |