Skip to content

Instantly share code, notes, and snippets.

View pabse's full-sized avatar

Sebastian Menhofer pabse

  • Stampay GmbH
  • Germany
View GitHub Profile
@pabse
pabse / policy.json
Created April 27, 2021 11:03
IAM poliy for lambda deployment with SAM CLI
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "IAM",
"Effect": "Allow",
"Action": [
"iam:GetRole",
"iam:PassRole"
],
@pabse
pabse / deploy.rb
Created February 13, 2018 16:14 — forked from tyler-boyd/deploy.rb
Compile assets locally with Capistrano 3.8.1 and Rails 5.1.1
# Clear existing task so we can replace it rather than "add" to it.
Rake::Task["deploy:compile_assets"].clear
namespace :deploy do
desc 'Compile assets'
task :compile_assets => [:set_rails_env] do
# invoke 'deploy:assets:precompile'
invoke 'deploy:assets:precompile_local'
invoke 'deploy:assets:backup_manifest'