Skip to content

Ashishkasaudhan/Aws-AppStream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 

Repository files navigation

Aws-AppStream

AppStream 2.0 is a fully managed service that can be configured for application streaming or for delivery of virtual desktops with selective persistence. When AppStream 2.0 is used for virtual desktops, saved files and application settings remain persistent between user sessions, and a fresh desktop is assigned to the user every time they log on. This Code will help you to set up the Amazon App stream 2.0 Environment. To know more about app stream, kindly go-through with the following documents.


Pre-Requisites

  • An AWS Account
  • An Ec2 instance with an instance profile having access to Amazon App-Stream 2.0 service and For an On-Prem instance an IAM role.
  • Vpc with 2 or More Public and Private Subnet with Appropriate tagging. These tags will be used in terraform code, to pull out vpc and subnet information.

image

  • Terraform version greater/equal to 1.2.9.
  • AwsCli

Terraform Execution Steps To Create ImageBuilder

  • Clone the git repo.
  • Go To AppStream-ImageBuilder Directory.
  • Update the variable into tfvars file as per your environment/requirement.
  • Push change to git repo.
  • To initialize a working directory containing Terraform configuration files:
terraform init

image

  • To validate the Terraform configuration
terraform validate

image

  • To format your Terraform code
terraform fmt --recursive
  • To create an execution plan, which lets you preview the changes to your infrastructure:
terraform plan

image

terraform apply --auto-approve

image

After the successful execution of terraform Code Imagebuilder Instance gets created, which we are going to customize. For this demo, we are going to install notepad++.

Customize Image Builder Instance

  • Go To APPStream 2.0 ----> Image Builders ----> Click on Start -----> After Start login as Administrator

image

image


Terraform Execution Steps To Create Amazon AppStream 2.0 Stack And Fleet

  • Clone the git repo.
  • Go To AppStream Directory.
  • Update the variable into tfvars file as per your environment/requirement.
  • Push change to git repo.
  • To initialize a working directory containing Terraform configuration files:
terraform init
  • To validate the Terraform configuration
terraform validate
  • To format your Terraform code
terraform fmt --recursive
  • To create an execution plan, which lets you preview the changes to your infrastructure:
terraform plan

image

terraform apply --auto-approve

After the successful execution of terraform Code Amazon AppStream fleet and stack gets created.

image

image

* Once everything becomes available, login into AppStream Stack.

image

Requirements

Name Version
terraform = 1.2.9

Providers

Name Version
aws 4.20.1

Modules

AppStream/modules/appstream-fleets

Inputs

Name Description Type Default Required
mgmt_stack_name Name of AppStream Stack string "" yes
mgmt_fleet_name Name of AppStream Fleet string "" yes
mgmt_fleet_type Name of AppStream Type string "" yes
mgmt_instance_name Type of AppStream Instance string "" yes
mgmt_image_name Name of AppStream Image create via image builder string "" yes
mgmt_desired_capacity Desired Number of AppStream Instance number "" yes
mgmt_max_capacity Maximum Number of AppStream Instance number "" yes
mgmt_min_capacity Minimum Number of AppStream Instance number "" yes
image_name Base Image for ImageBuilder string "" yes
instance_type Instance Type for Imagebuilder Instance string "" yes

Outputs

Name Description
stack_arn ARN of the created appstream stack.
imagebuilder_arn ARN of the created imagebuilder instance.
imagebuilder_id Name of the created imagebuilder instance.

For more information on Amazon AppStream 2.0 , visit Amazon AppStream 2.0 By Ashish Kasaudhan.

For more information on Amazon AppStream 2.0, visit Amazon AppStream 2.0.

About

This Code will Help you to setup aws appstream.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages