-
Notifications
You must be signed in to change notification settings - Fork 464
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for profile with credentials file
- Loading branch information
1 parent
3654529
commit f5793fa
Showing
11 changed files
with
6,521 additions
and
1,178 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"singleQuote": false, | ||
"arrowParens": "always", | ||
"trailingComma": "all", | ||
"printWidth": 120, | ||
"bracketSpacing": true, | ||
"semi": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Configure AWS Credentials add new profile if credentials file already exists 1`] = ` | ||
"[default] | ||
aws_access_key=STS-AWS-ACCESS-KEY-ID | ||
aws_secret_access_key=STS-AWS-SECRET-ACCESS-KEY | ||
aws_session_token=STS-AWS-SESSION-TOKEN | ||
=true | ||
[test-profile] | ||
aws_access_key_id=STS-AWS-ACCESS-KEY-ID | ||
aws_secret_access_key=STS-AWS-SECRET-ACCESS-KEY | ||
aws_session_token=STS-AWS-SESSION-TOKEN | ||
role_session_name=GitHubActions | ||
" | ||
`; | ||
|
||
exports[`Configure AWS Credentials add new profile if credentials file already exists 2`] = ` | ||
"[profile default] | ||
region=fake-region-1 | ||
=true | ||
[profile test-profile] | ||
region=fake-region-1 | ||
" | ||
`; | ||
|
||
exports[`Configure AWS Credentials add new profile if credentials file already exists 3`] = ` | ||
"[default] | ||
aws_access_key=STS-AWS-ACCESS-KEY-ID | ||
aws_secret_access_key=STS-AWS-SECRET-ACCESS-KEY | ||
aws_session_token=STS-AWS-SESSION-TOKEN | ||
=true | ||
[test-profile] | ||
aws_access_key_id=STS-AWS-ACCESS-KEY-ID | ||
aws_secret_access_key=STS-AWS-SECRET-ACCESS-KEY | ||
aws_session_token=STS-AWS-SESSION-TOKEN | ||
role_session_name=GitHubActions | ||
" | ||
`; | ||
|
||
exports[`Configure AWS Credentials only role arn and region provided to use GH OIDC Token 1`] = ` | ||
"testpayload=true | ||
[test-profile] | ||
aws_access_key_id=STS-AWS-ACCESS-KEY-ID | ||
aws_secret_access_key=STS-AWS-SECRET-ACCESS-KEY | ||
aws_session_token=STS-AWS-SESSION-TOKEN | ||
role_session_name=GitHubActions | ||
" | ||
`; | ||
|
||
exports[`Configure AWS Credentials only role arn and region provided to use GH OIDC Token 2`] = ` | ||
"testpayload=true | ||
[profile test-profile] | ||
region=fake-region-1 | ||
" | ||
`; | ||
|
||
exports[`Configure AWS Credentials only role arn and region provided to use GH OIDC Token 3`] = ` | ||
"testpayload=true | ||
[test-profile] | ||
aws_access_key_id=STS-AWS-ACCESS-KEY-ID | ||
aws_secret_access_key=STS-AWS-SECRET-ACCESS-KEY | ||
aws_session_token=STS-AWS-SESSION-TOKEN | ||
role_session_name=GitHubActions | ||
" | ||
`; | ||
|
||
exports[`Configure AWS Credentials use profile and save credentials file 1`] = ` | ||
"testpayload=true | ||
[test-profile] | ||
aws_access_key_id=STS-AWS-ACCESS-KEY-ID | ||
aws_secret_access_key=STS-AWS-SECRET-ACCESS-KEY | ||
aws_session_token=STS-AWS-SESSION-TOKEN | ||
role_session_name=GitHubActions | ||
" | ||
`; | ||
|
||
exports[`Configure AWS Credentials use profile and save credentials file 2`] = ` | ||
"testpayload=true | ||
[profile test-profile] | ||
region=fake-region-1 | ||
" | ||
`; | ||
|
||
exports[`Configure AWS Credentials use profile and save credentials file 3`] = ` | ||
"testpayload=true | ||
[test-profile] | ||
aws_access_key_id=STS-AWS-ACCESS-KEY-ID | ||
aws_secret_access_key=STS-AWS-SECRET-ACCESS-KEY | ||
aws_session_token=STS-AWS-SESSION-TOKEN | ||
role_session_name=GitHubActions | ||
" | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.