Formatting
This commit is contained in:
@@ -582,7 +582,9 @@ class AWSCloudProvider(CloudProviderInterface):
|
|||||||
# Possibilities:
|
# Possibilities:
|
||||||
# - construct ARN ourselves (should be deterministic) and poll for it, possiblity with a waiter
|
# - construct ARN ourselves (should be deterministic) and poll for it, possiblity with a waiter
|
||||||
# - poll a list_roles endpoint and search for the role name
|
# - poll a list_roles endpoint and search for the role name
|
||||||
role_arn = f"arn:aws:iam::{csp_environment_id}:role/{self.root_account_policy_name}"
|
role_arn = (
|
||||||
|
f"arn:aws:iam::{csp_environment_id}:role/{self.root_account_policy_name}"
|
||||||
|
)
|
||||||
sts_client = self._get_client("sts", credentials=auth_credentials)
|
sts_client = self._get_client("sts", credentials=auth_credentials)
|
||||||
assumed_role_object = sts_client.assume_role(
|
assumed_role_object = sts_client.assume_role(
|
||||||
RoleArn=role_arn, RoleSessionName="AssumeRoleSession1"
|
RoleArn=role_arn, RoleSessionName="AssumeRoleSession1"
|
||||||
|
Reference in New Issue
Block a user