Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Terraform module to provision an AWS Elastic Beanstalk Environment

License

NotificationsYou must be signed in to change notification settings

cloudposse/terraform-aws-elastic-beanstalk-environment

Project Banner

Latest ReleaseLast UpdatedSlack CommunityGet Support

Terraform module to provision AWS Elastic Beanstalk environment

Searching for Maintainer!

The Cloud Posse team no longer utilizes Beanstalk all that much, but this module is still fairly popular. In an effort to give it the attention it deserves, we're searching for a volunteer maintainer to manage this specific repository's issues and pull requests (of which a number are already stacked up). This is a great opportunity for anyone who is looking to solidify and strengthen their Terraform skillset while also giving back to the SweetOps open source community!

You can learn more about being a SweetOps contributor on our docs site here.

If you're interested, reach out to us via the#terraform channel inthe SweetOps Slack or directlyvia email @ hello@cloudposse.com

Tip

👽 Use Atmos with Terraform

Cloud Posse usesatmos to easily orchestrate multiple environments using Terraform.
Works withGithub Actions,Atlantis, orSpacelift.

Watch demo of using Atmos with Terraform
Example of runningatmos to manage infrastructure from ourQuick Start tutorial.

Usage

For a complete example, seeexamples/complete

provider"aws" {region=var.region  }module"vpc" {source="cloudposse/vpc/aws"# Cloud Posse recommends pinning every module to a specific versionversion="x.x.x"cidr_block="172.16.0.0/16"context=module.this.context  }module"subnets" {source="cloudposse/dynamic-subnets/aws"# Cloud Posse recommends pinning every module to a specific versionversion="x.x.x"availability_zones=var.availability_zonesvpc_id=module.vpc.vpc_idigw_id=module.vpc.igw_idcidr_block=module.vpc.vpc_cidr_blocknat_gateway_enabled=truenat_instance_enabled=falsecontext=module.this.context  }module"elastic_beanstalk_application" {source="cloudposse/elastic-beanstalk-application/aws"# Cloud Posse recommends pinning every module to a specific versionversion="x.x.x"description="Test Elastic Beanstalk application"context=module.this.context  }module"elastic_beanstalk_environment" {source="../../"description=var.descriptionregion=var.regionavailability_zone_selector=var.availability_zone_selectordns_zone_id=var.dns_zone_idwait_for_ready_timeout=var.wait_for_ready_timeoutelastic_beanstalk_application_name=module.elastic_beanstalk_application.elastic_beanstalk_application_nameenvironment_type=var.environment_typeloadbalancer_type=var.loadbalancer_typeelb_scheme=var.elb_schemetier=var.tierversion_label=var.version_labelforce_destroy=var.force_destroyinstance_type=var.instance_typeroot_volume_size=var.root_volume_sizeroot_volume_type=var.root_volume_typeautoscale_min=var.autoscale_minautoscale_max=var.autoscale_maxautoscale_measure_name=var.autoscale_measure_nameautoscale_statistic=var.autoscale_statisticautoscale_unit=var.autoscale_unitautoscale_lower_bound=var.autoscale_lower_boundautoscale_lower_increment=var.autoscale_lower_incrementautoscale_upper_bound=var.autoscale_upper_boundautoscale_upper_increment=var.autoscale_upper_incrementvpc_id=module.vpc.vpc_idloadbalancer_subnets=module.subnets.public_subnet_idsapplication_subnets=module.subnets.private_subnet_idsallow_all_egress=trueadditional_security_group_rules=[      {        type="ingress"        from_port=0        to_port=65535        protocol="-1"        source_security_group_id= module.vpc.vpc_default_security_group_id        description="Allow all inbound traffic from trusted Security Groups"      }    ]rolling_update_enabled=var.rolling_update_enabledrolling_update_type=var.rolling_update_typeupdating_min_in_service=var.updating_min_in_serviceupdating_max_batch=var.updating_max_batchhealthcheck_url=var.healthcheck_urlapplication_port=var.application_portsolution_stack_name=var.solution_stack_nameadditional_settings=var.additional_settingsenv_vars=var.env_varsextended_ec2_policy_document=data.aws_iam_policy_document.minimal_s3_permissions.jsonprefer_legacy_ssm_policy=falseprefer_legacy_service_policy=falsescheduled_actions=var.scheduled_actionscontext=module.this.context  }data"aws_iam_policy_document""minimal_s3_permissions" {statement {sid="AllowS3OperationsOnElasticBeanstalkBuckets"actions=["s3:ListAllMyBuckets","s3:GetBucketLocation"    ]resources=["*"]  }}

Important

In Cloud Posse's examples, we avoid pinning modules to specific versions to prevent discrepancies between the documentationand the latest released versions. However, for your own projects, we strongly advise pinning each module to the exact versionyou're using. This practice ensures the stability of your infrastructure. Additionally, we recommend implementing a systematicapproach for updating versions to avoid unexpected changes.

Requirements

NameVersion
terraform>= 1.3.0
aws>= 4.0
random>= 3.5.1

Providers

NameVersion
aws>= 4.0
random>= 3.5.1

Modules

NameSourceVersion
aws_security_groupcloudposse/security-group/aws1.0.1
dns_hostnamecloudposse/route53-cluster-hostname/aws0.12.2
elb_logscloudposse/lb-s3-bucket/aws0.20.0
thiscloudposse/label/null0.25.0

Resources

NameType
aws_elastic_beanstalk_environment.defaultresource
aws_iam_instance_profile.ec2resource
aws_iam_role.ec2resource
aws_iam_role.serviceresource
aws_iam_role_policy.defaultresource
aws_iam_role_policy_attachment.ecr_readonlyresource
aws_iam_role_policy_attachment.elastic_beanstalk_multi_container_dockerresource
aws_iam_role_policy_attachment.enhanced_healthresource
aws_iam_role_policy_attachment.serviceresource
aws_iam_role_policy_attachment.ssm_automationresource
aws_iam_role_policy_attachment.ssm_ec2resource
aws_iam_role_policy_attachment.web_tierresource
aws_iam_role_policy_attachment.worker_tierresource
aws_lb_listener_rule.redirect_http_to_httpsresource
aws_ssm_activation.ec2resource
random_string.elb_logs_suffixresource
aws_iam_policy_document.defaultdata source
aws_iam_policy_document.ec2data source
aws_iam_policy_document.extendeddata source
aws_iam_policy_document.servicedata source
aws_lb_listener.httpdata source
aws_partition.currentdata source

Inputs

NameDescriptionTypeDefaultRequired
additional_security_group_rulesA list of Security Group rule objects to add to the created security group, in addition to the ones
this module normally creates. (To suppress the module's rules, setcreate_security_group to false
and supply your own security group viaassociated_security_group_ids.)
The keys and values of the objects are fully compatible with theaws_security_group_rule resource, except
forsecurity_group_id which will be ignored, and the optional "key" which, if provided, must be unique and known at "plan" time.
To get more info seehttps://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/security_group_rule .
list(any)[]no
additional_settingsAdditional Elastic Beanstalk setttings. For full list of options, seehttps://docs.aws.amazon.com/elasticbeanstalk/latest/dg/command-options-general.html
list(object({
namespace = string
name = string
value = string
}))
[]no
additional_tag_mapAdditional key-value pairs to add to each map intags_as_list_of_maps. Not added totags orid.
This is for some rare cases where resources want additional configuration of tags
and therefore take a list of maps with tag key, value, and additional configuration.
map(string){}no
alb_zone_idALB zone idmap(string)
{
"af-south-1": "Z1EI3BVKMKK4AM",
"ap-east-1": "ZPWYUBWRU171A",
"ap-northeast-1": "Z1R25G3KIG2GBW",
"ap-northeast-2": "Z3JE5OI70TWKCP",
"ap-south-1": "Z18NTBI3Y7N9TZ",
"ap-southeast-1": "Z16FZ9L249IFLT",
"ap-southeast-2": "Z2PCDNR3VC2G1N",
"ca-central-1": "ZJFCZL7SSZB5I",
"eu-central-1": "Z1FRNW7UH4DEZJ",
"eu-north-1": "Z23GO28BZ5AETM",
"eu-south-1": "Z10VDYYOA2JFKM",
"eu-west-1": "Z2NYPWQ7DFZAZH",
"eu-west-2": "Z1GKAAAUGATPF1",
"eu-west-3": "Z3Q77PNBQS71R4",
"me-south-1": "Z2BBTEKR2I36N2",
"sa-east-1": "Z10X7K2B4QSOFV",
"us-east-1": "Z117KPS5GTRQ2G",
"us-east-2": "Z14LCN19Q5QHIC",
"us-gov-east-1": "Z2NIFVYYW2VKV1",
"us-gov-west-1": "Z31GFT0UA1I2HV",
"us-west-1": "Z1LQECGX5PH1X",
"us-west-2": "Z38NKT9BP95V3O"
}
no
allow_all_egressIftrue, the created security group will allow egress on all ports and protocols to all IP addresses.
If this is false and no egress rules are otherwise specified, then no egress will be allowed.
booltrueno
ami_idThe id of the AMI to associate with the Amazon EC2 instancesstringnullno
application_portPort application is listening onnumber80no
application_subnetsList of subnets to place EC2 instanceslist(string)n/ayes
associate_public_ip_addressWhether to associate public IP addresses to the instancesboolfalseno
associated_security_group_idsA list of IDs of Security Groups to associate the created resource with, in addition to the created security group.
These security groups will not be modified and, ifcreate_security_group isfalse, must have rules providing the desired access.
list(string)[]no
attributesID element. Additional attributes (e.g.workers orcluster) to add toid,
in the order they appear in the list. New attributes are appended to the
end of the list. The elements of the list are joined by thedelimiter
and treated as a single ID element.
list(string)[]no
autoscale_lower_boundMinimum level of autoscale metric to remove an instancenumber20no
autoscale_lower_incrementHow many Amazon EC2 instances to remove when performing a scaling activity.number-1no
autoscale_maxMaximum instances to launchnumber3no
autoscale_measure_nameMetric used for your Auto Scaling triggerstring"CPUUtilization"no
autoscale_minMinumum instances to launchnumber2no
autoscale_statisticStatistic the trigger should use, such as Averagestring"Average"no
autoscale_unitUnit for the trigger measurement, such as Bytesstring"Percent"no
autoscale_upper_boundMaximum level of autoscale metric to add an instancenumber80no
autoscale_upper_incrementHow many Amazon EC2 instances to add when performing a scaling activitynumber1no
availability_zone_selectorAvailability Zone selectorstring"Any 2"no
contextSingle object for setting entire context at once.
See description of individual variables for details.
Leave string and numeric variables asnull to use default value.
Individual variable settings (non-null) override settings in context object,
except for attributes, tags, and additional_tag_map, which are merged.
any
{
"additional_tag_map": {},
"attributes": [],
"delimiter": null,
"descriptor_formats": {},
"enabled": true,
"environment": null,
"id_length_limit": null,
"label_key_case": null,
"label_order": [],
"label_value_case": null,
"labels_as_tags": [
"unset"
],
"name": null,
"namespace": null,
"regex_replace_chars": null,
"stage": null,
"tags": {},
"tenant": null
}
no
create_security_groupSettrue to create and configure a Security Group for the cluster.booltrueno
delimiterDelimiter to be used between ID elements.
Defaults to- (hyphen). Set to"" to use no delimiter at all.
stringnullno
deployment_batch_sizePercentage or fixed number of Amazon EC2 instances in the Auto Scaling group on which to simultaneously perform deployments. Valid values vary per deployment_batch_size_type settingnumber1no
deployment_batch_size_typeThe type of number that is specified in deployment_batch_size_typestring"Fixed"no
deployment_ignore_health_checkDo not cancel a deployment due to failed health checksboolfalseno
deployment_policyUse the DeploymentPolicy option to set the deployment type. The following values are supported:AllAtOnce,Rolling,RollingWithAdditionalBatch,Immutable,TrafficSplittingstring"Rolling"no
deployment_timeoutNumber of seconds to wait for an instance to complete executing commandsnumber600no
descriptionShort description of the Environmentstring""no
descriptor_formatsDescribe additional descriptors to be output in thedescriptors output map.
Map of maps. Keys are names of descriptors. Values are maps of the form
{<br/> format = string<br/> labels = list(string)<br/>}
(Type isany so the map values can later be enhanced to provide additional options.)
format is a Terraform format string to be passed to theformat() function.
labels is a list of labels, in order, to pass toformat() function.
Label values will be normalized before being passed toformat() so they will be
identical to how they appear inid.
Default is{} (descriptors output will be empty).
any{}no
dns_subdomainThe subdomain to create on Route53 for the EB environment. For the subdomain to be created, thedns_zone_id variable must be set as wellstring""no
dns_zone_idRoute53 parent zone ID. The module will create sub-domain DNS record in the parent zone for the EB environmentstring""no
elastic_beanstalk_application_nameElastic Beanstalk application namestringn/ayes
elb_schemeSpecifyinternal if you want to create an internal load balancer in your Amazon VPC so that your Elastic Beanstalk application cannot be accessed from outside your Amazon VPCstring"public"no
enable_capacity_rebalancingSpecifies whether to enable the Capacity Rebalancing feature for Spot Instances in your Auto Scaling Groupboolfalseno
enable_loadbalancer_logsWhether to enable Load Balancer Logging to the S3 bucket.booltrueno
enable_log_publication_controlCopy the log files for your application's Amazon EC2 instances to the Amazon S3 bucket associated with your applicationboolfalseno
enable_spot_instancesEnable Spot Instance requests for your environmentboolfalseno
enable_stream_logsWhether to create groups in CloudWatch Logs for proxy and deployment logs, and stream logs from each instance in your environmentboolfalseno
enabledSet to false to prevent the module from creating any resourcesboolnullno
enhanced_reporting_enabledWhether to enable "enhanced" health reporting for this environment. If false, "basic" reporting is used. When you set this to false, you must also setenable_managed_actions to falsebooltrueno
env_varsMap of custom ENV variables to be provided to the application running on Elastic Beanstalk, e.g. env_vars = { DB_USER = 'admin' DB_PASS = 'xxxxxx' }map(string){}no
environmentID element. Usually used for region e.g. 'uw2', 'us-west-2', OR role 'prod', 'staging', 'dev', 'UAT'stringnullno
environment_typeEnvironment type, e.g. 'LoadBalanced' or 'SingleInstance'. If setting to 'SingleInstance',rolling_update_type must be set to 'Time',updating_min_in_service must be set to 0, andloadbalancer_subnets will be unused (it applies to the ELB, which does not exist in SingleInstance environments)string"LoadBalanced"no
extended_ec2_policy_documentExtensions or overrides for the IAM role assigned to EC2 instancesstring""no
force_destroyForce destroy the S3 bucket for load balancer logsboolfalseno
health_streaming_delete_on_terminateWhether to delete the log group when the environment is terminated. If false, the health data is kept RetentionInDays days.boolfalseno
health_streaming_enabledFor environments with enhanced health reporting enabled, whether to create a group in CloudWatch Logs for environment health and archive Elastic Beanstalk environment health data. For information about enabling enhanced health, see aws:elasticbeanstalk:healthreporting:system.boolfalseno
health_streaming_retention_in_daysThe number of days to keep the archived health data before it expires.number7no
healthcheck_healthy_threshold_countThe number of consecutive successful requests before Elastic Load Balancing changes the instance health statusnumber3no
healthcheck_httpcodes_to_matchList of HTTP codes that indicate that an instance is healthy. Note that this option is only applicable to environments with a network or application load balancerlist(string)
[
"200"
]
no
healthcheck_intervalThe interval of time, in seconds, that Elastic Load Balancing checks the health of the Amazon EC2 instances of your applicationnumber10no
healthcheck_timeoutThe amount of time, in seconds, to wait for a response during a health check. Note that this option is only applicable to environments with an application load balancernumber5no
healthcheck_unhealthy_threshold_countThe number of consecutive unsuccessful requests before Elastic Load Balancing changes the instance health statusnumber3no
healthcheck_urlApplication Health Check URL. Elastic Beanstalk will call this URL to check the health of the application running on EC2 instancesstring"/"no
http_listener_enabledEnable port 80 (http)booltrueno
id_length_limitLimitid to this many characters (minimum 6).
Set to0 for unlimited length.
Set tonull for keep the existing setting, which defaults to0.
Does not affectid_full.
numbernullno
instance_refresh_enabledEnable weekly instance replacement.booltrueno
instance_typeInstances typestring"t2.micro"no
keypairName of SSH key that will be deployed on Elastic Beanstalk and DataPipeline instance. The key should be present in AWSstring""no
label_key_caseControls the letter case of thetags keys (label names) for tags generated by this module.
Does not affect keys of tags passed in via thetags input.
Possible values:lower,title,upper.
Default value:title.
stringnullno
label_orderThe order in which the labels (ID elements) appear in theid.
Defaults to ["namespace", "environment", "stage", "name", "attributes"].
You can omit any of the 6 labels ("tenant" is the 6th), but at least one must be present.
list(string)nullno
label_value_caseControls the letter case of ID elements (labels) as included inid,
set as tag values, and output by this module individually.
Does not affect values of tags passed in via thetags input.
Possible values:lower,title,upper andnone (no transformation).
Set this totitle and setdelimiter to"" to yield Pascal Case IDs.
Default value:lower.
stringnullno
labels_as_tagsSet of labels (ID elements) to include as tags in thetags output.
Default is to include all labels.
Tags with empty values will not be included in thetags output.
Set to[] to suppress all generated tags.
Notes:
The value of thename tag, if included, will be theid, not thename.
Unlike othernull-label inputs, the initial setting oflabels_as_tags cannot be
changed in later chained modules. Attempts to change it will be silently ignored.
set(string)
[
"default"
]
no
loadbalancer_certificate_arnLoad Balancer SSL certificate ARN. The certificate must be present in AWS Certificate Managerstring""no
loadbalancer_connection_idle_timeoutClassic load balancer only: Number of seconds that the load balancer waits for any data to be sent or received over the connection. If no data has been sent or received after this time period elapses, the load balancer closes the connection.number60no
loadbalancer_crosszoneConfigure the classic load balancer to route traffic evenly across all instances in all Availability Zones rather than only within each zone.booltrueno
loadbalancer_is_sharedFlag to create a shared application loadbalancer. Only when loadbalancer_type = "application"https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/environments-cfg-alb-shared.htmlboolfalseno
loadbalancer_managed_security_groupLoad balancer managed security groupstring""no
loadbalancer_redirect_http_to_httpsRedirect HTTP traffic to HTTPS listenerboolfalseno
loadbalancer_redirect_http_to_https_hostDefines the host for the HTTP to HTTPS redirection rulestring"#{host}"no
loadbalancer_redirect_http_to_https_path_patternDefines the path pattern for the HTTP to HTTPS redirection rulelist(string)
[
"*"
]
no
loadbalancer_redirect_http_to_https_portDefines the port for the HTTP to HTTPS redirection rulestring"443"no
loadbalancer_redirect_http_to_https_priorityDefines the priority for the HTTP to HTTPS redirection rulenumber1no
loadbalancer_redirect_http_to_https_status_codeThe redirect status codestring"HTTP_301"no
loadbalancer_security_groupsLoad balancer security groupslist(string)[]no
loadbalancer_ssl_policySpecify a security policy to apply to the listener. This option is only applicable to environments with an application load balancerstring""no
loadbalancer_subnetsList of subnets to place Elastic Load Balancerlist(string)[]no
loadbalancer_typeLoad Balancer type, e.g. 'application' or 'classic'string"classic"no
logs_delete_on_terminateWhether to delete the log groups when the environment is terminated. If false, the logs are kept RetentionInDays daysboolfalseno
logs_retention_in_daysThe number of days to keep log events before they expire.number7no
managed_actions_enabledEnable managed platform updates. When you set this to true, you must also specify aPreferredStartTime andUpdateLevelbooltrueno
nameID element. Usually the component or solution name, e.g. 'app' or 'jenkins'.
This is the only ID element not also included as atag.
The "name" tag is set to the fullid string. There is no tag with the value of thename input.
stringnullno
namespaceID element. Usually an abbreviation of your organization name, e.g. 'eg' or 'cp', to help ensure generated IDs are globally uniquestringnullno
prefer_legacy_service_policyWhether to use AWSElasticBeanstalkService (deprecated) or AWSElasticBeanstalkManagedUpdatesCustomerRolePolicy policybooltrueno
prefer_legacy_ssm_policyWhether to use AmazonEC2RoleforSSM (will soon be deprecated) or AmazonSSMManagedInstanceCore policybooltrueno
preferred_start_timeConfigure a maintenance window for managed actions in UTCstring"Sun:10:00"no
regex_replace_charsTerraform regular expression (regex) string.
Characters matching the regex will be removed from the ID elements.
If not set,"/[^a-zA-Z0-9-]/" is used to remove all characters other than hyphens, letters and digits.
stringnullno
regionAWS regionstringn/ayes
rolling_update_enabledWhether to enable rolling updatebooltrueno
rolling_update_typeHealth orImmutable. Set it toImmutable to apply the configuration change to a fresh group of instancesstring"Health"no
root_volume_iopsThe IOPS of the EBS root volume (only applies for gp3 and io1 types)numbernullno
root_volume_sizeThe size of the EBS root volumenumber8no
root_volume_throughputThe type of the EBS root volume (only applies for gp3 type)numbernullno
root_volume_typeThe type of the EBS root volumestring"gp2"no
s3_bucket_access_log_bucket_nameName of the S3 bucket where s3 access log will be sent tostring""no
s3_bucket_versioning_enabledWhen set to 'true' the s3 origin bucket will have versioning enabledbooltrueno
scheduled_actionsDefine a list of scheduled actions
list(object({
name = string
minsize = string
maxsize = string
desiredcapacity = string
starttime = string
endtime = string
recurrence = string
suspend = bool
}))
[]no
security_group_create_before_destroySettrue to enable Terraformcreate_before_destroy behavior on the created security group.
We recommend setting thistrue on new security groups, but default it tofalse becausetrue
will cause existing security groups to be replaced, possibly requiring the resource to be deleted and recreated.
Note that changing this value will always cause the security group to be replaced.
boolfalseno
security_group_create_timeoutHow long to wait for the security group to be created.string"10m"no
security_group_delete_timeoutHow long to retry onDependencyViolation errors during security group deletion from
lingering ENIs left by certain AWS services such as Elastic Load Balancing.
string"15m"no
security_group_descriptionThe description to assign to the created Security Group.
Warning: Changing the description causes the security group to be replaced.
string"Security Group for the EB environment"no
security_group_nameThe name to assign to the created security group. Must be unique within the VPC.
If not provided, will be derived from thenull-label.context passed in.
Ifcreate_before_destroy is true, will be used as a name prefix.
list(string)[]no
shared_loadbalancer_arnARN of the shared application load balancer. Only when loadbalancer_type = "application".string""no
solution_stack_nameElastic Beanstalk stack, e.g. Docker, Go, Node, Java, IIS. For more info, seehttps://docs.aws.amazon.com/elasticbeanstalk/latest/platforms/platforms-supported.htmlstringn/ayes
spot_fleet_on_demand_above_base_percentageThe percentage of On-Demand Instances as part of additional capacity that your Auto Scaling group provisions beyond the SpotOnDemandBase instances. This option is relevant only when enable_spot_instances is true.number-1no
spot_fleet_on_demand_baseThe minimum number of On-Demand Instances that your Auto Scaling group provisions before considering Spot Instances as your environment scales up. This option is relevant only when enable_spot_instances is true.number0no
spot_max_priceThe maximum price per unit hour, in US$, that you're willing to pay for a Spot Instance. This option is relevant only when enable_spot_instances is true. Valid values are between 0.001 and 20.0number-1no
ssh_listener_enabledEnable SSH portboolfalseno
ssh_listener_portSSH portnumber22no
stageID element. Usually used to indicate role, e.g. 'prod', 'staging', 'source', 'build', 'test', 'deploy', 'release'stringnullno
tagsAdditional tags (e.g.{'BusinessUnit': 'XYZ'}).
Neither the tag keys nor the tag values will be modified by this module.
map(string){}no
tenantID element _(Rarely used, not included by default)_. A customer identifier, indicating who this instance of a resource is forstringnullno
tierElastic Beanstalk Environment tier, 'WebServer' or 'Worker'string"WebServer"no
update_levelThe highest level of update to apply with managed platform updatesstring"minor"no
updating_max_batchMaximum number of instances to update at oncenumber1no
updating_min_in_serviceMinimum number of instances in service during updatenumber1no
version_labelElastic Beanstalk Application version to deploystring""no
vpc_idID of the VPC in which to provision the AWS resourcesstringn/ayes
wait_for_ready_timeoutThe maximum duration to wait for the Elastic Beanstalk Environment to be in a ready state before timing outstring"20m"no

Outputs

NameDescription
all_settingsList of all option settings configured in the environment. These are a combination of default settings and their overrides from setting in the configuration
applicationThe Elastic Beanstalk Application for this environment
autoscaling_groupsThe autoscaling groups used by this environment
ec2_instance_profile_role_nameInstance IAM role name
elb_zone_idELB zone ID
endpointFully qualified DNS name for the environment
hostnameDNS hostname
idID of the Elastic Beanstalk environment
instancesInstances used by this environment
launch_configurationsLaunch configurations in use by this environment
load_balancer_log_bucketName of bucket where Load Balancer logs are stored (if enabled)
load_balancersElastic Load Balancers in use by this environment
nameName of the Elastic Beanstalk environment
queuesSQS queues in use by this environment
security_group_arnElastic Beanstalk environment Security Group ARN
security_group_idElastic Beanstalk environment Security Group ID
security_group_nameElastic Beanstalk environment Security Group name
settingSettings specifically set for this environment
tierThe environment tier
triggersAutoscaling triggers in use by this environment

Related Projects

Check out these related projects.

Tip

Use Terraform Reference Architectures for AWS

Use Cloud Posse's ready-to-goterraform architecture blueprints for AWS to get up and running quickly.

✅ We build it together with your team.
✅ Your team owns everything.
✅ 100% Open Source and backed by fanatical support.

Request Quote

📚Learn More

Cloud Posse is the leadingDevOps Accelerator for funded startups and enterprises.

Your team can operate like a pro today.

Ensure that your team succeeds by using Cloud Posse's proven process and turnkey blueprints. Plus, we stick around until you succeed.

Day-0: Your Foundation for Success

  • Reference Architecture. You'll get everything you need from the ground up built using 100% infrastructure as code.
  • Deployment Strategy. Adopt a proven deployment strategy with GitHub Actions, enabling automated, repeatable, and reliable software releases.
  • Site Reliability Engineering. Gain total visibility into your applications and services with Datadog, ensuring high availability and performance.
  • Security Baseline. Establish a secure environment from the start, with built-in governance, accountability, and comprehensive audit logs, safeguarding your operations.
  • GitOps. Empower your team to manage infrastructure changes confidently and efficiently through Pull Requests, leveraging the full power of GitHub Actions.

Request Quote

Day-2: Your Operational Mastery

  • Training. Equip your team with the knowledge and skills to confidently manage the infrastructure, ensuring long-term success and self-sufficiency.
  • Support. Benefit from a seamless communication over Slack with our experts, ensuring you have the support you need, whenever you need it.
  • Troubleshooting. Access expert assistance to quickly resolve any operational challenges, minimizing downtime and maintaining business continuity.
  • Code Reviews. Enhance your team’s code quality with our expert feedback, fostering continuous improvement and collaboration.
  • Bug Fixes. Rely on our team to troubleshoot and resolve any issues, ensuring your systems run smoothly.
  • Migration Assistance. Accelerate your migration process with our dedicated support, minimizing disruption and speeding up time-to-value.
  • Customer Workshops. Engage with our team in weekly workshops, gaining insights and strategies to continuously improve and innovate.

Request Quote

✨ Contributing

This project is under active development, and we encourage contributions from our community.

Many thanks to our outstanding contributors:

For 🐛 bug reports & feature requests, please use theissue tracker.

In general, PRs are welcome. We follow the typical "fork-and-pull" Git workflow.

  1. Review ourCode of Conduct andContributor Guidelines.
  2. Fork the repo on GitHub
  3. Clone the project to your own machine
  4. Commit changes to your own branch
  5. Push your work back up to your fork
  6. Submit aPull Request so that we can review your changes

NOTE: Be sure to merge the latest changes from "upstream" before making a pull request!

Running Terraform Tests

We useAtmos to streamline how Terraform tests are run. It centralizes configuration and wraps common test workflows with easy-to-use commands.

All tests are located in thetest/ folder.

Under the hood, tests are powered by Terratest together with our internalTest Helpers library, providing robust infrastructure validation.

Setup dependencies:

To run tests:

  • Run all tests:
    atmostest run
  • Clean up test artifacts:
    atmostest clean
  • Explore additional test options:
    atmostest --help

The configuration for test commands is centrally managed. To review what's being imported, see theatmos.yaml file.

Learn more about ourautomated testing in our documentation or implementingcustom commands with atmos.

🌎 Slack Community

Join ourOpen Source Community on Slack. It'sFREE for everyone! Our "SweetOps" community is where you get to talk with others who share a similar vision for how to rollout and manage infrastructure. This is the best place to talk shop, ask questions, solicit feedback, and work together as a community to build totallysweet infrastructure.

📰 Newsletter

Sign up forour newsletter and join 3,000+ DevOps engineers, CTOs, and founders who get insider access to the latest DevOps trends, so you can always stay in the know.Dropped straight into your Inbox every week — and usually a 5-minute read.

📆 Office Hours

Join us every Wednesday via Zoom for your weekly dose of insider DevOps trends, AWS news and Terraform insights, all sourced from our SweetOps community, plus alive Q&A that you can’t find anywhere else.It'sFREE for everyone!

License

License

Preamble to the Apache License, Version 2.0

Complete license is available in theLICENSE file.

Licensed to the Apache Software Foundation (ASF) under oneor more contributor license agreements.  See the NOTICE filedistributed with this work for additional informationregarding copyright ownership.  The ASF licenses this fileto you under the Apache License, Version 2.0 (the"License"); you may not use this file except in compliancewith the License.  You may obtain a copy of the License at  https://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing,software distributed under the License is distributed on an"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANYKIND, either express or implied.  See the License for thespecific language governing permissions and limitationsunder the License.

Trademarks

All other trademarks referenced herein are the property of their respective owners.


Copyright © 2017-2025Cloud Posse, LLC

README footer

Beacon

About

Terraform module to provision an AWS Elastic Beanstalk Environment

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Contributors58


[8]ページ先頭

©2009-2025 Movatter.jp