» aws_swf_domain

Provides an SWF Domain resource.

» Example Usage

To register a basic SWF domain:

resource "aws_swf_domain" "foo" {
  name                                        = "foo"
  description                                 = "Terraform SWF Domain"
  workflow_execution_retention_period_in_days = 30

» Argument Reference

The following arguments are supported:

  • name - (Optional, Forces new resource) The name of the domain. If omitted, Terraform will assign a random, unique name.
  • name_prefix - (Optional, Forces new resource) Creates a unique name beginning with the specified prefix. Conflicts with name.
  • description - (Optional, Forces new resource) The domain description.
  • workflow_execution_retention_period_in_days - (Required, Forces new resource) Length of time that SWF will continue to retain information about the workflow execution after the workflow execution is complete, must be between 0 and 90 days.

» Attributes Reference

In addition to all arguments above, the following attributes are exported:

  • id - The name of the domain.

» Import

SWF Domains can be imported using the name, e.g.

$ terraform import aws_swf_domain.foo test-domain