Skip to content

Commit

Permalink
Merge pull request #29 from kunduso/provider-version-upgrade
Browse files Browse the repository at this point in the history
Provider version upgrade
  • Loading branch information
kunduso authored Jan 2, 2024
2 parents 484b982 + dda6d3d commit 99351b2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ jobs:
# Initialize a new or existing Terraform working directory by creating initial files, loading any remote state, downloading modules, etc.
- name: Terraform Init
id: init
run: terraform init
run: terraform init -upgrade

# Checks that all Terraform configuration files adhere to a canonical format
- name: Terraform Format
Expand Down
8 changes: 6 additions & 2 deletions ReadMe.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
[![License: Unlicense](https://img.shields.io/badge/license-Unlicense-white.svg)](https://choosealicense.com/licenses/unlicense/)[![GitHub pull-requests closed](https://img.shields.io/github/issues-pr-closed/kunduso/add-aws-elb-ec2-terraform)](https://github.com/kunduso/add-aws-elb-ec2-terraform/pulls?q=is%3Apr+is%3Aclosed)[![GitHub pull-requests](https://img.shields.io/github/issues-pr/kunduso/add-aws-elb-ec2-terraform)](https://GitHub.com/kunduso/add-aws-elb-ec2-terraform/pull/)
[![GitHub issues-closed](https://img.shields.io/github/issues-closed/kunduso/add-aws-elb-ec2-terraform)](https://github.com/kunduso/add-aws-elb-ec2-terraform/issues?q=is%3Aissue+is%3Aclosed)[![GitHub issues](https://img.shields.io/github/issues/kunduso/add-aws-elb-ec2-terraform)](https://GitHub.com/kunduso/add-aws-elb-ec2-terraform/issues/)
[![terraform-infra-provisioning](https://github.com/kunduso/add-aws-elb-ec2-terraform/actions/workflows/terraform.yml/badge.svg)](https://github.com/kunduso/add-aws-elb-ec2-terraform/actions/workflows/terraform.yml)
[![checkov-static-analysis-scan](https://github.com/kunduso/add-aws-elb-ec2-terraform/actions/workflows/code-scan.yml/badge.svg?branch=main)](https://github.com/kunduso/add-aws-elb-ec2-terraform/actions/workflows/code-scan.yml)
[![infracost](https://img.shields.io/endpoint?url=https://dashboard.api.infracost.io/shields/json/06af6e89-01e0-4bb5-bf85-ea19a0d3327a/repos/d7b4f62a-ed9e-4c0e-86f1-0ef3eb090cfb/branch/e9ba2997-4ca7-4a8e-9db5-8cde6e98f7fa)](https://dashboard.infracost.io/org/skundudev/repos/d7b4f62a-ed9e-4c0e-86f1-0ef3eb090cfb?tab=settings)
![Image](https://skdevops.files.wordpress.com/2023/03/72-image-1.png)
## Motivation
My objectives was to create an application load balancer and attach that to three Amazon EC2 instances hosted in three different availability zones in a region using **Terraform and GitHub Actions.**

<br />I discussed the concept and the code in detail in my notes at -[add an application load balancer to Amazon EC2 using Terraform.](https://skundunotes.com/2022/07/30/add-an-application-load-balancer-to-aws-ec2-using-terraform/)
<br />Later, I also automated the process of provisioning the resources using GitHub Actions pipeline and I discussed that in detail at -[CI-CD with Terraform and GitHub Actions to deploy to AWS.](https://skundunotes.com/2023/03/07/ci-cd-with-terraform-and-github-actions-to-deploy-to-aws/)
<br />If you are interested in learning about how to create an external application load balancer with Amazon EC2 instances in a **private subnet**, check out the code in this repository: [add-aws-elb-ec2-private-subnet-terraform](https://github.com/kunduso/add-aws-elb-ec2-private-subnet-terraform)
<br />Later, I also automated the process of provisioning the resources using GitHub Actions pipeline and I discussed that in detail at -[CI-CD with Terraform and GitHub Actions to deploy to AWS.](https://skundunotes.com/2023/03/07/ci-cd-with-terraform-and-github-actions-to-deploy-to-aws/)
<br />If you are interested in learning about how to create an external application load balancer with Amazon EC2 instances in a **private subnet**, check out the code in this repository: [add-aws-elb-ec2-terraform](https://github.com/kunduso/add-aws-elb-ec2-terraform)
<br />I also added **Infracost** estimates to this repository. You can checkout the monthly cost badge at the top of this ReadMe file with the cost details. If you are interested in learning about that, checkout my note on - [estimate AWS Cloud resource cost with Infracost, Terraform, and GitHub Actions.](https://skundunotes.com/2023/07/17/estimate-aws-cloud-resource-cost-with-infracost-terraform-and-github-actions/)

<br />*Note: I did not include the concepts of creating the EC2 instances, or installing a certificate, or route53 in this note.*
Expand All @@ -21,3 +23,5 @@ Ensure that the policy attached to the IAM role whose credentials are being used
<br />
<br />Review the code including the [`terraform.yml`](./.github/workflows/terraform.yml) to understand the steps in the GitHub Actions pipeline. Also review the `terraform` code to understand all the concepts associated with creating an AWS VPC, subnets, internet gateway, route table, and route table association.
<br />If you want to check the pipeline logs, click on the **Build Badge** (terrform-infra-provisioning) above the image in this ReadMe.
## License
This code is released under the Unlincse License. See [LICENSE](LICENSE).
2 changes: 1 addition & 1 deletion provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "4.20.1"
version = "5.31.0"
}
}
}
Expand Down

0 comments on commit 99351b2

Please sign in to comment.