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:
- Name
Regex 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.
- Most
Recent bool If more than one result is returned, use the most recent solution stack.
- Name
Regex 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.
- Most
Recent bool If more than one result is returned, use the most recent solution stack.
- name
Regex 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.
- most
Recent 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 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
awsTerraform Provider.