I use this plugin instead to deploy: addSbtPlugin("no.arktekk.sbt" % "aether-deploy" % "0.28.0")
Same info as above with credentials and resolvers and publishTo entries
sbt aetherDeploy -Dmaven.resolver.transport=wagon -Dhttps.protocols=TLSv1.2
Reference: https://repost.aws/questions/QUifX6-q7zSfuMq1aGlhwZnA/codeartifact-push-timing-out
Supposedly they updated CodeArtifact but this has continued to work so I leave well enough alone here.