- First you should have admin privileges in BitBucket account.
- Signup to CircleCI through BitBucket account and setup project through CirclCI Add Projects Tab for the repository you are working with.
- Then setup build configuration through committing a .circleci/config.xml in your repository to be built.
- After build, to deploy the output files to AWS EC2, use the way as followed in aws_ssh_connectivity
This is the way I followed. I would request CirclCI developers to suggest better way if any.