AWS Policy to Restrict Access to One S3 Bucket

By | Engineering

For quick reference, you may need to create a policy for an AWS IAM user to only access one specific bucket, ‘BUCKET_NAME_HERE‘. { “Version”: “2012-10-17”, “Statement”: [ { “Effect”: “Allow”, “Action”: [ “s3:ListBucket” ], “Resource”: [ “arn:aws:s3:::BUCKET_NAME_HERE” ] }, { “Effect”: “Allow”, “Action”: [ “s3:PutObject”, “s3:GetObject”, “s3:DeleteObject” ], “Resource”: [ “arn:aws:s3:::BUCKET_NAME_HERE/*” ] } ] }  

Read More

JavaScript – Replace Only Replaces First Occurence

By | Engineering

It’s awkward to find out that the the string.replace(targetString, replaceWith) function in JavaScript doesn’t act like it does in most other modern programming languages. JavaScript will only find the first instance of the target string and replace it. It will not continue to find other instances of the targeted string and replace it. Java/.Net/etc. will search for all occurrences of…

Read More

Docker Local Image Repository Bloat – Prune Daily

By | Engineering

Your local docker repository can quickly be filled with images that are unnecessary and not associated with any running containers. This could happen if you have an intermediary image that is used in the building of a final image or if you pull down specific versions of an image and leave the old ones which over time will simply build…

Read More