Skip to content

Instantly share code, notes, and snippets.

RobertoSchneiders /
Last active Jul 14, 2022
IAM Policy for deploy on Elastic Beanstalk

I am deploying with this IAM using Codeship and Circle CI to Elastic Beanstalk. I had a lot of trouble with this config. I talked to the aws support for about 6 hours until this worked properly, so, I guess it is worth to share.

UPDATE: In the end, I have to use the AWSElasticBeanstalkFullAccess policy. My custom policy keep breaking every week with some new added permission or some EB internal change. Anyway, the IAM I was using is below.

This works for me with CircleCI and EB Cli.

    "Version": "2012-10-17",
    "Statement": [
RobertoSchneiders /
Last active Oct 26, 2021
Settings to deploy to AWS Elastic Beanstalk on CircleCi (EB Cli 3)

This is how I configured the deploy of my rails apps to AWS Elastic Beanstalk through CircleCI 1.0.

If you are using the Circle CI 2.0, take a look at this article from ryansimms

Configure Environments Variables

On Project Settings > Environment Variables add this keys:

    The aws user must have the right permissions. This can be hard, maybe, this can help you.
View docker-compose.yml
version: '3.3'
image: mysql:5.7
restart: always
RobertoSchneiders / sidekiq.config
Created Oct 9, 2015 — forked from hiattp/sidekiq.config
Sidekiq Config for Elastic Beanstalk
View sidekiq.config
# Sidekiq interaction and startup script
mode: "000755"
content: |
. /opt/elasticbeanstalk/hooks/
. /opt/elasticbeanstalk/support/envvars
RobertoSchneiders /
Last active Jun 15, 2018
RubyCritic CI Script
# Ruby Critic Threshold
# Run rubycritic analysis with json format
result="$(rubycritic app lib config -f json)"
if [ "$exit_code" != "0" ]; then
RobertoSchneiders / stop_all.bat
Created May 23, 2016
Para todos os serviços do windows com um determinado nome
View stop_all.bat
wmic service where "name like 'MondeServer%'" call stopservice
RobertoSchneiders /
Created May 22, 2016 — forked from joakimk/
CircleCI elixir build example

This runs a build for a small elixir (phoenix) project in about 40 seconds by caching as much of the compiled files as possible.

We've been using this for months in multiple projects without any issues. Please ping be if there is any issues with this script and I'll update it.

It should be generic enough to work on any elixir app using mix.

If you have a elixir_buildpack.config, then enable that section in the build script to keep versions in sync!

RobertoSchneiders /
Created May 21, 2016 — forked from jimsynz/
I use this to install Elixir on Codeship.
# I use this to install Elixir on our codeship instances for testing. YMMV.
# curl -O
# . ~/
# You can override your Elixir and Erlang versions from your shell when you call ./
RobertoSchneiders / gist:6979062
Created Oct 14, 2013
PersistenciaParceiroSysmoService JSON
View gist:6979062
"id": null,
"bloqueado": 0,
"codigo": "666666",
"nome": "Escritorio Contabil 6",
"email": "",
"bases": null,
"modulosSistema": [
"id": 1,
RobertoSchneiders / gist:6699342
Created Sep 25, 2013
retorno de AquisicaoClientesSysmoService
View gist:6699342
"id": 1,
"bloqueado": 0,
"codigo": "1234",
"nome": "Conta Oeste Ltda",
"bases": [
"id": 1,
"nome": "Primeira Base"