Unable to submit module
See original GitHub issueI’m trying to create a module to experiment AWS CloudFormation Modules.
These are the following commands:
cfn init
cfn submit
Output Module fragment is valid. === Unhandled exception === Please report this issue to the team. Issue tracker: github.com/aws-cloudformation/cloudformation-cli/issues Please include the log file ‘rpdk.log’
Logs
[2021-06-29T06:31:16Z] DEBUG - Unhandled exception Traceback (most recent call last): File "c:\users\xyz\appdata\local\programs\python\python39\lib\site-packages\rpdk\core\cli.py", line 100, in main args.command(args) File "c:\users\xyz\appdata\local\programs\python\python39\lib\site-packages\rpdk\core\submit.py", line 15, in submit project.submit( File "c:\users\xyz\appdata\local\programs\python\python39\lib\site-packages\rpdk\core\project.py", line 502, in submit zip_file.write(self.schema_path, SCHEMA_UPLOAD_FILENAME) File "c:\users\xyz\appdata\local\programs\python\python39\lib\zipfile.py", line 1727, in write zinfo = ZipInfo.from_file(filename, arcname, File "c:\users\xyz\appdata\local\programs\python\python39\lib\zipfile.py", line 501, in from_file st = os.stat(filename) FileNotFoundError: [WinError 2] The system cannot find the file specified: 'D:\\Training\\CloudFormation Modules\\Code Bundle\\S3 Bucket\\s3-module\\rsrchexp-s3-bucket-module.json'
I have tried re-installing the CLI but it didn’t work.
Note: I’m using Windows 10 operating system.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:4
- Comments:12 (4 by maintainers)
We have found a fix for this now: We were using the tool
cloudformation-cli-python-plugin
forcfn
and installing thecloudformation-cli
using pip3 without a regular version. We now don’t use the python plugin and set a specific version of the CLI like so:At least in our case, this fixed it for us.
@ugudip / @MalikAtalla-AWS - This now works for me with 0.2.16 - thanks