Resource: aws_worklink_fleet

Example Usage

Basic usage:

resource "aws_worklink_fleet" "example" {
  name = "terraform-example"
}

Network Configuration Usage:

resource "aws_worklink_fleet" "example" {
  name = "terraform-example"

  network {
    vpc_id             = aws_vpc.test.id
    subnet_ids         = [aws_subnet.test[*].id]
    security_group_ids = [aws_security_group.test.id]
  }
}

Identity Provider Configuration Usage:

resource "aws_worklink_fleet" "test" {
  name = "tf-worklink-fleet"

  identity_provider {
    type          = "SAML"
    saml_metadata = file("saml-metadata.xml")
  }
}

Argument Reference

This resource supports the following arguments:

network requires the following:

identity_provider requires the following:

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 WorkLink using the ARN. For example:

import {
  to = aws_worklink_fleet.test
  id = "arn:aws:worklink::123456789012:fleet/example"
}

Using terraform import, import WorkLink using the ARN. For example:

% terraform import aws_worklink_fleet.test arn:aws:worklink::123456789012:fleet/example