AWS CLI Toolsfrom the Admin Portal.
- Unzip the file into a new folder.
Windows PowerShell for AWSas an administrator.
Set-ExecutionPolicy Unrestrictedto enable the scripts.
[System.Net.ServicePointManager]::SecurityProtocoland check for
TLS12in the resulting output. If there no
TLS12in the protocol list, run the following commands.
$AllProtocols = [System.Net.SecurityProtocolType]'Ssl3,Tls,Tls11,Tls12' [System.Net.ServicePointManager]::SecurityProtocol = $AllProtocols
- If you are working behind a proxy server, run the following commands to enable your Powershell session to use proxy credentials.
$webclient=New-Object System.Net.WebClient $creds=Get-Credential $webclient.Proxy.Credentials=$creds
- Navigate to the
aws-cli-utilities-master\AWS Powershell - Idaptive v1folder that was previously unzipped and run the following command, replacing the tenant variable as needed:
.\Authenticate.ps1 –Tenant <Tenant.idaptive.app> -Location “\absolute_path\aws\credentials”
Locationparameters are optional
Tenantby default points to
- Default AWS region needs to be set using a different command. See step 14.
Locationspecifies the absolute path of the AWS credentials file
- If location is not specified, the default location
- Enter your Idaptive credentials for authentication.
Credentials may be a MFA per user configuration.
- Once authenticated, all authorized AWS applications are listed.
- Choose an application by entering the number of the application.
- Running an application will generate a SAML. The SAML will be posted to AWS for its credentials.
- Choose an AWS role.
- If the inputs are correct, the AWS credentials will be saved in the profile
<ProfileName>to run AWS commands. For example:
Get-S3Bucket -ProfileName <ProfileName>
- To set your default region, use the following AWS commands.
Set-DefaultAWSRegion -Region <region> Where region = us-east-1, us-west-1 etc.
Updated 7 months ago