diff --git a/src/braket/aws/aws_qpu.py b/src/braket/aws/aws_qpu.py index 3fc0f82ee..835612b61 100644 --- a/src/braket/aws/aws_qpu.py +++ b/src/braket/aws/aws_qpu.py @@ -129,7 +129,6 @@ def _aws_session_for_qpu(self, qpu_arn: str, aws_session: AwsSession) -> AwsSess aws_access_key_id=creds.access_key, aws_secret_access_key=creds.secret_key, aws_session_token=creds.token, - profile_name=aws_session.boto_session.profile_name, region_name=qpu_regions[0], ) return AwsSession(boto_session=boto_session) diff --git a/test/unit_tests/braket/aws/test_aws_qpu.py b/test/unit_tests/braket/aws/test_aws_qpu.py index 06b7141d9..4ffa94dd0 100644 --- a/test/unit_tests/braket/aws/test_aws_qpu.py +++ b/test/unit_tests/braket/aws/test_aws_qpu.py @@ -93,12 +93,11 @@ def test_aws_session_in_another_qpu_region( AwsQpu(arn, different_region_aws_session) - # assert creds, profile, and region were correctly supplied + # assert creds, and region were correctly supplied boto_session_init.assert_called_with( aws_access_key_id=creds.access_key, aws_secret_access_key=creds.secret_key, aws_session_token=creds.token, - profile_name=different_region_aws_session.boto_session.profile_name, region_name=region, )