terraform

Secure cloud provisioning pipeline with GitHub automation

Secure cloud provisioning pipeline with GitHub automation

As a member of the Platforms engineering team, we understand that security is a shared responsibility throughout the DevSecOps lifecycle for provisioning infrastructure. As a result, we set about championing best practices across the organization, with a focus on: Configuring short-lived credentials Automating cloud-provisioning pipelines Comparing infrastructure-as-code tooling Securing deployments from code-to-delivery Figure: How to provision infrastructure-as-code. Short-lived credentials GitHub Actions form the basis of our continuous integration/continuous deployment (CI/CD) pipeline as it integrates seamlessly with GitOps: the framework by which we ship peer-reviewed code early and often. It enables us to extend our workflow with Actions from verified creators,…
Read More
My favorite terraform coding Rule

My favorite terraform coding Rule

The naming convention for our Terraform environment was one of our favorites because it clearly indicated the declaration location. So, I built my favorite terraform coding rule via tflint. here The rule is very simple.Every resource must defined in the its resource-name file. variable,locals,output,provider,module are all defined in variable.tf,locals.tf,output.tf,provider.tf,module.tf data are all defined in data_<data_type>.tf resource are all defined in <resource_type>.tf Installation .tflint.hcl plugin "file-name-is-resource-name" {enabled = truesource = "github.com/shoppingjaws/tflint-ruleset-file-name-is-resource-name"version = "1.0.0"} Enter fullscreen mode Exit fullscreen mode Settings File name rules that should be defined can be overwritten rule "file_name_is_resource_name" {enabled = truemodule_file_name_pattern = "^main.tf$"variable_file_name_pattern= "^variable.tf$"locals_file_name_pattern= "^locals.tf$"provider_file_name_pattern= "^provider.tf$"output_file_name_pattern= "^output.tf$"module_file_name_pattern=…
Read More
Introduction to AWS S3 Remote Backend with Terraform

Introduction to AWS S3 Remote Backend with Terraform

Infrastructure as Code (IaC) is revolutionizing how we manage and provision infrastructure, and Terraform has become a standout tool in this landscape. However, a critical aspect of using Terraform effectively is managing the Terraform state file—the single source of truth that records your infrastructure’s current status. In this guide, we’ll explore the importance of the Terraform state file, why local storage can be risky, and how using AWS S3 as a remote backend offers a scalable, secure, and collaborative solution. What is the Terraform State File? The Terraform state file, terraform.tfstate, is an essential JSON file that maintains the mapping…
Read More
Deploy Jenkins, JFrog, Grafana and Prometheus Applications in Kubernetes Cluster – Terraform

Deploy Jenkins, JFrog, Grafana and Prometheus Applications in Kubernetes Cluster – Terraform

I have created a terraform scripts help set up DevOps applications necessary for application development. The module is hosted in a GitHub repository called "DevOps Terraform Module.". The following applications will be deployed locally in a Kubernetes cluster. Jenkins JFrog Prometheus Grafana Root Main Terraform Script main.tf module "common" { source = "git::https://github.com/developerhelperhub/devops-terraform-module.git//modules/common?ref=v1.1.0" } module "devops" { source = "git::https://github.com/developerhelperhub/devops-terraform-module.git//devops?ref=v1.1.0" kind_cluster_name = var.kind_cluster_name kind_http_port = 80 kind_https_port = 443 kubernetes_namespace = "devops" jenkins_service_port = 8080 jenkins_enable = true jenkins_domain_name = var.jenkins_domain_name jenkins_admin_username = var.jenkins_admin_username jenkins_admin_password = module.common.random_password_16 jfrog_service_port = 8082 jfrog_enable = true jfrog_domain_name = var.jfrog_domain_name jfrog_postgresql_password = module.common.random_password_16 kube_prometheus_stack_enable…
Read More
nxs-marketplace-terraform: love and use it

nxs-marketplace-terraform: love and use it

Hello everyone! My name is Danil, I am a DevOps engineer at Nixys. In today's business environment, companies increasingly need to deploy and manage various cloud environments quickly. Often customers set a task to deploy typical cloud environments in a short period once we were approached with such a request. The customer was tasked with deploying several generic environments in the cloud as quickly as possible for their new project. They needed a solution that would ensure consistency, repeatability, and automation of the deployment process. Since deadlines were tight, they needed an approach that would minimize manual work and the…
Read More
Terraform Validate Command: Practical Examples and Best Practices

Terraform Validate Command: Practical Examples and Best Practices

What is Terraform Validate The validate command helps you make sure your Terraform (or OpenTofu) code is syntactically correct before you deploy. This helps you to prevent misconfiguration due to missing attributes or incorrect dependencies, saving time, improving efficiency, and reducing cost. Under the hood, terraform validate performs these actions: Validates that the syntax of the terraform files is correct - For example, if you want to use the terraform ternary function in your code and provide the incorrect syntax halfway, terraform can capture it and help you fix it. Verifies the consistency of the terraform configuration -For instance, whether…
Read More
Unleashing the Power of CDK and Terraform in Cloud Deployments

Unleashing the Power of CDK and Terraform in Cloud Deployments

Introduction Deploying applications to the cloud has become a cornerstone of modern software development. AWS offers CloudFormation as a service to facilitate cloud deployments and tools like the AWS Cloud Development Kit (CDK). At the same time, Terraform has emerged as a powerful solution for Infrastructure as Code (IaC), enabling faster deployments to multiple cloud providers. In this article, we’ll explore the benefits of using AWS CDK and Terraform together and walk through a practical example of creating a REST API with CDK in TypeScript. What is Terraform and CDK? Terraform Terraform is a tool created by HashiCorp that allows…
Read More
Terraform Functions Guide: Complete List with Detailed Examples

Terraform Functions Guide: Complete List with Detailed Examples

[*] Terraform functions are essential for creating effective infrastructure code. They help automate tasks like generating resource names, calculating values, and managing data structures.  In this blog post, we will explore using Terraform CLI's built-in functions in different ways, such as in locals, the console, output, and variables. Understanding these functions is important for any DevOps or Infrastructure engineer who wants to improve their Infrastructure as Code (IaC) skills. ‍Disclaimer‍_All Terraform functions discussed here work similarly in OpenTofu, the open-source Terraform alternative. However, in order to keep it simple and closer to what devops engineers are familiar with, we will…
Read More
Understanding Terraform: A Guide to Effective IaC Practices

Understanding Terraform: A Guide to Effective IaC Practices

What is Terraform? Terraform is an infrastructure as code (IaC) tool that allows you to build, change, and version cloud and on-premises resources safely and efficiently. With Terraform, you define your infrastructure using human-readable configuration files, which can be versioned, reused, and shared. It works with a wide range of platforms and services through their APIs, enabling you to manage both low-level components (such as compute instances, storage, and networking) in a consistent manner. The 3 Stage Workflow: The Coding Stage: Define resources across one or multiple cloud providers and services in your configuration files, depending on your requirements. Here…
Read More
No widgets found. Go to Widget page and add the widget in Offcanvas Sidebar Widget Area.