Posts

Showing posts from November, 2024

AWS - Code Signer

Image
  AWS Lambda code signing is the practice of digitally signing source code packages for functions and layers. The goal of code signing is to ensure that only trusted code runs in your AWS Lambda functions. AWS Signer is a fully-managed code-signing service that can be used to verify the integrity of your AWS Lambda code. Before your code is deployed, AWS Lambda will perform a series of validation checks which will determine whether to accept or reject the deployment package. The first step in the code signing process is to define Amazon S3 source and destination buckets. AWS Signer retrieves unsigned packages from the S3 source bucket, performs the signing job on the package, then deposits the signed package in the S3 destination bucket. We create a S3 bucket with 2 folders. unsigned code  holds normal zip files. Creating a signing profile: Under profile, we mention the signing platform and validity period. Once the profile is created, "Start signing job". Here, we mention...

AWS Dynamodb Series - I

Image
  In this series, we will cover about AWS Dynamo DB. As the name suggests, its a database but NOSQL database. NOSQL means its not only SQL.  Dynamo DB can store structured and unstructure data. But the same must be in Key Value format (Dictionary format). Let' see how to create a table. Most important and must have in a dynamodb table is the "Partition or Primary Key".   Partition key is a common term used across any storage space. It is widely used for better query execution and better clubbing of data. With partition key, we can avoid scanning entire table and speed up the query exection. Dynamodb store the table data in partitions.  I selected “department” as the primary key. “student_name” as the sort key which is optional. Sort key, as the same says it is used in conjunction with the primary key to sort the items. I am going with "Default settings" and selecting Standard storage class. Selecting Read/Write capacity settings as "On-demand" . Not se...

DevOps Interview Q&A

Image
  1. How does GitLab trigger pipelines automatically when a developer pushes code?    Git triggers build the moment developer commits to the respective branch.    It works based on hook(push events). 2. How do you declare dependent stages in a CI/CD YAML file?  Use stages for ordering and needs for explicit dependencies. 3. What is terraform init? terraform init: Initializes the environment by setting up the backend, downloading providers, and modules. 4. What is backend.tf? backend.tf: Defines the backend configuration, which tells Terraform where to store the state file (local or remote). 5. What does terraform plan do? terraform plan essentially performs a "dry run" of the changes, allowing you to review what will happen before you apply them. 6. What happens if you give the wrong configuration or code in Terraform and run it? It depends. Syntax error will fail at the plan phase, else resources will get created.  If the resource already exist in sta...