Amazon AWS

Amazon AWS

Contents:

Access a Windows EC2 Machine Through Windows Firewall

Please find below article which explains in details on what steps needs to be followed.
To Access an windows EC2 machine which has windows Firewall "ON"
Please follow the steps mentioned below to access an EC2 machine with Firewall "ON"
Step1:
Login to the EC2 machine with the username and password. Once logged in successfully navigate to Control Panel\System and Security and click "Windows Firewall".

Step 2:
Once the user has navigated inside "Windows Firewall", on the left handside user will have an option named "Advanced Settings" click that.

Step 3:
Once the user has navigated to Advanced settings, User should click "Inbound Rule" and on the right hand side user should get an option to create a "New Rule" and clicks on it

Step 4:
User Clicks on "Custom rule" and clicks on Next

Step 5:
User selects on " All Programs" and clicks on Next

Step 6:
User chooses the "Protocol Type" from the dropdown. In our case we will be opting for "TCP" since we need to access application over internet. Also User can also select ports for which this rule can be applied(For Ex: if we select 80, user can only access port 80 and so on). After making the changes the user clicks on next

Step 7:
User clicks on the "Add" under "which remote IP address needs to be added. User should also need to know what public IP address is. User obtains the Public IP address and enters it and clicks on Next.

Note: After the IP address, you don't specify "/0". If you do, every computer in the world would have access to that port. To restrict access to a single address specify "/32" after the IP. (If you want to know why, read the following article: http://en.wikipedia.org/wiki/CIDR.)
Step 8:
User clicks on allowing the connection and clicks on next

Step 9:
User does not make any changes in this step and click "Next".


Step 10:
User enters a name for this rule and clicks on Finish.

User Verifies whether the rule has been added under Firewall

User tries to access the below
URL :http://EC2 URL:8080/Appvance/login.html
User should be able to navigate to the URL successfully




Last updated: July 28, 2023

If you have any feedback on this topic, please contact us at documentation@appvance.ai

Amazon EC2 Instance has no public DNS assigned to it

Please follow the below steps to add dns hostnames to your EC2 Instances.

Hope this helps.


Last updated: October 15, 2026

If you have any feedback on this topic, please contact us at documentation@appvance.ai

Readiness outcome

Complete the checklist before installation begins and record any exception with an owner and remediation date. Keep platform requirements separate from procedural readiness so changes to hosts, certificates, credentials, or integrations can be reviewed without losing the deployment baseline.

Attaching an Amazon EBS Volume to an Windows Instance

Attaching an Amazon EBS Volume to an Windows Instance.
You can attach an EBS volume to one of your instances that is in the same Availability Zone as the volume.
Prerequisites

To attach an EBS volume to an instance using the console
1. Open the Amazon EC2 console.
2. Click Volumes in the navigation pane.
3. Select a volume and then click Attach Volume.
4. In the Attach Volume dialog box, start typing the name or ID of the instance to attach the volume to in the Instance box, and select it from the list of suggestion options (only instances that are in the same Availability Zone as the volume are displayed).
5. You can keep the suggested device name, or enter a different supported device name.


Important The block device driver for the instance assigns the actual volume name when mounting the volume, and the name assigned can be different from the name that Amazon EC2 recommends.
6. Click Attach.
7. Connect to your instance and make the volume available.

Making an Amazon EBS Volume Available for Use

After you attach an Amazon EBS volume to your instance, it is exposed as a block device. You can format the volume with any file system and then mount it. After you make the EBS volume available for use, you can access it in the same ways that you access any other volume. Any data written to this file system is written to the EBS volume and is transparent to applications using the device.
Note that you can take snapshots of your EBS volume for backup purposes or to use as a baseline when you create another volume.

Making the Volume Available on Windows

Use the following procedure to make the volume available.
1.Log in to your Windows instance using Remote Desktop.
2. Start the Disk Management utility. On Windows Server 2012, on the taskbar, right-click the Windows logo, and then select Disk Management. On Windows Server 2003/2008, click Start, point to Administrative Tools, select Computer Management, and then select Disk Management.
3. Select the disk that represents the new EBS volume.


4UXqvu6ACiTSrtyN-ce1029bbaf1a.png


4. On the Disk Management menu, select Action - All Tasks - Online.


2gG0lRZHkpLrveO6-fe9f17877a74.png


5. A new disk needs to be initialized before it can be used.
Caution:
If you're mounting a volume that already has data on it (for example, a public data set), make sure that you don't reformat the volume and delete the existing data.
To initialize a new disk:
a. In the Disk Management utility, select the new EBS volume disk.
b. On the Disk Management menu, select Action - All Tasks - Initialize Disk. Attaching Volume to the instance Page 4
c. In the Initialize Disk dialog, select the disk to initialize, select the desired partition style, and press OK.
Restart your Amazon Instance.


Last updated: October 16, 2026

If you have any feedback on this topic, please contact us at documentation@appvance.ai

Best Practices: Running Appvance IQ testing using EC2 cloud file

The Best Practices that needs to be followed are below:


Last updated: June 02, 2023

If you have any feedback on this topic, please contact us at documentation@appvance.ai

Creating EC2 instances

via Scenario Builder and running the tests, the first run's response times are on a higher side compared to consecutive runs by using the instances that are already running

Creating EC2 instances via Scenario Builder and running the tests, the first run's (where Appvance IQ creates requested instances from the Scenario builder using an AMI) response times are on a higher side compared to consecutive runs by using the instances that are already running.

AWS has a lazy start up, only required part of the hard disk is copied from the AMI to the run time hard disk.

Because of this, the machine starts up very fast, but accessing some parts of the hard disk could be very slow.

This affects Appvance IQ during the first scenario execution. The response times reported could be on the higher side.

Amazon provides a workaround which is reading the hard disk, in order to avoid this slowness during production.

Nevertheless the proposed solution is for Linux platform only.

Amazon documentation is located here.

http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-initialize.html

Appvance IQ now has the capability to read the hard disk the first time the machine is created (This is for windows platforms)

This will be done just the first time the AMI is created.

Note: Still there could be little difference in the response times when the test is started for the first time to create instance and run the scenario than compared to the subsequent scenario runs using the same started instance.


Last updated: June 02, 2023

If you have any feedback on this topic, please contact us at documentation@appvance.ai

Use AWS Reserved Instances for AIQ Infrastructure

AWS Reserved Instances can reduce infrastructure cost for stable AIQ workloads, but they should be planned with finance, cloud operations, and environment owners. Do not reserve capacity without confirming usage, region, instance family, term, and ownership.

Before reserving

Operational guidance

  1. Track which AIQ environments are intended to consume the reservation.
  2. Review utilization regularly to avoid unused commitment.
  3. Document renewal dates and ownership.
  4. Re-evaluate reservations before AIQ upgrades, scaling changes, or cloud architecture changes.

Last updated: October 6, 2026

Supported Instance Types

What are the Instance types that are supported from Amazon EC2 that can be used in Appvance to run tests?

Following are the list of supported Instance Types.


Last updated: March 25, 2024

If you have any feedback on this topic, please contact us at documentation@appvance.ai

Changing your IP in the security group with aws cli.

First of all take install aws cli from this link:

https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html

Secondly, open the terminal and setup the default profile:

aws configure

insert AWS access Key ID:

insert AWS Secret Access Key:

Default region name:

Default output format: type <json>

After having to make the profile in config and credentials.

Instructions are here:

https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html

Download the script from the repository:

https://gitlab.appvance.net/Appvance/devops/patch-rules-on-aws

https://gitlab.appvance.net/Appvance/devops/patch-rules-on-aws/-/blob/master/patch_my_ruls.sh - for Unix machine.

https://gitlab.appvance.net/Appvance/devops/patch-rules-on-aws/-/blob/master/patch_my_ruls.ps1 - for Windows machine.

Go to the AWS console where your EC2 instance:

Open preferred security group:

Check marked values:

Open the file under your OS in your favorite redactor and change the value:

From now, when the IP is changed, and breaks ties with EC2 instance. Launch script it changes IP fast.

https://gitlab.appvance.net/Appvance/devops/patch-rules-on-aws/-/blob/master/patch_my_ruls.sh - for Unix.

https://gitlab.appvance.net/Appvance/devops/patch-rules-on-aws/-/blob/master/patch_my_ruls.ps1 - for Windows.


Last updated: June 26, 2023

If you have any feedback on this topic, please contact us at documentation@appvance.ai

AWS WorkSpace and Google Chrome

AWS WorkSpaces is a cloud-based virtual desktop infrastructure (VDI) service that lets users access desktop applications and data from devices with internet access. When AWS WorkSpaces is used for AIQ testing, review the browser’s third-party-cookie and Chrome policy settings.

Enable third-party cookies

Enable third-party cookies in the browser used to record and run AIQ test scenarios. AIQ tests may need to store and retrieve cookies from domains other than the domain currently open. This is important for authentication and other workflows that rely on cross-domain cookies.

For example, if the application uses a third-party identity provider, disabling third-party cookies can prevent the browser from storing the provider’s authentication cookie and cause login to fail. It can also prevent accurate simulation of workflows that depend on third-party tracking cookies.

Chrome policies

Amazon WorkSpaces supports Google Chrome, and administrators can enforce Chrome policies such as:

For AWS WorkSpaces browser-policy details, see AWS browser policies documentation.

Inspect Chrome policies

Use either of the following methods to review the policies applied to the Chrome browser in the WorkSpace.

Export policies to a text file

  1. Open a new Chrome tab.
  2. Enter chrome://policy in the address bar and press Enter.
  3. Review the policies currently applied, including user and system policies configured by your IT administrator.
  4. Select the policy text and copy it with Ctrl+C on Windows or Command+C on macOS.
  5. Paste the copied text into a text editor or another application for analysis or sharing with your IT administrator.

Export policies to a JSON file

  1. Sign in to the AWS Management Console and open the Amazon WorkSpaces console.
  2. Select the WorkSpaces directory whose Chrome policies you want to export.
  3. Open the Group Policy tab and select the group policy containing the Chrome settings.
  4. Click Edit beside the Chrome Policies section.
  5. In the Chrome policies editor, click Download.
  6. Choose a local destination and click Save.
  7. Use the JSON file to import the policies into another Amazon WorkSpaces directory or share it with IT administrators.

Last updated: October 15, 2026

If you have feedback on this topic, contact documentation@appvance.ai.

Create an AWS IAM Access Key for AIQ Integrations

To create, modify, or delete your own IAM user access keys (console)
  1. Use your AWS account ID or account alias, your IAM user name, and your password to sign in to the IAM console.

    For your convenience, the AWS sign-in page uses a browser cookie to remember your IAM user name and account information. If you previously signed in as a different user, choose Sign in to a different account near the bottom of the page to return to the main sign-in page. From there, you can type your AWS account ID or account alias to be redirected to the IAM user sign-in page for your account.

    To get your AWS account ID, contact your administrator.

  2. In the navigation bar on the upper right, choose your user name, and then choose Security credentials.

Do one of the following:

To create an access key:

  1. In the Access keys section, choose Create access key. If you already have two access keys, this button is deactivated and you must delete an access key before you can create a new one.

  2. On the Access key best practices & alternatives page, choose the Command Line Interface CLI option and then choose Next.

  3. (Optional) Set a description tag value for the access key. This adds a tag key-value pair to your IAM user. This can help you identify and rotate access keys later. The tag key is set to the access key id. The tag value is set to the access key description that you specify. When you are finished, choose Create access key.

  4. On the Retrieve access keys page, choose either Show to reveal the value of your user's secret access key, or Download .csv file. This is your only opportunity to save your secret access key. After you've saved your secret access key in a secure location, choose Done.

For more details see the Amazon AWS documentation: Managing access keys for IAM users - AWS Identity and Access Management (amazon.com)


Last updated: October 31, 2024

If you have any feedback on this topic, please contact us at documentation@appvance.ai

Set Up IAM Role Permissions for an AWS EC2 AIQ Controller

AWS Identity and Access Management (IAM) roles are entities you create and assign specific permissions to that allow trusted identities such as workforce identities and applications to perform actions in AWS.

For more information on IAM roles see the Amazon AWS documentation site: IAM Roles

  1. Create an IAM Role for the EC2 instance.

  2. Once the IAM role is created, assign the following policies to the role.

EC2 Policy

The following JSON policy, when added to the IAM EC2 Role assigned to the controller, allows the scenario executions to instantiate, start, stop and terminate EC2 test nodes.

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "VisualEditor0",
            "Effect": "Allow",
            "Action": [
                "ec2:DescribeInstances",
                "ec2:TerminateInstances",
                "ec2:DescribeTags",
                "ec2:CreateTags",
                "ec2:RunInstances",
                "ec2:StopInstances"            ],
            "Resource": "*"        }
    ]
}

S3 Policy for a given bucket

This policy will allow the AIQ controller to setup AWS S3 storages without the need to provide Access Credentials. In the JSON below replace the your-bucket-name with the bucket name you will be using for your AIQ dashboards.

This is only for AIQ release 5.2.3+.

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": [
                "s3:PutObject",
                "s3:GetObjectAcl",
                "s3:GetObject",
                "s3:ListBucket",
                "s3:DeleteObject",
                "s3:PutObjectAcl"
            ],
            "Resource": [
                "arn:aws:s3:::your-bucket-name",
                "arn:aws:s3:::your-bucket-name/*"
            ]
        }
    ]
}

Select the controller instance and assign the created Role to the controller instance using the Modify IAM role option.

Check the Security tab of the controller instance and verify that the AIM role you created is visible.


Last updated: December 04, 2024

If you have any feedback on this topic, please contact us at documentation@appvance.ai

Amazon S3 Cross-Account Repository

This document explains how a client sets up an Amazon S3 bucket in their own AWS account so that it can be used as an S3 repository by an AppvanceIQ (AIQ) Controller that is hosted in Appvance's AWS account, using AIQ's cross-account S3 mode.

Overview

In this setup:

This is the recommended pattern because the client never has to share IAM access keys/secrets with Appvance, access is scoped to a single role with only the S3 permissions needed, and the client retains full control (revocable at any time by deleting/disabling the role or its trust policy).

High-level flow

  1. Client creates an S3 bucket in their account.
  2. Client creates an IAM role in their account with a trust policy allowing the Appvance Controller's specific IAM role to assume the role, and a permissions policy scoping access to just that bucket.
  3. Client shares the Role ARN (and, if used, the External ID) with Appvance.
  4. Appvance configures the AIQ Controller's S3 repository settings to use cross-account mode with that Role ARN.
  5. At runtime, the Controller's AWS integration layer calls sts:AssumeRole, receives temporary credentials, and uses those for all S3 operations against the bucket.

Prerequisites

Step 1 — Create the S3 Bucket

  1. In the client AWS account, go to S3 → Create bucket.
  2. Choose a globally unique bucket name, e.g. clientname-aiq-repo.
  3. Select the AWS region (ideally the same or nearest region to the Appvance Controller for latency).
  4. Recommended settings:
    • Block Public Access: Keep all four options enabled (bucket should never be public).
    • Bucket Versioning: Enable (protects against accidental overwrite/delete of test artifacts).
    • Default encryption: Enable SSE-S3 (AES256), or SSE-KMS — either the AWS-managed default key (alias/aws/s3) or a customer-managed key — if the client prefers KMS-based encryption.
    • Object Ownership: Bucket owner enforced (ACLs disabled).
  5. Create the bucket.

Step 2 — Create the Cross-Account IAM Role

This role is what the AIQ Controller in the Appvance account will assume.

  1. Go to IAM → Roles → Create role.
  2. Choose Custom trust policy and enter a trust policy that allows the Appvance Controller's specific IAM role to assume this role. This is the default recommendation — Appvance provisions a dedicated controller role per customer (e.g. arn:aws:iam::650030447088:role/clientname-aiq-controller-role), and scoping the trust policy to that exact role is tighter than trusting the whole Appvance account. Example (using an External ID, recommended):

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Principal": {
        "AWS": "arn:aws:iam::650030447088:role/clientname-aiq-controller-role"
      },
      "Action": "sts:AssumeRole",
      "Condition": {
        "StringEquals": {
          "sts:ExternalId": "REPLACE_WITH_AGREED_EXTERNAL_ID"
        }
      }
    }
  ]
}

Replace clientname-aiq-controller-role with the actual Controller role ARN Appvance provides for this customer. If Appvance instead indicates the integration should trust the account as a whole (less common), use arn:aws:iam::650030447088:root as the Principal instead. Confirm the exact principal with the Appvance team before finalizing.

  1. Skip attaching AWS managed permission policies at this step — a custom least-privilege policy will be attached next.
  2. Name the role, e.g. clientname-aiq-crossaccount-role.
  3. Create the role.

Step 3 — Attach a Least-Privilege S3 Permissions Policy

Create and attach a customer-managed policy scoped to only the bucket created in Step 1.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowListBucket",
      "Effect": "Allow",
      "Action": [
        "s3:ListBucket",
        "s3:GetBucketLocation"
      ],
      "Resource": "arn:aws:s3:::clientname-aiq-repo"
    },
    {
      "Sid": "AllowObjectReadWriteDelete",
      "Effect": "Allow",
      "Action": [
        "s3:GetObject",
        "s3:PutObject",
        "s3:DeleteObject",
        "s3:GetObjectVersion",
        "s3:AbortMultipartUpload",
        "s3:ListMultipartUploadParts"
      ],
      "Resource": "arn:aws:s3:::clientname-aiq-repo/*"
    }
  ]
}

Notes:

Attach this policy to the role created in Step 2.

Step 4 — (Optional but Recommended) Restrict the Bucket Policy

In addition to the IAM role's permissions policy, add a bucket policy on the S3 bucket itself that only allows access from the specific cross-account role. This provides defense-in-depth: even if the IAM policy were ever broadened by mistake, the bucket policy still limits who can touch it.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowAIQCrossAccountRoleOnly",
      "Effect": "Allow",
      "Principal": {
        "AWS": "arn:aws:iam::CLIENT_ACCOUNT_ID:role/clientname-aiq-crossaccount-role"
      },
      "Action": [
        "s3:ListBucket",
        "s3:GetBucketLocation",
        "s3:GetObject",
        "s3:PutObject",
        "s3:DeleteObject",
        "s3:GetObjectVersion"
      ],
      "Resource": [
        "arn:aws:s3:::clientname-aiq-repo",
        "arn:aws:s3:::clientname-aiq-repo/*"
      ]
    }
  ]
}

Replace CLIENT_ACCOUNT_ID with the client's own AWS account ID.

Step 5 — Share the Connection Details with Appvance

Once the bucket, role, and policies are created, share the following with the Appvance team so the AIQ Controller can be configured:

Item

Example

Notes

Bucket name

clientname-aiq-repo

 

Bucket region

us-east-1

Must match what's configured in AIQ

Role ARN

arn:aws:iam::CLIENT_ACCOUNT_ID:role/clientname-aiq-crossaccount-role

Used by the Controller for sts:AssumeRole

External ID

REPLACE_WITH_AGREED_EXTERNAL_ID

Only if used in the trust policy

KMS Key ARN (if applicable)

arn:aws:kms:...

Required if bucket uses SSE-KMS — either the resolved default key ARN or a customer-managed key ARN

These details should be shared through a secure channel (not plaintext email), since the Role ARN plus External ID together control access to the bucket.

Step 6 — Configure the AIQ Controller (Appvance side)

On the AIQ Controller, the S3 repository is configured in cross-account mode, providing:

Internally, AIQ's AWS integration layer performs an sts:AssumeRole call against the client's role, receives short-lived temporary credentials, and uses those credentials for all S3 operations (list, get, put, delete) against the bucket — no long-lived client credentials are ever stored in the Controller.

Step 7 — Validate the Setup

  1. From the Controller, trigger a test scenario/run that writes to the S3 repo.
  2. Confirm the object appears in the client's bucket (via S3 Console or CLI: aws s3 ls s3://clientname-aiq-repo/).
  3. Confirm the Controller can list and read back existing objects from the bucket.
  4. Check CloudTrail in the client account for AssumeRole and s3:* events from the Controller to confirm access is going through the intended role.

Security Recommendations

Troubleshooting

Symptom

Likely Cause

Fix

AccessDenied on AssumeRole

Trust policy principal or External ID mismatch

Confirm the exact Principal ARN Appvance uses, and that the External ID matches exactly on both sides

AccessDenied on S3 operations after successful AssumeRole

IAM policy or bucket policy too narrow (wrong bucket name/prefix)

Verify Resource ARNs in both the role's permissions policy and the bucket policy match the actual bucket/prefix

Objects upload but can't be read back

KMS permissions missing on the cross-account role — this applies to both customer-managed keys and the AWS-managed default key (alias/aws/s3)

Add kms:Decrypt/kms:GenerateDataKey/kms:DescribeKey to the role's IAM policy scoped to the resolved key ARN, and for customer-managed keys also add the role as a key user in the KMS key policy

Intermittent ExpiredToken errors

Temporary credentials from AssumeRole expired mid-operation on long-running jobs

Confirm the Controller's AWS SDK layer is refreshing/re-assuming the role rather than caching credentials indefinitely

FAQ

Is IMDSv1 required on the client side for this setup?

No. Neither IMDSv1 nor IMDSv2 is required in the client's AWS account for this integration, and clients can safely leave IMDSv1 disabled.

This setup does not involve any EC2 instances running in the client's AWS account. It consists entirely of an IAM role, a trust policy, an S3 bucket policy, and STS AssumeRole calls initiated from the Appvance side. The AIQ Controller runs in Appvance's AWS account (650030447088) and calls sts:AssumeRole against the client's role to obtain temporary credentials — no compute resource in the client's account is ever involved, so there is no instance in the client's environment that would query the Instance Metadata Service (IMDS) as part of this flow.

Whatever IMDS credential-fetching occurs for the Controller itself happens on Appvance's own EC2 instance, in Appvance's own AWS account, and is entirely independent of and invisible to the client's environment.

For a client's security review: AWS's current guidance favors IMDSv2-only (with IMDSv1 disabled) as the more secure default, since it protects against SSRF-based credential theft. Leaving IMDSv1 off is aligned with AWS best practice, not against it.

This answer is scoped specifically to the S3 cross-account repository integration described in this document. If a client is also running other AIQ components inside their own AWS account — for example, self-hosted TestNodes or agents on their own EC2 instances — those are separate compute resources with their own IMDS considerations, unrelated to this S3 cross-account setup.

Summary

The client only needs to create an S3 bucket, an IAM role with a scoped trust + permissions policy, and share the Role ARN (and External ID) with Appvance. No credentials ever leave the client's account — the AIQ Controller in Appvance's AWS account (650030447088) uses temporary, audit-able STS credentials obtained by assuming that role, keeping the client in full control of their own data at all times.