Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Iopz 2276 update create k8s chained sessions script #14

Merged
merged 1 commit into from
Mar 28, 2024

Conversation

chornbec
Copy link
Contributor

@chornbec chornbec commented Mar 28, 2024

This change updates and renames the create-k8s-chained-sessions.sh script to create-chained-sessions.sh after including chained sessions that relate to the DB AWS accounts. These new chained sessions will be used for the new start-db-bastion command, which starts SSM sessions using these new leapp sessions to connect to Bastion hosts in the DB AWS accounts.

This script was tested by running it in playground and playground-2 after I applied TF changes to the IAM roles from this PR

parent_role_name=$2
iam_role_scope=$3
persona_name=$4
service_name=$2
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is yet another ordered arg, but I figured we don't care about adding another arg since this function is called within the script at the bottom.

@@ -15,15 +15,16 @@ declare REGION='us-east-1'
# Args:
# 1: name of environment ("playground", "staging", etc.)
# 2: sso role name to use for the parent session
# 3: scope of the IAM role ("panorama" or "eks").
# 3: scope of the IAM role ("panorama" or "eks" or "rds").
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

service_name arg is missing up here and numbers are wrong now

This change updates and renames the create-k8s-chained-sessions.sh
script to create-chained-sessions.sh after including chained
sessions that relate to the DB AWS accounts. These new chained
sessions will be used for the new start-db-bastion command, which
starts SSM sessions using these new leapp sessions to connect to
Bastion hosts in the DB AWS accounts.
@chornbec chornbec force-pushed the IOPZ-2276-update-create-k8s-chained-sessions-script branch from 51e32db to 121f4d1 Compare March 28, 2024 18:45
@chornbec chornbec merged commit fee6931 into main Mar 28, 2024
2 checks passed
@chornbec chornbec deleted the IOPZ-2276-update-create-k8s-chained-sessions-script branch March 28, 2024 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants