Comments (5)
Could you share an example template that crashes the tool? The issue will most likely be in pycfmodel not cfripper, but we maintain both.
from cfripper.
Sure @jsoucheiron
AWSTemplateFormatVersion: '2010-09-09'
Transform: 'AWS::Serverless-2016-10-31'
Parameters:
Token:
Description: 'Token'
Type: 'AWS::SSM::Parameter::Value<String>'
Default: '/some/path'
ProjectName:
Type: String
Environment:
Type: String
Globals:
Function:
Tags:
Env:
Ref: Environment
Project:
Ref: ProjectName
Resources:
...
...
...
As soon as I remove the Globals, it works.
from cfripper.
I'm afraid this is not a CloudFormation template, but a SAM template. pycfmodel (and by extension CFRipper) does not support SAM. It should be possible to extend them to support it, but we don't use it and it'd be hard for us to do it.
from cfripper.
Detected the issue is with pycfmodel
not being capable of understanding SAM CF templates. I've started to fix this in: Skyscanner/pycfmodel#118
But it might require more time than expected.
from cfripper.
Thanks @jsoucheiron
what I did is remove the Global section from the template
Globals:
Function:
Tags:
Env:
Ref: Environment
Project:
Ref: ProjectName
then I can see the normal warnings that cfripper founds in the template. Just to let you know.
I will open a new issue since I'm playing with the tool a little, hope you don't mind!
from cfripper.
Related Issues (20)
- Unhandled exception when template file is empty HOT 1
- Method add_warning of Result class has different behavior than add_failure HOT 1
- Validation errors for CFModel HOT 4
- TypeError: unhashable type: 'FunctionDict' HOT 3
- AttributeError: 'NoneType' object has no attribute 'split' when using CommaDelimitedList HOT 2
- Could not parse JSON template HOT 6
- some X-Ray actions require * for the resource. HOT 2
- CLI should return non-zero when stack is invalid HOT 5
- False positive for missing egress rules HOT 1
- JUnitXML output support HOT 1
- Tool fails to parse template with KMS Key Policies that have function based statement HOT 2
- Support for pycfmodel>=0.13.0 HOT 4
- bump click dependency to >=8 HOT 3
- CFRipper fails to run `make test` on Python 3.10 HOT 1
- ReadTheDocs link broken HOT 2
- StackNameMatchesRegexRule crashed with AttributeError HOT 2
- ReadTheDocs link broken HOT 4
- Error while parsing template with pycfmodel HOT 6
- AWS S3 path format issue HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cfripper.