Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
fireflycons committed Jan 12, 2020
1 parent 146dba6 commit 653c1fd
Show file tree
Hide file tree
Showing 3 changed files with 99 additions and 1 deletion.
8 changes: 8 additions & 0 deletions aws-toolbox/Public/IAM/Set-ATIAMCliExternalCredentials.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ function Set-ATIAMCliExternalCredentials
.PARAMETER CliProfileName
Name of profile to create in CLI credentials file. If omitted, then the name
passed to ProfileName will be used.
.EXAMPLE
Set-ATIAMCliExternalCredentials -ProfileName MySamlProfile
Creates an AWS CLI external credential profile named 'MySamlProfile' that maps onto the PowerShell profile named 'MySamlProfile'
.EXAMPLE
Set-ATIAMCliExternalCredentials -ProfileName MySamlProfile -CliProfileName MyCliSamlProfile
Creates an AWS CLI external credential profile named 'MyCliSamlProfile' that maps onto the PowerShell profile named 'MySamlProfile'
#>
[CmdletBinding()]
param
Expand Down
87 changes: 87 additions & 0 deletions docs/en-US/Set-ATIAMCliExternalCredentials.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
---
external help file: aws-toolbox-help.xml
Module Name: aws-toolbox
online version: https://github.com/fireflycons/aws-toolbox/tree/master/docs/en-US/Set-ATCFNStackProtectionPolicy.md
schema: 2.0.0
---

# Set-ATIAMCliExternalCredentials

## SYNOPSIS
Configue aws-toolbox as an AWS CLI Credential Process

## SYNTAX

```
Set-ATIAMCliExternalCredentials [[-CliProfileName] <String>] -ProfileName <String> [<CommonParameters>]
```

## DESCRIPTION
This cmdlet maps a PowerShell stored profile into the AWS CLI credential file
as a provider of external credentials.
This is useful to get AWS CLI to use a
saved SAML profile when e.g.
you use Active Directory integration to authenticate
with AWS

## EXAMPLES

### EXAMPLE 1
```
Set-ATIAMCliExternalCredentials -ProfileName MySamlProfile
```

Creates an AWS CLI external credential profile named 'MySamlProfile' that maps onto the PowerShell profile named 'MySamlProfile'

### EXAMPLE 2
```
Set-ATIAMCliExternalCredentials -ProfileName MySamlProfile -CliProfileName MyCliSamlProfile
```

Creates an AWS CLI external credential profile named 'MyCliSamlProfile' that maps onto the PowerShell profile named 'MySamlProfile'

## PARAMETERS

### -CliProfileName
Name of profile to create in CLI credentials file.
If omitted, then the name
passed to ProfileName will be used.

```yaml
Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -ProfileName
Name of PowerShell stored profile to use
```yaml
Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
## INPUTS
## OUTPUTS
## NOTES
## RELATED LINKS
5 changes: 4 additions & 1 deletion docs/en-US/aws-toolbox.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,7 @@ Use SSM to set up an admin user on one or more Windows instances
Set configurable items for this module

### [Invoke-ATDiffTool](Invoke-ATDiffTool)
Runs the configured diff tool on a pair of files
Runs the configured diff tool on a pair of files

### [Set-ATIAMCliExternalCredentials](Set-ATIAMCliExternalCredentials.md)
Configue aws-toolbox as an AWS CLI Credential Process

0 comments on commit 653c1fd

Please sign in to comment.