Add support for SAM resource types like AWS::Serverless::Function #99
Labels
bug
Something isn't working
good first issue
Good for newcomers
help wanted
Extra attention is needed
https://github.com/awslabs/aws-api-gateway-developer-portal/blob/main/cloudformation/template.yaml
// Converting aws_cf_template.yaml to Terraform!
[####--------------------------------] 12% 00:03:03 code has been checked out.
Traceback (most recent call last):
File "c:\users\appdata\local\programs\python\python37\lib\runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "c:\users\appdata\local\programs\python\python37\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "C:\Users\AppData\Local\Programs\Python\Python37\Scripts\cf2tf.exe_main.py", line 9, in
File "c:\users\appdata\local\programs\python\python37\lib\site-packages\click\core.py", line 1130, in call
return self.main(*args, **kwargs)
File "c:\users\appdata\local\programs\python\python37\lib\site-packages\click\core.py", line 1055, in main
rv = self.invoke(ctx)
File "c:\users\appdata\local\programs\python\python37\lib\site-packages\click\core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "c:\users\appdata\local\programs\python\python37\lib\site-packages\click\core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "c:\users\appdata\local\programs\python\python37\lib\site-packages\cf2tf\app.py", line 44, in cli
config = TemplateConverter(tmpl_path.stem, cf_template, search_manger).convert()
File "c:\users\appdata\local\programs\python\python37\lib\site-packages\cf2tf\convert.py", line 94, in convert
tf_resources = self.convert_to_tf(self.manifest)
File "c:\users\appdata\local\programs\python\python37\lib\site-packages\cf2tf\convert.py", line 146, in convert_to_tf
tf_resources.extend(converter(resources))
File "c:\users\appdata\local\programs\python\python37\lib\site-packages\cf2tf\convert.py", line 332, in convert_resources
properties, functions.ALL_FUNCTIONS
File "c:\users\appdata\local\programs\python\python37\lib\site-packages\cf2tf\convert.py", line 182, in resolve_values
value, allowed_func, prev_func, inside_function=inside_function
File "c:\users\appdata\local\programs\python\python37\lib\site-packages\cf2tf\convert.py", line 193, in resolve_values
return allowed_func[key](self, value)
File "c:\users\appdata\local\programs\python\python37\lib\site-packages\cf2tf\conversion\expressions.py", line 422, in get_att
The text was updated successfully, but these errors were encountered: