FEATURES OPEN SOURCE ABOUT DOCS LOGIN REGISTER

aws_opsworks_stack

Provides an OpsWorks stack resource.

Example Usage

resource "aws_opsworks_stack" "main" {
    name = "awesome-stack"
    region = "us-west-1"
    service_role_arn = "${aws_iam_role.opsworks.arn}"
    default_instance_profile_arn = "${aws_iam_instance_profile.opsworks.arn}"
    custom_json = <<EOT
{
 "foobar": {
    "version": "1.0.0"
  }
}
EOT
}

Argument Reference

The following arguments are supported:

The custom_cookbooks_source block supports the following arguments:

Attributes Reference

The following attributes are exported:

Import

OpsWorks stacks can be imported using the id, e.g.

$ terraform import aws_opsworks_stack.bar 00000000-0000-0000-0000-000000000000

See the source of this document at Terraform.io