-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* This allows external (Non SSO Org accounts) to be initialised, bootstrapped and infrastructure deployed. * When initialising an external account, it prompts the user to manually add a Role in the External account, with the required Trust Relationship provided. The Role name will be `<main-dalmatian-account-id>-dalmatian-access`. * When generating the configuration, a profile will be added that uses the main dalmatian profile as a source profile, and the role arn of the role created in the External account. This creats an authentication flow of SSO Login -> Dalmatian Main -> External Account
- Loading branch information
Showing
3 changed files
with
88 additions
and
10 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
set -e | ||
set -o pipefail | ||
|
||
# Dalmatian specific function | ||
# Appends a profile which assumes a role to the | ||
# configuration file | ||
function append_sso_config_file_assume_role { | ||
config_file="$1" | ||
profile_name="$2" | ||
source_profile="$3" | ||
role_arn="$4" | ||
|
||
cat <<EOT >> "$config_file" | ||
[profile $profile_name] | ||
source_profile = $source_profile | ||
role_arn = $role_arn | ||
EOT | ||
} |