Resource: aws_opsworks_php_app_layer

Provides an OpsWorks PHP application layer resource.

Example Usage

resource "aws_opsworks_php_app_layer" "app" {
  stack_id = aws_opsworks_stack.main.id
}

Argument Reference

This resource supports the following arguments:

The following extra optional arguments, all lists of Chef recipe names, allow custom Chef recipes to be applied to layer instances at the five different lifecycle events, if custom cookbooks are enabled on the layer's stack:

An ebs_volume block supports the following arguments:

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Import

In Terraform v1.5.0 and later, use an import block to import OpsWorks PHP Application Layers using the id. For example:

import {
  to = aws_opsworks_php_app_layer.bar
  id = "00000000-0000-0000-0000-000000000000"
}

Using terraform import, import OpsWorks PHP Application Layers using the id. For example:

% terraform import aws_opsworks_php_app_layer.bar 00000000-0000-0000-0000-000000000000