Resource: aws_opsworks_static_web_layer

Provides an OpsWorks static web server layer resource.

Example Usage

resource "aws_opsworks_static_web_layer" "web" {
  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 static web server Layers using the id. For example:

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

Using terraform import, import OpsWorks static web server Layers using the id. For example:

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