### 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_
hostname_external = f"external-host-{short_uid()}"
    
    
    
    
    
    
    #
    
    
    #
    
    
    localstack_hostname = socket.gethostname()
    monkeypatch.setattr(config, "HOSTNAME_EXTERNAL", hostname_external)
    monkeypatch.setattr(config, "LOCALSTACK_HOSTNAME", localstack_hostname)
    def asserter(