Giter Club home page Giter Club logo

centos7-ami-packer's Introduction

#This repo is a ami builder with packer

  • clone repository
  • run change the permissions for execute and run ./check_last_centos7-ami.sh as the bellow
     chmod +x check_last_centos7-ami.sh
     ./check_last_centos7-ami.sh eu-central-1                                                                     
     {
         "Images": [
             {
                 "Architecture": "x86_64",
                 "CreationDate": "2019-01-30T23:43:46.000Z",
                 "ImageId": "ami-04cf43aca3e6f3de3",
                 "ImageLocation": "aws-marketplace/CentOS Linux 7 x86_64 HVM EBS ENA 1901_01-b7ee8a69-ee97-4a49-9e68-afaee216db2e-ami-05713873c6794f575.4",
                 "ImageType": "machine",
                 "Public": true,
                 "OwnerId": "679593333241",
                 "ProductCodes": [
                     {
                         "ProductCodeId": "aw0evgkw8e5c1q413zgy5pjce",
                         "ProductCodeType": "marketplace"
                     }
                 ],
                 "State": "available",
                 "BlockDeviceMappings": [
                     {
                         "DeviceName": "/dev/sda1",
                         "Ebs": {
                             "DeleteOnTermination": false,
                             "SnapshotId": "snap-05c6dd0b90e5123e4",
                             "VolumeSize": 8,
                             "VolumeType": "gp2",
                             "Encrypted": false
                         }
                     }
                 ],
                 "Description": "CentOS Linux 7 x86_64 HVM EBS ENA 1901_01",
                 "EnaSupport": true,
                 "Hypervisor": "xen",
                 "ImageOwnerAlias": "aws-marketplace",
                 "Name": "CentOS Linux 7 x86_64 HVM EBS ENA 1901_01-b7ee8a69-ee97-4a49-9e68-afaee216db2e-ami-05713873c6794f575.4",
                 "RootDeviceName": "/dev/sda1",
                 "RootDeviceType": "ebs",
                 "SriovNetSupport": "simple",
                 "VirtualizationType": "hvm"
             }
         ]
     }
    
  • fill the variables on centos7.json as you which
  • run 'packer validate centos7.json'
     packer validate centos7.json                                                                                          
     Template validated successfully.
  • run packer build
    packer build centos7.json  
  • in the end it should give you the ami id you need

centos7-ami-packer's People

Contributors

orpere avatar

Watchers

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