Skip to content

Resource: awsAppstreamFleetStackAssociation

Manages an AppStream Fleet Stack association.

Example Usage

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
const awsAppstreamFleetExample = new aws.appstreamFleet.AppstreamFleet(
  this,
  "example",
  {
    computeCapacity: {
      desiredInstances: 1,
    },
    imageName: "Amazon-AppStream2-Sample-Image-02-04-2019",
    instanceType: "stream.standard.small",
    name: "NAME",
  }
);
const awsAppstreamStackExample = new aws.appstreamStack.AppstreamStack(
  this,
  "example_1",
  {
    name: "STACK NAME",
  }
);
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
awsAppstreamStackExample.overrideLogicalId("example");
const awsAppstreamFleetStackAssociationExample =
  new aws.appstreamFleetStackAssociation.AppstreamFleetStackAssociation(
    this,
    "example_2",
    {
      fleetName: awsAppstreamFleetExample.name,
      stackName: awsAppstreamStackExample.name,
    }
  );
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
awsAppstreamFleetStackAssociationExample.overrideLogicalId("example");

Argument Reference

The following arguments are required:

  • fleetName - (Required) Name of the fleet.
  • stackName (Required) Name of the stack.

Attributes Reference

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

  • id - Unique ID of the appstream stack fleet association, composed of the fleetName and stackName separated by a slash (/).

Import

AppStream Stack Fleet Association can be imported by using the fleetName and stackName separated by a slash (/), e.g.,

$ terraform import aws_appstream_fleet_stack_association.example fleetName/stackName