GetSolutionStack

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

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var multiDocker = Output.Create(Aws.ElasticBeanstalk.GetSolutionStack.InvokeAsync(new Aws.ElasticBeanstalk.GetSolutionStackArgs
        {
            MostRecent = true,
            NameRegex = "^64bit Amazon Linux (.*) Multi-container Docker (.*)$",
        }));
    }

}
package main

import (
    "fmt"

    "github.com/pulumi/pulumi-aws/sdk/v2/go/aws/elasticbeanstalk"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        opt0 := true
        _, err := elasticbeanstalk.GetSolutionStack(ctx, &elasticbeanstalk.GetSolutionStackArgs{
            MostRecent: &opt0,
            NameRegex:  fmt.Sprintf("%v%v", "^64bit Amazon Linux (.*) Multi-container Docker (.*)", "$"),
        }, nil)
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_aws as aws

multi_docker = aws.elasticbeanstalk.get_solution_stack(most_recent=True,
    name_regex="^64bit Amazon Linux (.*) Multi-container Docker (.*)$")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const multiDocker = pulumi.output(aws.elasticbeanstalk.getSolutionStack({
    mostRecent: true,
    nameRegex: "^64bit Amazon Linux (.*) Multi-container Docker (.*)$",
}, { async: true }));

Using GetSolutionStack

function getSolutionStack(args: GetSolutionStackArgs, opts?: InvokeOptions): Promise<GetSolutionStackResult>
function  get_solution_stack(most_recent=None, name_regex=None, opts=None)
func GetSolutionStack(ctx *Context, args *GetSolutionStackArgs, opts ...InvokeOption) (*GetSolutionStackResult, error)
public static class GetSolutionStack {
    public static Task<GetSolutionStackResult> InvokeAsync(GetSolutionStackArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

NameRegex string

A regex string to apply to the solution stack list returned by AWS. See [Elastic Beanstalk Supported Platforms][beanstalk-platforms] from AWS documentation for reference solution stack names.

MostRecent bool

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

NameRegex string

A regex string to apply to the solution stack list returned by AWS. See [Elastic Beanstalk Supported Platforms][beanstalk-platforms] from AWS documentation for reference solution stack names.

MostRecent bool

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

nameRegex string

A regex string to apply to the solution stack list returned by AWS. See [Elastic Beanstalk Supported Platforms][beanstalk-platforms] from AWS documentation for reference solution stack names.

mostRecent boolean

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

name_regex str

A regex string to apply to the solution stack list returned by AWS. See [Elastic Beanstalk Supported Platforms][beanstalk-platforms] from AWS documentation for reference solution stack names.

most_recent bool

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

GetSolutionStack Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

Name string

The name of the solution stack.

NameRegex string
MostRecent bool
Id string

The provider-assigned unique ID for this managed resource.

Name string

The name of the solution stack.

NameRegex string
MostRecent bool
id string

The provider-assigned unique ID for this managed resource.

name string

The name of the solution stack.

nameRegex string
mostRecent boolean
id str

The provider-assigned unique ID for this managed resource.

name str

The name of the solution stack.

name_regex str
most_recent bool

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.