This can be an issue with the region you are currently trying to work with CodeDeploy. I was trying to work with ap-south-2 region but it was consistently disabled regardless of efforts. I tried switching to ap-south-1 and it worked without any other effort.