I was receiving Error: POST https://api.github.com/user/repos: 401 Requires authentication [] while applying and deploying repository on github.com with Terraform. This error occurs because terraform is not able to authenticate to GitHub.com API and not able to perform the action.
Blog posts September 2024
GitHub repository integration with Terraform Cloud to Deploy and Manage Azure
Streamline your infrastructure as code (IaC) workflows by integrating your GitHub repository with HashiCorp Terraform Cloud (HCP). This powerful combination enables automatic execution of Terraform plans and applies based on changes made to your infrastructure code, ensuring that every update to you…
Azure OIDC OpenID Connect password less with GitHub Actions
This documentation describes in what way to organize GitHub Actions to authenticate with Microsoft Azure Entra ID using OpenID Connect (OIDC) for secure and automated deployments to Azure. This guide covers key ideas like credentials, federated identity, and customer-managed keys for data encryptio…
Part 4.2 GitHub Actions manage Microsoft Azure Cloud with az CLI
In this article, I will guide through the procedure of securely keeping Azure credentials in GitHub Actions Repository Secrets and using them to authenticate with Azure CLI commands. This enables the execution of GitHub Actions workflows, automating various tasks and deployments in Azure. By storing…
Part 4.1 GitHub Actions deploy azure resources with PowerShell
After successfully configuring and setting up Azure and Terraform in GitHub Actions, I embarked on a Proof of Concept (POC) to automate PowerShell scripts (Azure az module) using GitHub Actions. I meticulously automated all the job steps using PowerShell, with a primary focus on utilizing credential…
Part 4 GitHub Actions deploy azure resources with Terraform backend
In this section, I'm leveraging the azurerm backend to keep the Terraform state (tfstate) file in an Azure Storage Account. This will make sure that the Terraform state is centralized and consistent across different environments and team members. Every time I push changes to my Terraform configurat…
Part 3 Automating and Planning Azure Resources with Terraform and GitHub Actions
GitHub Actions is a CI/CD tool that automates tasks and workflows within your repository. It lets you to create custom workflows, trigger actions, and keep sensitive information securely. Common use cases include automating testing, deployment, and code quality checks. You can also use GitHub Actio…
Configure SNMP Service on HPE ILO Redfish Rest API using PowerShell
In our team, a colleague was tasked with configuring SNMP settings on multiple HPE ILO portals. To streamline this process and avoid manual labor, they sought my expertise in automation. I leveraged the HPE ILO Redfish REST API with PowerShell to automate the task, utilizing the comprehensive API do…
Reboot remote Linux server from PHP PowerShell web server for privileged users
This HTML tool enables users to restart Linux servers remotely from their web browser, providing a convenient and efficient way to manage server operations. Built using HTML, PHP, and PowerShell, this project is designed to be hosted on a Windows XAMPP server only.
For added security and author…
HTML JavaScript generate GUID
Here is a small HTML project I created to generate a new GUID each time the "Generate New GUID" button is clicked. Additionally, this project includes a feature that allows you to easily copy the generated GUID to your clipboard by clicking on a copy icon next to the GUID. The project uses basic HTM…
Part 2 Terraform modules using a github.com repository as a source
In this article, I will guide you through the process of configuring a Terraform module hosted on GitHub.com as a source for the use inside Terraform module projects. In my previous blog (Part 1), I demonstrated how to set up a GitHub.com repository and branch using HashiCorp Terraform code.
To S…
Create GitHub repository and branches using Terraform
In this blog post, I will walk you through using HashiCorp Terraform to create and configure repositories and branches on an existing GitHub account. Before we begin, it's important to note that you should already have an active GitHub account.
To allow Terraform to interact with your GitHub acco…
Blog Search
Page Views
12056395
Archive
- September 2024 (12)
- August 2024 (22)
- July 2024 (11)
- June 2024 (1)
- May 2024 (3)
- April 2024 (5)
- November 2023 (1)
- September 2023 (6)
- July 2023 (15)
- June 2023 (5)
Comments
-
NeoModJuly 30, 2024 11:14PM
-
RogerJuly 22, 2024 10:13PM
-
DonJune 28, 2024 11:29PM
-
visamanxJune 25, 2024 01:30AM
-
AdamJune 14, 2024 01:37AM