Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validate IAM path starts and stops with a / #3020

Open
2 tasks done
kddejong opened this issue Jan 19, 2024 · 1 comment
Open
2 tasks done

Validate IAM path starts and stops with a / #3020

kddejong opened this issue Jan 19, 2024 · 1 comment
Labels
v1 v1.X

Comments

@kddejong
Copy link
Contributor

Is this feature request related to a new rule or cfn-lint capabilities?

No response

Describe the feature you'd like to request

Validate IAM path starts and ends with a /

Describe the solution you'd like

Validate IAM path starts and ends with a /

Additional context

The specified value for path is invalid. It must begin and end with / and contain only alphanumeric characters and/or / characters

Template:

RootRole:
    Type: 'AWS::IAM::Role'
    Properties:
      AssumeRolePolicyDocument:
        Version: "2012-10-17"
        Statement:
          - Effect: Allow
            Principal:
              Service:
                - ec2.amazonaws.com
            Action:
              - 'sts:AssumeRole'
      Path: /root
      RoleName: root
      Policies:
        - PolicyName: root
          PolicyDocument:
            Version: "2012-10-17"
            Statement:
              - Effect: Allow
                Action: '*'
                Resource: '*'

Is this something that you'd be interested in working on?

  • 👋 I may be able to implement this feature request

Would this feature include a breaking change?

  • ⚠️ This feature might incur a breaking change
@kddejong kddejong added the v1 v1.X label Jan 21, 2024
@kddejong
Copy link
Contributor Author

This is fixed in v1 using json schema pattern

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v1 v1.X
Projects
None yet
Development

No branches or pull requests

1 participant