Comments (5)
Wonderful. Note that you don't need Key Pairs anymore to SSH to EC2 instances since the release of EC2 Connect: https://aws.amazon.com/about-aws/whats-new/2019/06/introducing-amazon-ec2-instance-connect/ — It's a bit more convenient especially when automating infrastructure.
from aws-bootstrap.
Hey Anand — Could it be that you're using an AWS account created before 2013? There's a legacy feature in old accounts where you can run EC2 instances without a VPC, and therefore the AWS account doesn't come with a default VPC automatically configured.
Here's how you can check: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-classic-platform.html
from aws-bootstrap.
Thanks @dvassallo
I am pretty sure mine was created before 2013. Or at least, I would not be surprised. Plus, this output seems to suggest that my account does support both EC2-Classic and Amazon VPC..
I do have a non-default VPC already created in the region where I am playing with aws-bootstrap
. What I do not know is how to pass the VPC ID in CloudFormation template. Any tips?
from aws-bootstrap.
Yes, you're on a legacy account.
From page 93 onwards, it will work in your account because you'd be creating a VPC explicitly rather than relying on the default one.
If you're already reasonably familiar with AWS, you may want to just read through those early chapters and then get back to the guide from the Load Balancing chapter onwards. Note that the code is tagged by chapter in this repo, so you can pick from any point: https://github.com/good-parts/aws-bootstrap/tags
Alternatively, you can create a brand new AWS account just for the tutorial. It's free and takes only a couple of minutes. The final template will work fine even in your original account, but because of this quirk the initial chapters might be easier to follow using a new AWS account.
from aws-bootstrap.
@dvassallo You're awesome!
Btw, for now, I just brute-forced my way by adding the following to Chapter 2's main.yml
:
- Manually added my VpcId to
SecurityGroup
Resource definition - Manually added SubnetId to my
Instance
Resource definition
While I was at it, I also added KeyName
property to the new Instance so that I could SSH into it as well.
Ah, one more thing. The Vpc did not have DNS Hostnames
attribute enabled by default. So had to set that one up manually as well. I did peek into the CloudFormation template in the master
branch and noticed that we will be creating a new Vpc with that field enabled.
Anyways, I am going to keep going. I am assuming that as long as I do not delete that Vpc and the Subnet, I should be all set!
from aws-bootstrap.
Related Issues (11)
- After successfully completing almost all the chapters, I am getting errors in the last one...:-(
- ec2 instance refuse to connect error HOT 1
- Script working when using IAM User. Not working when using AWS SSO user. HOT 1
- PDF book: EC2AMI value never gets set HOT 1
- PDF book: First 'Release Change' fails on npm run HOT 1
- PDF-book: server.js missing from git add HOT 1
- PDF-book Version 1.2, 2020-01-10: errors in ASG configuration description
- Bug: Cannot delete your epub book in MacOS Books app HOT 1
- PDF-book Version 1.3, 2020-02-03: error when setting up nested Staging stack HOT 1
- trouble with first cloud formation script
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-bootstrap.