diff --git a/src/content/blog/getting-started.md b/src/content/blog/getting-started.md deleted file mode 100644 index 80629d7..0000000 --- a/src/content/blog/getting-started.md +++ /dev/null @@ -1,65 +0,0 @@ ---- -title: 'Getting Started with Infrastructure as Code' -description: 'Learn the basics of Infrastructure as Code and how to start using it in your projects.' -pubDate: '2023-11-15' -heroImage: '/images/placeholders/infrastructure.jpg' -categories: ['Infrastructure', 'DevOps'] -tags: ['terraform', 'infrastructure', 'cloud', 'automation'] -minutesRead: '5 min' ---- - -# Getting Started with Infrastructure as Code - -Infrastructure as Code (IaC) is a key DevOps practice that involves managing and provisioning infrastructure through code instead of manual processes. This approach brings the same rigor, transparency, and version control to infrastructure that developers have long applied to application code. - -## Why Infrastructure as Code? - -IaC offers numerous benefits for modern DevOps teams: - -- **Consistency**: Infrastructure deployments become reproducible and standardized -- **Version Control**: Track changes to your infrastructure just like application code -- **Automation**: Reduce manual errors and increase deployment speed -- **Documentation**: Your code becomes self-documenting -- **Testing**: Infrastructure can be tested before deployment - -## Popular IaC Tools - -There are several powerful tools for implementing IaC: - -1. **Terraform**: Cloud-agnostic, works with multiple providers -2. **AWS CloudFormation**: Specific to AWS infrastructure -3. **Azure Resource Manager**: Microsoft's native IaC solution -4. **Google Cloud Deployment Manager**: For Google Cloud resources -5. **Pulumi**: Uses general-purpose programming languages - -## Basic Terraform Example - -Here's a simple example of Terraform code that provisions an AWS EC2 instance: - -```hcl -provider "aws" { - region = "us-west-2" -} - -resource "aws_instance" "web_server" { - ami = "ami-0c55b159cbfafe1f0" - instance_type = "t2.micro" - - tags = { - Name = "Web Server" - Environment = "Development" - } -} -``` - -## Getting Started - -To begin your IaC journey: - -1. Choose a tool that fits your infrastructure needs -2. Start small with a simple resource -3. Learn about state management -4. Implement CI/CD for your infrastructure code -5. Consider using modules for reusability - -Infrastructure as Code transforms how teams provision and manage resources, enabling more reliable, consistent deployments while reducing overhead and errors. \ No newline at end of file diff --git a/src/content/posts/getting-started.md b/src/content/posts/getting-started.md deleted file mode 100644 index 80629d7..0000000 --- a/src/content/posts/getting-started.md +++ /dev/null @@ -1,65 +0,0 @@ ---- -title: 'Getting Started with Infrastructure as Code' -description: 'Learn the basics of Infrastructure as Code and how to start using it in your projects.' -pubDate: '2023-11-15' -heroImage: '/images/placeholders/infrastructure.jpg' -categories: ['Infrastructure', 'DevOps'] -tags: ['terraform', 'infrastructure', 'cloud', 'automation'] -minutesRead: '5 min' ---- - -# Getting Started with Infrastructure as Code - -Infrastructure as Code (IaC) is a key DevOps practice that involves managing and provisioning infrastructure through code instead of manual processes. This approach brings the same rigor, transparency, and version control to infrastructure that developers have long applied to application code. - -## Why Infrastructure as Code? - -IaC offers numerous benefits for modern DevOps teams: - -- **Consistency**: Infrastructure deployments become reproducible and standardized -- **Version Control**: Track changes to your infrastructure just like application code -- **Automation**: Reduce manual errors and increase deployment speed -- **Documentation**: Your code becomes self-documenting -- **Testing**: Infrastructure can be tested before deployment - -## Popular IaC Tools - -There are several powerful tools for implementing IaC: - -1. **Terraform**: Cloud-agnostic, works with multiple providers -2. **AWS CloudFormation**: Specific to AWS infrastructure -3. **Azure Resource Manager**: Microsoft's native IaC solution -4. **Google Cloud Deployment Manager**: For Google Cloud resources -5. **Pulumi**: Uses general-purpose programming languages - -## Basic Terraform Example - -Here's a simple example of Terraform code that provisions an AWS EC2 instance: - -```hcl -provider "aws" { - region = "us-west-2" -} - -resource "aws_instance" "web_server" { - ami = "ami-0c55b159cbfafe1f0" - instance_type = "t2.micro" - - tags = { - Name = "Web Server" - Environment = "Development" - } -} -``` - -## Getting Started - -To begin your IaC journey: - -1. Choose a tool that fits your infrastructure needs -2. Start small with a simple resource -3. Learn about state management -4. Implement CI/CD for your infrastructure code -5. Consider using modules for reusability - -Infrastructure as Code transforms how teams provision and manage resources, enabling more reliable, consistent deployments while reducing overhead and errors. \ No newline at end of file diff --git a/src/layouts/BaseLayout.astro b/src/layouts/BaseLayout.astro index 061cca3..a38cb56 100644 --- a/src/layouts/BaseLayout.astro +++ b/src/layouts/BaseLayout.astro @@ -76,6 +76,9 @@ const { + + + diff --git a/src/pages/blog/index.astro b/src/pages/blog/index.astro index ac3e82c..ffc17fa 100644 --- a/src/pages/blog/index.astro +++ b/src/pages/blog/index.astro @@ -254,9 +254,9 @@ function createPostCardHTML(post) {

${post.description}

-
+ Read More
diff --git a/src/pages/index.astro b/src/pages/index.astro index a34a8f0..f79d058 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -96,12 +96,20 @@ const heroCommands = [