Use this data source to get the name of a elastic beanstalk solution stack.
data "aws_elastic_beanstalk_solution_stack" "multi_docker" {
most_recent = true
name_regex = "^64bit Amazon Linux (.*) Multi-container Docker (.*)$"
}
most_recent - (Optional) If more than one result is returned, use the most recent solution stack.
name_regex - A regex string to apply to the solution stack list returned by AWS. See Elastic Beanstalk Supported Platforms from AWS documentation for reference solution stack names.
NOTE: If more or less than a single match is returned by the search, Terraform will fail. Ensure that your search is specific enough to return a single solution stack, or use
most_recentto choose the most recent one.
name - The name of the solution stack.
© 2018 HashiCorpLicensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/aws/d/elastic_beanstalk_solution_stack.html