AWS OpsWorks Instance

This page shows how to write Terraform and CloudFormation for OpsWorks Instance and write them securely.

aws_opsworks_instance (Terraform)

The Instance in OpsWorks can be configured in Terraform with the resource name aws_opsworks_instance. The following sections describe 1 example of how to use the resource and its parameters.

Example Usage from GitHub

github-icon1smii/iac_terraform_aws
resource "aws_opsworks_instance" "apache2-instance" {
  stack_id = aws_opsworks_stack.mainstack.id
  layer_ids = [aws_opsworks_custom_layer.mainlayer.id]

Parameters

Explanation in Terraform Registry

Provides an OpsWorks instance resource.

AWS::OpsWorks::Instance (CloudFormation)

The Instance in OpsWorks can be configured in CloudFormation with the resource name AWS::OpsWorks::Instance. The following sections describe how to use the resource and its parameters.

Parameters

Explanation in CloudFormation Registry

Creates an instance in a specified stack. For more information, see Adding an Instance to a Layer. Required Permissions: To use this action, an IAM user must have a Manage permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions.

Frequently asked questions

What is AWS OpsWorks Instance?

AWS OpsWorks Instance is a resource for OpsWorks of Amazon Web Service. Settings can be wrote in Terraform and CloudFormation.

Where can I find the example code for the AWS OpsWorks Instance?

For Terraform, the 1smii/iac_terraform_aws source code example is useful. See the Terraform Example section for further details.