Monday, April 15, 2024
HomeSoftware EngineeringLearn how to Create AWS AppStream assets in Terraform

Learn how to Create AWS AppStream assets in Terraform


AWS AppStream has lastly made its means into the Terraform AWS Supplier.

If you’re utilizing hashicorp/aws model 3.67 or above, then you are able to do the next:

terraform {
  required_version = "~> 1.0"
  required_providers {
    aws = {
      supply  = "hashicorp/aws"
      model = "~> 3.67"
    }
  }
}
supplier "aws" {
  area = "eu-west-1"
  default_tags {
    tags = {
      Contact = "[email protected]"
      Surroundings = "dev"
      DeployedBy = "Automation:Terraform"
    }
  }
}

useful resource "aws_appstream_fleet" "instance" {
  identify          = "ao-tmp-fleet-1"
  image_name    = "Amazon-AppStream2-Pattern-Picture-02-04-2019"
  instance_type = "stream.customary.small"

  compute_capacity {
    desired_instances = 1
  }
}
useful resource "aws_appstream_stack" "instance" {
  identify = "ao-tmp-stack-1"
}
useful resource "aws_appstream_fleet_stack_association" "instance" {
  fleet_name = aws_appstream_fleet.instance.identify
  stack_name = aws_appstream_stack.instance.identify
}
RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments