windows support redux
See original GitHub issueHello
Can anyone provide some advice on the below error when trying to package a simple policy for lambda.
PS C:\Users\USER\Custodian> custodian run --region=eu-west-1 --output-dir=. --config=custod
2017-01-04 10:58:51,770: custodian.policy:INFO Provisioning policy lambda ec2-tag-complianc
2017-01-04 10:58:52,921: custodian.output:ERROR Error while executing policy
Traceback (most recent call last):
File "c:\python27\lib\site-packages\c7n\policy.py", line 300, in provision
role=self.policy.options.assume_role)
File "c:\python27\lib\site-packages\c7n\mu.py", line 221, in publish
func, role, s3_uri, qualifier=alias)
File "c:\python27\lib\site-packages\c7n\mu.py", line 319, in _create_or_update
code_ref = {'ZipFile': archive.get_bytes()}
File "c:\python27\lib\site-packages\c7n\mu.py", line 165, in get_bytes
return open(self._temp_archive_file.name, 'rb').read()
IOError: [Errno 13] Permission denied: 'c:\\users\\USER\\appdata\\local\\temp\\tmpvah3za'
2017-01-04 10:58:52,934: custodian.commands:ERROR Error while executing policy ec2-tag-comp
Traceback (most recent call last):
File "c:\python27\lib\site-packages\c7n\commands.py", line 114, in run
policy()
File "c:\python27\lib\site-packages\c7n\policy.py", line 461, in __call__
return mode.provision()
File "c:\python27\lib\site-packages\c7n\policy.py", line 300, in provision
role=self.policy.options.assume_role)
File "c:\python27\lib\site-packages\c7n\mu.py", line 221, in publish
func, role, s3_uri, qualifier=alias)
File "c:\python27\lib\site-packages\c7n\mu.py", line 319, in _create_or_update
code_ref = {'ZipFile': archive.get_bytes()}
File "c:\python27\lib\site-packages\c7n\mu.py", line 165, in get_bytes
return open(self._temp_archive_file.name, 'rb').read()
IOError: [Errno 13] Permission denied: 'c:\\users\\USER\\appdata\\local\\temp\\tmpvah3za'
I have checked permissions/ UAC etc
Issue Analytics
- State:
- Created 7 years ago
- Comments:11 (2 by maintainers)
Top Results From Across the Web
Support Hub - Build Redux
Search our knowledge base for answers to common questions. Guides. Need help? We have you covered. FAQ. Questions? We have answers. Submit a...
Read more >Windows 10 Redux – Practical Help for Your Digital Life®
Windows 10 Redux: a reader asks… I'm an avid reader of your column, and find absolute gems on your blog, thank you! I've...
Read more >Critical Error: Your Start menu isn't working. Redux.
I have a new computer with Windows 10 preinstalled. It happened a week after I bought it. After trying several fixes, I created...
Read more >How to install windows 11 on your build redux PC. - YouTube
... PCs off of build redux and want to get the windows 11 update early. ... on any computer aslong as the CPU...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This is still an open issue for running some tests on Windows, most of us developing on Windows are using Windows Subsystem for Linux currently so it hasn’t been a blocker - but we should get to it at some point for sure. It is basically functionality that does not exist in Windows so it will require refactoring a bit.
This was resolved with #3842 and you should be able to do all your tests on Windows now if you’d like. Please open a new issue if you run into any problems.