Terraform - Can't install “aws linux ami” using t2.micro instance typeHow to safely upgrade an Amazon EC2 instance from t1.micro to large?How do I access EC2 Instance Storage from Amazon Linux?How to launch a large ec2 instance with ebs ami?ec2 instace type: ami-e0efab88 has python installed but don't recognize it while installing libxml2-2.9.4Create EC2 instance with Boto3Simplest way to convert amazon-linux instance from PV to HVMAnsible - EC2 Create-Install-AMI-CopyAMIInstall docker-volume-netshare on Linux AMIHow to launch an AMI instance copied from another region?How to have snapshot-created AWS ami be able to start on same instance type

Why would anyone ever invest in a cash-only etf?

Why does Canada require mandatory bilingualism in a lot of federal government posts?

How do I use JSON.generator to generate an unnamed array?

How did the SysRq key get onto modern keyboards if it's rarely used?

What do you call a flexible diving platform?

Why do they sell Cat 5 Ethernet splitters if you can’t split the signal?

Why did Windows 95 crash the whole system but newer Windows only crashed programs?

Must a song using the A minor scale begin or end with an Am chord? If not, how can I tell what the scale is?

How can I kill my goat?

Copying an existing HTML page and use it, is that against any copyright law?

What is this 4 sharp symbol and what does it mean?

Dual-national, returning to US the day the US Passport expires; can he check in with airline on Dutch passport but reenter with expiring US passport?

reconstruction filter - How does it actually work?

Why force the nose of 737 Max down in the first place?

Why does the Eurostar not show youth pricing?

Did the Americans trade destroyers in the "destroyer deal" that they would later need themselves?

Exploiting the delay when a festival ticket is scanned

Why is it considered acid rain with pH <5.6?

How can religions be structured in ways that allow inter-faith councils to work?

Mechanics of Horizontal Stretching and Shrinking

How can I say in Russian "I am not afraid to write anything"?

How did the Sinclair compare on price with the C64 in the UK?

What do I do with a party that is much stronger than their level?

What language is Raven using for her attack in the new 52?



Terraform - Can't install “aws linux ami” using t2.micro instance type


How to safely upgrade an Amazon EC2 instance from t1.micro to large?How do I access EC2 Instance Storage from Amazon Linux?How to launch a large ec2 instance with ebs ami?ec2 instace type: ami-e0efab88 has python installed but don't recognize it while installing libxml2-2.9.4Create EC2 instance with Boto3Simplest way to convert amazon-linux instance from PV to HVMAnsible - EC2 Create-Install-AMI-CopyAMIInstall docker-volume-netshare on Linux AMIHow to launch an AMI instance copied from another region?How to have snapshot-created AWS ami be able to start on same instance type






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















I'm trying to install "aws linux ami" ami from North Virginia, using instance type of t2.micro, but I can't find ami for "aws linux ami" of virtualization type of "hvm" (I find only of type pv). Is there no way to install "aws linux ami" of type t2?



I ran the following tf:



provider "aws" 
access_key = "AKIAJHBBU5KDBVL26TBA"
secret_key = "E3L4+tuTxQKdf+iD3wbWHg6FsHxB+9169ZT7Q4NL"
region = "us-east-1"


resource "aws_instance" "example"
ami = "ami-2d387344"
instance_type = "t2.micro"



* This is the only ami I find for "aws linux ami" in N. Virginia, but its "Virtualization type: paravirtual" so I get the following errors:



 aws_instance.example: Error launching source instance: InvalidParameterCombination: Virtualization type 'hvm' is required for instances of type 't2.micro'.


Only when I use t1.micro, it works.



I'm very new with AWS, am I missing something, or there is really no way to run "aws linux ami" of type t2?










share|improve this question






























    0















    I'm trying to install "aws linux ami" ami from North Virginia, using instance type of t2.micro, but I can't find ami for "aws linux ami" of virtualization type of "hvm" (I find only of type pv). Is there no way to install "aws linux ami" of type t2?



    I ran the following tf:



    provider "aws" 
    access_key = "AKIAJHBBU5KDBVL26TBA"
    secret_key = "E3L4+tuTxQKdf+iD3wbWHg6FsHxB+9169ZT7Q4NL"
    region = "us-east-1"


    resource "aws_instance" "example"
    ami = "ami-2d387344"
    instance_type = "t2.micro"



    * This is the only ami I find for "aws linux ami" in N. Virginia, but its "Virtualization type: paravirtual" so I get the following errors:



     aws_instance.example: Error launching source instance: InvalidParameterCombination: Virtualization type 'hvm' is required for instances of type 't2.micro'.


    Only when I use t1.micro, it works.



    I'm very new with AWS, am I missing something, or there is really no way to run "aws linux ami" of type t2?










    share|improve this question


























      0












      0








      0








      I'm trying to install "aws linux ami" ami from North Virginia, using instance type of t2.micro, but I can't find ami for "aws linux ami" of virtualization type of "hvm" (I find only of type pv). Is there no way to install "aws linux ami" of type t2?



      I ran the following tf:



      provider "aws" 
      access_key = "AKIAJHBBU5KDBVL26TBA"
      secret_key = "E3L4+tuTxQKdf+iD3wbWHg6FsHxB+9169ZT7Q4NL"
      region = "us-east-1"


      resource "aws_instance" "example"
      ami = "ami-2d387344"
      instance_type = "t2.micro"



      * This is the only ami I find for "aws linux ami" in N. Virginia, but its "Virtualization type: paravirtual" so I get the following errors:



       aws_instance.example: Error launching source instance: InvalidParameterCombination: Virtualization type 'hvm' is required for instances of type 't2.micro'.


      Only when I use t1.micro, it works.



      I'm very new with AWS, am I missing something, or there is really no way to run "aws linux ami" of type t2?










      share|improve this question














      I'm trying to install "aws linux ami" ami from North Virginia, using instance type of t2.micro, but I can't find ami for "aws linux ami" of virtualization type of "hvm" (I find only of type pv). Is there no way to install "aws linux ami" of type t2?



      I ran the following tf:



      provider "aws" 
      access_key = "AKIAJHBBU5KDBVL26TBA"
      secret_key = "E3L4+tuTxQKdf+iD3wbWHg6FsHxB+9169ZT7Q4NL"
      region = "us-east-1"


      resource "aws_instance" "example"
      ami = "ami-2d387344"
      instance_type = "t2.micro"



      * This is the only ami I find for "aws linux ami" in N. Virginia, but its "Virtualization type: paravirtual" so I get the following errors:



       aws_instance.example: Error launching source instance: InvalidParameterCombination: Virtualization type 'hvm' is required for instances of type 't2.micro'.


      Only when I use t1.micro, it works.



      I'm very new with AWS, am I missing something, or there is really no way to run "aws linux ami" of type t2?







      amazon-web-services amazon-ec2 ami






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 26 at 19:31









      pinokyopinokyo

      183 bronze badges




      183 bronze badges

























          1 Answer
          1






          active

          oldest

          votes


















          0














          You can search for the AMI ids using the AWS cli:



          aws ec2 --profile prof describe-images 
          --owners amazon
          --filters
          'Name=name,Values=amzn2-ami-hvm-2.0.????????-x86_64-gp2' 'Name=state,Values=available'
          --output json | jq -r '.Images | sort_by(.CreationDate) | last(.[]).ImageId'


          This returns:



          ami-09def150731bdbcc2



          For your use case pass in --region us-east-1 as well.






          share|improve this answer

























          • Really?! This looks over complicated way to get the image. P.s. I tried to use the ami-09def150731bdbcc2, but I got "the image id does not exist".

            – pinokyo
            Mar 26 at 20:27











          • You haven't read what I wrote: "For your use case pass in --region us-east-1 as well." Your image ID is: ami-0de53d8956e8dcf80

            – Istvan
            Mar 26 at 22:11










          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55364962%2fterraform-cant-install-aws-linux-ami-using-t2-micro-instance-type%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          You can search for the AMI ids using the AWS cli:



          aws ec2 --profile prof describe-images 
          --owners amazon
          --filters
          'Name=name,Values=amzn2-ami-hvm-2.0.????????-x86_64-gp2' 'Name=state,Values=available'
          --output json | jq -r '.Images | sort_by(.CreationDate) | last(.[]).ImageId'


          This returns:



          ami-09def150731bdbcc2



          For your use case pass in --region us-east-1 as well.






          share|improve this answer

























          • Really?! This looks over complicated way to get the image. P.s. I tried to use the ami-09def150731bdbcc2, but I got "the image id does not exist".

            – pinokyo
            Mar 26 at 20:27











          • You haven't read what I wrote: "For your use case pass in --region us-east-1 as well." Your image ID is: ami-0de53d8956e8dcf80

            – Istvan
            Mar 26 at 22:11















          0














          You can search for the AMI ids using the AWS cli:



          aws ec2 --profile prof describe-images 
          --owners amazon
          --filters
          'Name=name,Values=amzn2-ami-hvm-2.0.????????-x86_64-gp2' 'Name=state,Values=available'
          --output json | jq -r '.Images | sort_by(.CreationDate) | last(.[]).ImageId'


          This returns:



          ami-09def150731bdbcc2



          For your use case pass in --region us-east-1 as well.






          share|improve this answer

























          • Really?! This looks over complicated way to get the image. P.s. I tried to use the ami-09def150731bdbcc2, but I got "the image id does not exist".

            – pinokyo
            Mar 26 at 20:27











          • You haven't read what I wrote: "For your use case pass in --region us-east-1 as well." Your image ID is: ami-0de53d8956e8dcf80

            – Istvan
            Mar 26 at 22:11













          0












          0








          0







          You can search for the AMI ids using the AWS cli:



          aws ec2 --profile prof describe-images 
          --owners amazon
          --filters
          'Name=name,Values=amzn2-ami-hvm-2.0.????????-x86_64-gp2' 'Name=state,Values=available'
          --output json | jq -r '.Images | sort_by(.CreationDate) | last(.[]).ImageId'


          This returns:



          ami-09def150731bdbcc2



          For your use case pass in --region us-east-1 as well.






          share|improve this answer













          You can search for the AMI ids using the AWS cli:



          aws ec2 --profile prof describe-images 
          --owners amazon
          --filters
          'Name=name,Values=amzn2-ami-hvm-2.0.????????-x86_64-gp2' 'Name=state,Values=available'
          --output json | jq -r '.Images | sort_by(.CreationDate) | last(.[]).ImageId'


          This returns:



          ami-09def150731bdbcc2



          For your use case pass in --region us-east-1 as well.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 26 at 19:58









          IstvanIstvan

          3,3906 gold badges32 silver badges66 bronze badges




          3,3906 gold badges32 silver badges66 bronze badges















          • Really?! This looks over complicated way to get the image. P.s. I tried to use the ami-09def150731bdbcc2, but I got "the image id does not exist".

            – pinokyo
            Mar 26 at 20:27











          • You haven't read what I wrote: "For your use case pass in --region us-east-1 as well." Your image ID is: ami-0de53d8956e8dcf80

            – Istvan
            Mar 26 at 22:11

















          • Really?! This looks over complicated way to get the image. P.s. I tried to use the ami-09def150731bdbcc2, but I got "the image id does not exist".

            – pinokyo
            Mar 26 at 20:27











          • You haven't read what I wrote: "For your use case pass in --region us-east-1 as well." Your image ID is: ami-0de53d8956e8dcf80

            – Istvan
            Mar 26 at 22:11
















          Really?! This looks over complicated way to get the image. P.s. I tried to use the ami-09def150731bdbcc2, but I got "the image id does not exist".

          – pinokyo
          Mar 26 at 20:27





          Really?! This looks over complicated way to get the image. P.s. I tried to use the ami-09def150731bdbcc2, but I got "the image id does not exist".

          – pinokyo
          Mar 26 at 20:27













          You haven't read what I wrote: "For your use case pass in --region us-east-1 as well." Your image ID is: ami-0de53d8956e8dcf80

          – Istvan
          Mar 26 at 22:11





          You haven't read what I wrote: "For your use case pass in --region us-east-1 as well." Your image ID is: ami-0de53d8956e8dcf80

          – Istvan
          Mar 26 at 22:11








          Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.







          Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.



















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55364962%2fterraform-cant-install-aws-linux-ami-using-t2-micro-instance-type%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

          Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

          Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript