Giter Club home page Giter Club logo

ec2-image-builder-test's Introduction

ec2-image-builder-sample

  1. レポジトリをcloneします
git clone https://github.com/Penpen7/ec2-image-builder-test.git
  1. terraform実行に必要なS3バケットや認証情報を入れてください
cd ec2-image-builder-test
vim ec2/providers.tf
vim image-builder/providers.tf
  1. terraform initで初期化、terraform applyでAWS環境に反映します
cd image-builder
terraform init
terraform apply
  1. AWSコンソール画面に入り、EC2 Image Builderの画面を開き、パイプラインを実行します
  2. パイプラインの実行が完了したら、AMIが作成されていることを確認します
  3. 作成されたAMIを使ってEC2インスタンスを作成します
cd ../ec2
terraform init
terraform apply
  1. 作成されたEC2インスタンスにセッションマネージャでログインします
  2. slコマンドがインストールされていることを確認します
sl
  1. 終わったら、terraform destroyで作成したリソースを削除します
cd ../ec2
terraform destroy
cd ../image-builder
terraform destroy
  1. コンソール画面でバージニア北部と東京リージョンに作成されたAMIの登録解除を行い、スナップショットを削除します

ec2-image-builder-test's People

Contributors

penpen7 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.