Giter Site home page Giter Site logo

iac-devops-codepipeline-terraform's Introduction

Create AWS CodePipeline with Multiple Environments Dev and Staging

Define infratructure image

Infratructure Development image

Infratructure Stagging image

Pipeline CICD image

Step-08-01: Create MY_AWS_SECRET_ACCESS_KEY Go to Services -> Systems Manager -> Application Management -> Parameter Store -> Create Parameter Name: /CodeBuild/MY_AWS_ACCESS_KEY_ID Descritpion: My AWS Access Key ID for Terraform CodePipeline Project Tier: Standard Type: Secure String Rest all defaults Value: ABCXXXXDEFXXXXGHXXX Step-08-02: Create MY_AWS_SECRET_ACCESS_KEY Go to Services -> Systems Manager -> Application Management -> Parameter Store -> Create Parameter Name: /CodeBuild/MY_AWS_SECRET_ACCESS_KEY Descritpion: My AWS Secret Access Key for Terraform CodePipeline Project Tier: Standard Type: Secure String Rest all defaults Value: abcdefxjkdklsa55dsjlkdjsakj

Add Build Stage Build Provider: AWS CodeBuild Region: N.Virginia Project Name: Click on Create Project Project Name: codebuild-tf-iacdevops-aws-cp1 Description: CodeBuild Project for Dev Stage of IAC DevOps Terraform Demo Environment image: Managed Image Operating System: Amazon Linux 2 Runtimes: Standard Image: latest available today (aws/codebuild/amazonlinux2-x86_64-standard:3.0) Environment Type: Linux Service Role: New (leave to defaults including Role Name) Build specifications: use a buildspec file Buildspec name - optional: buildspec-dev.yml (Ensure that this file is present in root folder of your github repository) Rest all leave to defaults Click on Continue to CodePipeline Project Name: This value should be auto-populated with Project Name Build Type: Single Build Click Next Add Deploy Stage Click on Skip Deploy Stage Review Stage Click on Create Pipeline

Create IAM Policy with Systems Manager Get Parameter Read Permission Go to Services -> IAM -> Policies -> Create Policy Service: Systems Manager Actions: Get Parameters (Under Read) Resources: All Click Next Tags Click Next Review Policy name: systems-manger-get-parameter-access Policy Description: Read Parameters from Parameter Store in AWS Systems Manager Service Click on Create Policy

Verify Resources Confirm SNS Subscription in your email Verify EC2 Instances Verify Launch Templates (High Level) Verify Autoscaling Group (High Level) Verify Load Balancer Verify Load Balancer Target Group - Health Checks Access and Test

iac-devops-codepipeline-terraform's People

Contributors

gautrucdethuong avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.