Stack
Provides an OpsWorks stack resource.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.opsworks.Stack;
import com.pulumi.aws.opsworks.StackArgs;
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) {
var main = new Stack("main", StackArgs.builder()
.region("us-west-1")
.serviceRoleArn(aws_iam_role.opsworks().arn())
.defaultInstanceProfileArn(aws_iam_instance_profile.opsworks().arn())
.tags(Map.of("Name", "foobar-stack"))
.customJson("""
{
"foobar": {
"version": "1.0.0"
}
}
""")
.build());
}
}
Content copied to clipboard
Import
OpsWorks stacks can be imported using the id
, e.g.,
$ pulumi import aws:opsworks/stack:Stack bar 00000000-0000-0000-0000-000000000000
Content copied to clipboard
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard