close

Amazon Web Services (AWS)

Amazon Web Services (AWS)

Write a script to list active directories in AWS

Here’s an example of a bash script that lists the active directories in an AWS account using the AWS CLI:

#!/bin/bash

# Set the AWS CLI region
aws configure set default.region us-west-2

# Get a list of all the active directories in the AWS account
active_directories=$(aws ds describe-directories --query 'DirectoryDescriptions[].Name' --output text)

# Loop through the list of active directories
for directory in $active_directories; do
  # Print the name of each active directory
  echo $directory
done

In this example, the AWS CLI is used to retrieve a list of all the active directories in the AWS account, and the bash script loops through that list, printing the name of each active directory. You can modify this script to fit your specific needs, such as filtering the list of active directories based on certain criteria.

read more
Amazon Web Services (AWS)

Use bash script to enable AWS Local Zones

To enable Local Zones using bash, you can use the AWS CLI and write a bash script to automate the process. Here’s an example of how you can enable Local Zones using bash:

#!/bin/bash

# Set the AWS CLI region
aws configure set default.region us-west-2

# Get a list of Local Zones in the region
local_zones=$(aws ec2 describe-local-zones --output-text)

# Enable LAX Local Zones
aws ec2 modify-availability-zone-group \
  --region us-west-2 \
  --group-name us-west-2-lax-1 \
  --opt-in-status opted-in

# Confirm that the Local Zones have been enabled
enabled_local_zones=$(aws ec2 describe-availability-zone-group-configs --zone-group-name "group_name" --query 'AvailabilityZoneGroups[].Platforms[].Value' --output text)
echo "Enabled Local Zones: $enabled_local_zones"

In this example, replace “group_name” with the name of your availability zone group. This bash script will loop through all the Local Zones in the region, enable each one, and then display a list of all the enabled Local Zones. You can run this script on a server or your local machine to automate the process of enabling Local Zones.

read more
Amazon Web Services (AWS)

Amazon AppStream 2.0 Security

Amazon AppStream 2.0 in AWS GovCloud (US) is a fully managed, secure application streaming service that allows you to stream desktop applications from AWS to any device running a web browser, without rewriting them.

Regarding encryption, Amazon AppStream 2.0 provides multiple layers of security to ensure the confidentiality and integrity of the data being transmitted, stored and processed. Some of the encryption features of Amazon AppStream 2.0 in AWS GovCloud (US) include:

Data-in-transit encryption: AppStream 2.0 uses Secure Sockets Layer (SSL)/Transport Layer Security (TLS) encryption for all data transmitted between the user device and the AppStream 2.0 service.

Data-at-rest encryption: AppStream 2.0 stores user data and application data encrypted at rest using encryption keys managed by Amazon Key Management Service (KMS) in the AWS GovCloud (US) region.

User authentication: Amazon AppStream 2.0 supports integration with AWS Single Sign-On (AWS SSO) and other identity providers to authenticate users and control access to applications.

Network security: Amazon AppStream 2.0 runs in Amazon Virtual Private Cloud (VPC) and provides fine-grained access control to resources. You can also configure security groups and network ACLs to further restrict access to your applications.

By using these encryption and security features, Amazon AppStream 2.0 in AWS GovCloud (US) helps you meet the security and compliance requirements of your organization while providing a fast, seamless and secure application streaming experience to your users.

Here are some links that you can use to find out more about encryption options for Amazon AppStream:

Amazon AppStream 2.0 documentation: This official documentation provides a comprehensive overview of the encryption and security features of Amazon AppStream 2.0, including information on how to encrypt data in transit and at rest. You can access this documentation at: https://docs.aws.amazon.com/appstream2/latest/developerguide/security-overview.html

AWS Key Management Service (KMS) documentation: Amazon AppStream 2.0 uses KMS to manage encryption keys for data at rest. The KMS documentation provides more information on how KMS can be used to secure your data. You can access the KMS documentation at: https://aws.amazon.com/kms/

Amazon Virtual Private Cloud (VPC) documentation: Amazon AppStream 2.0 runs in Amazon VPC, which provides a secure and isolated network environment. You can access the VPC documentation at: https://aws.amazon.com/vpc/

AWS Single Sign-On (SSO) documentation: Amazon AppStream 2.0 supports integration with AWS SSO, which provides a centralized, identity management solution. You can access the AWS SSO documentation at: https://aws.amazon.com/single-sign-on/ https://aws.amazon.com/blogs/desktop-and-application-streaming/enable-federation-with-aws-single-sign-on-and-amazon-appstream-2-0/

These resources will help you understand the encryption and security features of Amazon AppStream 2.0 and how you can use them to secure your applications.

read more
Amazon Web Services (AWS)

Image management: Amazon AppStream 2.0

In Amazon AppStream 2.0, image management refers to the process of creating, maintaining, and deploying images that contain the applications and configurations needed to run your streaming sessions.

An image in AppStream 2.0 is a collection of software components and settings that are used to launch a virtual machine. The virtual machine provides the computing environment for your users to access and run their applications. You can customize your images to include the specific applications, settings, and configurations that you need.

To manage images in AppStream 2.0, you can use the AppStream 2.0 console or the AWS CLI. The console provides a graphical interface for creating and updating images, while the AWS CLI provides a command-line interface for automating image management tasks.

When creating an image, you can specify the base image, operating system, and software components to include. You can also configure settings such as the default browser, network settings, and user accounts. After you have created your image, you can update it as needed to reflect changes in your applications and configurations.

In addition to creating and updating images, you can also manage the images that are stored in your AppStream 2.0 image library. You can organize images into image categories, view image metadata, and delete images that are no longer needed.

Overall, image management in Amazon AppStream 2.0 allows you to create, configure, and deploy customized images that are optimized for your streaming sessions. By managing your images effectively, you can ensure that your users have access to the applications and configurations they need to be productive.

read more
Amazon Web Services (AWS)

Administer Your Amazon AppStream 2.0 Images

https://docs.aws.amazon.com/appstream2/latest/developerguide/administer-images.html#keep-image-updated

This article provides information on how to administer your Amazon AppStream 2.0 images. The available images are listed in the Image Registry and are categorized as public, private, shared with others, and shared with me. The article provides instructions on how to delete a private image, copy an image to another AWS region, share an image with another AWS account, stop sharing an image, keep the image up-to-date, manage Windows updates and antivirus software, and programmatically create a new image. The article also provides instructions on how to add or update image sharing permissions for an image you own.

read more
Amazon Web Services (AWS)

How to automate Amazon AppStream 2.0 image deployment

https://aws.amazon.com/blogs/desktop-and-application-streaming/how-to-automate-amazon-appstream-2-0-image-deployment/

This article describes a step-by-step guide for automating the deployment of Amazon AppStream 2.0 images to existing fleets. The process involves creating an IAM policy, IAM role, AWS Lambda function, AWS Step Functions state machine, and Amazon EventBridge rule. The IAM policy and role provide the necessary permissions for the Lambda function to manage the image update process. The Lambda function checks the key-value of tagged AppStream 2.0 resources and starts the image update process. The state machine deploys the image and any scaling actions during the defined maintenance window. The EventBridge rule triggers the Lambda function every time an AppStream 2.0 resource is tagged. The process notifies administrators of the image deployment status using Amazon Simple Email Service.

read more
Amazon Web Services (AWS)

Using Active Directory with AppStream 2.0

https://docs.aws.amazon.com/appstream2/latest/developerguide/active-directory.html

This article explains how to use Active Directory with Amazon AppStream 2.0. You can join the Always-On and On-Demand Windows fleets and image builders to domains in Microsoft Active Directory and use AWS Directory Service for Microsoft Active Directory to create an Active Directory domain. By joining AppStream 2.0 to your Active Directory domain, you can access Active Directory resources, use Group Policy settings, stream applications that require authentication, and apply enterprise compliance and security policies. Currently, Linux fleets and image builders do not support domain join.

read more
Amazon Web Services (AWS)

Fleet Auto Scaling for Amazon AppStream 2.0

https://docs.aws.amazon.com/appstream2/latest/developerguide/autoscaling.htm

Fleet Auto Scaling for Amazon AppStream 2.0 allows users to adjust the size of their AppStream 2.0 Mas-On or On-Demand fleets to match the supply of instances to user demand. The size of the fleet determines the number of concurrent users who can stream. Fleet Auto Scaling uses Application Auto Scaling, and requires permission to access Amazon CloudWatch alarms and AppStream 2.0 fleets. Users can manage fleet scaling using the AppStream 2.0 console or the AWS CLI. To use Fleet Auto Scaling, users must understand concepts such as minimum capacity, maximum capacity, desired capacity, scaling policy action, scaling policy condition, and scaling policy metric. To set a fleet scaling policy, users can edit existing policies or add new policies in the AppStream 2.0 console. The Fleet Usage tab can be used to monitor the effects of scaling policy changes.

read more
Amazon Web Services (AWS)

Active Directory Group Membership Based AppStream 2.0 Application Targeting

https://aws.amazon.com/blogs/desktop-and-application-streaming/active-directory-group-membership-based-appstream-2-0-application-targeting/

This tutorial explains how to target applications in Amazon AppStream 2.0 to end users based on their Active Directory group membership. The tutorial assumes that the customer has an existing Microsoft Active Directory forest and an AppStream 2.0 Image Builder joined to the Microsoft Active Directory. The customer needs to have dynamic link libraries (DLLs) created before proceeding with the steps. The tutorial walks through the process of enabling the dynamic application provider on an AppStream 2.0 Image Builder, implementing a PowerShell script, creating a CSV file containing the required application information, and optionally configuring the solution to host the CSV file in Amazon S3 or use an Amazon DynamoDB table for storing application information. The solution uses the dynamic app provider in AppStream 2.0 and the PowerShell script to dynamically add applications to the AppStream 2.0 catalog based on the end user’s Active Directory group membership.

read more
Amazon Web Services (AWS)

Add Your Custom Branding to Amazon AppStream 2.0

  • https://docs.aws.amazon.com/appstream2/latest/developerguide/branding.html
  • Amazon AppStream 2.0 allows you to customize the appearance of the streaming application catalog page with your own branding images, text, and website links. The customization options include an organization logo, website links, color theme, page title, favicon, redirect URL, and feedback URL. The branding elements can be configured in the AppStream 2.0 console. The custom branding is not available for the user pool sign-in portal or for the email notifications sent to user pool users. The maximum size and dimensions for images and text are specified in the branding options. The color theme palettes include red, light blue, blue, and pink. You can preview your branding changes by applying them to a test stack before deploying to a production stack.
read more
1 2 3
Page 2 of 3