### Is there an existing issue for this?

- [X] I have searched the existing issues

### Enhancement description

AWS Lambda recently added support for Java 17 as managed runtime:
https://aws.amazon.com/about-aws/whats-new/2023/04/aws-lambda-java-17/



### 🧑‍💻 Implementation

_No response_

### Anything else?

_No response_
)
        snapshot.match("create-fn-response", create_response)
        response = aws_client.awslambda.get_function(FunctionName=function_name)
        snapshot.match("get-fn-response", response)
    @pytest.mark.skipif(
        is_old_provider(), reason="Credential injection not supported in old provider"
    )
    @pytest.mark.aws_validated
    def test_lambda_different_iam_keys_environment(
        self, lambda_su_role, create_lambda_function, snapshot, aws_client
    ):
        """
        In this test we want to check if multiple lambda environments (= instances of hot functions) have
        different AWS access keys
        """
        function_name = f"fn-{short_uid()}"
        create_result = create_lambda_function(
            func_name=function_name,
            handler_file=TEST_LAMBDA_SLEEP_ENVIRONMENT,
            runtime=Runtime.python3_8,
            role=lambda_su_role,
        )
        snapshot.match("create-result", create_result)
        
        def _invoke_lambda(*args):
            result = aws_client.awslambda.invoke(
                FunctionName=function_name, Payload=to_bytes(json.dumps({"sleep": 2}))
            )
            return json.loads(to_str(result["Payload"].read()))["environment"]
        def _transform_to_key_dict(env: Dict[str, str]):