I have created an API using AWS SAM and Golang. This API is using an private module, both repos are present on codecommit. My buildspec.yml file is like this :