Skip to main content

environment_resources

Creates, updates, deletes, gets or lists an environment_resources resource.

Overview

Nameenvironment_resources
TypeResource
Idaws.elasticbeanstalk.environment_resources

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
auto_scaling_groupsstringThe AutoScalingGroups used by this environment.
environment_namestringThe name of the environment.
instancesstringThe Amazon EC2 instances used by this environment.
launch_configurationsstringThe Auto Scaling launch configurations in use by this environment.
launch_templatesstringThe Amazon EC2 launch templates in use by this environment.
load_balancersstringThe LoadBalancers in use by this environment.
queuesstringThe queues used by this environment.
triggersstringThe AutoScaling triggers in use by this environment.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_environment_resourcesselectregionEnvironmentId, EnvironmentNameReturns AWS resources for this environment.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)
EnvironmentIdstringThe ID of the environment to retrieve AWS resource usage data. Condition: You must specify either this or an EnvironmentName, or both. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter error.
EnvironmentNamestringThe name of the environment to retrieve AWS resource usage data. Condition: You must specify either this or an EnvironmentId, or both. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter error.

SELECT examples

Returns AWS resources for this environment.

SELECT
auto_scaling_groups,
environment_name,
instances,
launch_configurations,
launch_templates,
load_balancers,
queues,
triggers
FROM aws.elasticbeanstalk.environment_resources
WHERE region = '{{ region }}' -- required
AND EnvironmentId = '{{ EnvironmentId }}'
AND EnvironmentName = '{{ EnvironmentName }}'
;