Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Activity for philipp.classenâ€
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Edit | Post #291831 |
Post edited: |
— | 5 months ago |
Edit | Post #291830 |
Post edited: |
— | 5 months ago |
Edit | Post #291831 |
Post edited: |
— | 5 months ago |
Edit | Post #291831 | Initial revision | — | 5 months ago |
Answer | — |
A: When configuring load balancer access logs, what permission does the S3 bucket need? It needs the `s3:PutObject` permisson, but the `Principal` in the policy depends on the AWS region. For instance, in `us-east-1`, this should work (assuming it will log under `s3://test-bucket-access-logs/AWSLogs//`): ``` { "Version": "2012-10-17", "Statement": [ { ... (more) |
— | 5 months ago |
Edit | Post #291830 | Initial revision | — | 5 months ago |
Question | — |
When configuring load balancer access logs, what permission does the S3 bucket need? When enabling access logging for an AWS load balancer, I get the following error: ``` Access Denied for bucket: test-bucket-access-logs. Please check S3bucket permission ``` `test-bucket-access-logs` is the name of the new S3 bucket that I created. How can I give it the proper permissions? (more) |
— | 5 months ago |
Edit | Post #291499 |
Post edited: |
— | 6 months ago |
Edit | Post #291499 |
Post edited: |
— | 6 months ago |
Edit | Post #291499 |
Post edited: |
— | 6 months ago |
Edit | Post #291499 | Initial revision | — | 6 months ago |
Answer | — |
A: Check if a file exists in Node.js You can use `existsSync`: ``` import { existsSync } from 'node:fs'; if (existsSync('/path/to/file')) { console.log('Found'); } else { console.log('Not found'); } ``` If you want to avoid blocking, you can also use `access`. If you pass no arguments, it runs in `fs.constants.FOK` mo... (more) |
— | 6 months ago |
Edit | Post #291498 | Initial revision | — | 6 months ago |
Question | — |
Check if a file exists in Node.js How to check in Node.js if a file exists? (more) |
— | 6 months ago |