How to add Account Condition to AWS Lambda Permissions in Terraform
If you need to lock an AWS Lambda function down to a source account for security reasons (PCI.Lambda.1) then you can do so by using the source_account …
In-depth guides, insights, and best practices for modern software engineering
If you need to lock an AWS Lambda function down to a source account for security reasons (PCI.Lambda.1) then you can do so by using the source_account …
I needed to execute a Terraform null_resource provisioner (local-exec) block to run an awscli command, but assume a role passed down to it.
There was …
Read Article →You will receive an array as a parameter that contains 1 or more integers and a number n.
Here is a little visualization of the process: …
Read Article →Complete the method which returns the number which is most frequent in the given input array. If there is a tie for the most frequent …
Read Article →Your task is to sort a given string. Each word in the string will contain a single number. This number is the position the word should …
Read Article →It’s very easy to get the current machine name and logged in user using Java.
String username = …
Read Article →
You may have installed ZSH and every-time you open your terminal, it opens BASH by default.
How do you set your default shell to open as ZSH? …
Read Article →If you need to either Encode or Decode a Base64 value, there are many ways to achieve this, one of them is directly from your commandline itself!
There are a few different ways to enable Syntax Highlighting in Vim.
Add syntax on to your local ~/.vimrc
echo "syntax …
Read Article →
Security groups are a critical component for securing resources in AWS. This guide will show you how to create and manage security groups in AWS using …
Read Article →Below is a simple CloudFormation script block to create a Security Group in AWS.
Resources:
SampleAppAppstreamSG:
Type: AWS::EC2::SecurityGroup …
Read Article →
AWS CloudFormation is very useful for creating template-able infrastructure definitions.
One of the sections of a template, is the Input Parameters, …