Skip to content

Deletes and recreates all of the Amazon Web Services resources (for example: the Auto Scaling group, load balancer, etc

Description

Deletes and recreates all of the Amazon Web Services resources (for example: the Auto Scaling group, load balancer, etc.) for a specified environment and forces a restart.

Usage

elasticbeanstalk_rebuild_environment(EnvironmentId, EnvironmentName)

Arguments

  • EnvironmentId

    The ID of the environment to rebuild.

    Condition: You must specify either this or an EnvironmentName, or both. If you do not specify either, Elastic Beanstalk returns MissingRequiredParameter error.

  • EnvironmentName

    The name of the environment to rebuild.

    Condition: You must specify either this or an EnvironmentId, or both. If you do not specify either, Elastic Beanstalk returns MissingRequiredParameter error.

Value

An empty list.

Request syntax

svc$rebuild_environment(
  EnvironmentId = "string",
  EnvironmentName = "string"
)

Examples

# The following operation terminates and recreates the resources in an
# environment named my-env:
svc$rebuild_environment(
  EnvironmentName = "my-env"
)