environment_resources
Creates, updates, deletes, gets or lists an environment_resources resource.
Overview
| Name | environment_resources |
| Type | Resource |
| Id | aws.elasticbeanstalk.environment_resources |
Fields
The following fields are returned by SELECT queries:
- describe_environment_resources
| Name | Datatype | Description |
|---|---|---|
auto_scaling_groups | string | The AutoScalingGroups used by this environment. |
environment_name | string | The name of the environment. |
instances | string | The Amazon EC2 instances used by this environment. |
launch_configurations | string | The Auto Scaling launch configurations in use by this environment. |
launch_templates | string | The Amazon EC2 launch templates in use by this environment. |
load_balancers | string | The LoadBalancers in use by this environment. |
queues | string | The queues used by this environment. |
triggers | string | The AutoScaling triggers in use by this environment. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
describe_environment_resources | select | region | EnvironmentId, EnvironmentName | Returns 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.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
EnvironmentId | string | The 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. |
EnvironmentName | string | The 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
- describe_environment_resources
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 }}'
;