serverless/serverless

Fn::Join is not allowed on role

Aperta

#4916 aperta il 18 apr 2018

 (8 commenti) (18 reazioni) (0 assegnatari)JavaScript (5734 fork)batch import
cat/aws-iamenhancementhelp wanted

Metriche repository

Star
 (46.915 stelle)
Metriche merge PR
 (Merge medio 1g 15h) (34 PR mergiate in 30 g)

Descrizione

This is a Feature Proposal

Description

Currently Fn::Join is not supported on the role node. Code For feature proposals:

  • What is the use case that should be solved. The more detail you describe this in the easier it is to understand for us.

I would like to be able to Ref: AccountId and build a role arn with Fn::Join. Currently it looks like only Fn::ImportValue and Fn::GetAtt are supported.

role:
  Fn::Join:
    - ""
    - -  "arn:aws:iam::"
      - Ref: AWS::AccountId
      - ":role/MyRoleName"

If we agree this is a good feature to implement I would be happy to submit a PR as it looks like the code required is minimal and fairly straight forward.

Guida contributor