getSolutionStack

Use this data source to get the name of a elastic beanstalk solution stack.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.elasticbeanstalk.ElasticbeanstalkFunctions;
import com.pulumi.aws.elasticbeanstalk.inputs.GetSolutionStackArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var multiDocker = ElasticbeanstalkFunctions.getSolutionStack(GetSolutionStackArgs.builder()
.mostRecent(true)
.nameRegex("^64bit Amazon Linux (.*) Multi-container Docker (.*)$")
.build());
}
}

Return

A collection of values returned by getSolutionStack.

Parameters

argument

A collection of arguments for invoking getSolutionStack.


suspend fun getSolutionStack(mostRecent: Boolean? = null, nameRegex: String): GetSolutionStackResult

Return

A collection of values returned by getSolutionStack.

Parameters

mostRecent

If more than one result is returned, use the most recent solution stack.

nameRegex

Regex string to apply to the solution stack list returned by AWS. See beanstalk-platforms from AWS documentation for reference solution stack names.

NOTE: If more or less than a single match is returned by the search, this call will fail. Ensure that your search is specific enough to return a single solution stack, or use most_recent to choose the most recent one.

See also


Return

A collection of values returned by getSolutionStack.

Parameters

argument

Builder for com.pulumi.aws.elasticbeanstalk.kotlin.inputs.GetSolutionStackPlainArgs.

See also