site-logo

JAWS PANKRATION 2024

site-logo
HomeNewsTimetableCfPCommitteePromotionFollow UpPrivacy Policy

CI/CD Pipeline for Terraform Workflow Using Amazon CodeCatalyst

Lv200

Lv200

8/24/2024 03:40 (UTC)

Session Info

Terraform workflow can be ran using several methods. One of them is running Terraform workflow inside CI/CD pipeline.

Running Terraform workflow inside CI/CD pipeline can have several benefits, such as: automate creation or provision resources, simplify collaboration between engineers/developers, etc.

 

In this session, i will explain how to run Terraform workflow inside CI/CD pipeline which in this session is Amazon CodeCatalyst.

GitHub is used as source code repository and has been connected with CodeCatalyst.

Next in CodeCatalyst pipeline/workflow, we will provision resources via Terraform.

 

Here are some points that can be generated as takeaways from this session:

 

- Amazon CodeCatalyst can act as alternative for CI/CD engine/tools that can be used to run Terraform workflow

- Amazon CodeCatalyst can use IAM role to interact with AWS services. By using this method, Terraform doesn’t need to inject static credentials such as AWS Access Key and AWS Secret Key into the pipeline. This can’t help prevent security breaches

- Amazon CodeCatalyst can give seamless experience if we want to deploy application to AWS environments

Luthfi  Anandra

Luthfi Anandra

- AWS Community Builders -



Session Category
Developer tools


AWS Services
Amazon CodeCatalyst
Amazon Virtual Private Cloud (VPC)

Session Materials


    Session Summary (by Amazon Bedrock)
      Lutfi Ananda, a set reality engineer and edibles community builder, explains how to run Terraform using Amazon CodeCatalyst. The process involves writing infrastructure code, reviewing changes before application, and applying infrastructure changes. This approach is necessary for team collaboration and integration. Key benefits of using CodeCatalyst include: 1. Single source of truth for infrastructure code 2. Prevention of invalid code application 3. Improved collaboration through code reviews The demo showcases a GitHub repository connected to CodeCatalyst. When changes occur in the repository, CodeCatalyst automatically runs workflows. The example demonstrates creating a VPC using AWS modules. The workflow is defined in YAML, specifying triggers, actions, and necessary permissions. It includes steps for formatting, planning, and applying Terraform changes. A pull request is created for review before applying changes. The demo illustrates adding a tag to a VPC and shows the process of reviewing, approving, and applying the changes. The speaker encourages interested parties to scan a QR code for more information and examples.

    ©JAWS-UG (AWS User Group - Japan). All rights reserved.