rubyonjets / jets

Ruby on Jets
http://rubyonjets.com
MIT License
2.6k stars 181 forks source link

Long controller names may break deployment with error "Value 'X' at 'roleName' failed to satisfy constraint: Member must have length less than or equal to 64" #160

Closed genail closed 5 years ago

genail commented 5 years ago

Hey @tongueroo , When IAM role is generated, it is using project name + controller name to build IAM role name, but there's a 64 character constraint on it by AWS, so deployment may fail with a message like this:

1 validation error detected: Value 'patchkit-app-catalog-dev-catalogs-apps-screenshots-controller-role' at 'roleName' failed to satisfy constraint: Member must have length less than or equal to 64 (Service: AmazonIdentityManagement; Status Code: 400; Error Code: ValidationError; Request ID: 8924cd64-1be2-11e9-8391-5d4c146a6728)

Checklist

Code Sample

# I believe this one should reproduce it
class Catalogs::Apps::ScreenshotsWithReallyLongNameController < ApplicationController
end

Solution Suggestion

Either way:

tongueroo commented 5 years ago

Addressed in #161 Fixed a couple of issues:

Released in v1.6.0 CHANGELOG