ec2-ssh | SSH into EC2 instances via tag name | AWS library
kandi X-RAY | ec2-ssh Summary
kandi X-RAY | ec2-ssh Summary
SSH into EC2 instances via tag name
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ec2-ssh
ec2-ssh Key Features
ec2-ssh Examples and Code Snippets
Community Discussions
Trending Discussions on ec2-ssh
QUESTION
I'm trying to set up a dev environment: 1x private subnet, 1x public subnet in the dev VPC; Postgres RDS instance in the private subnet; each subnet's resources are in its own security group. The source RDS instance is in the prod VPC. I have created a peering connection and the CIDRs of each VPC do not over lap.
I am getting
Error: Error creating DB Instance: InvalidParameterCombination: The DB instance and EC2 security group are in different VPCs. The DB instance is in prod-vpc and the EC2 security group is in dev-vpc
Here are my terraform defintions. I have also added the other peer's relevant CIDRs to the route tables of each peer VPC. The source RDS and prod VPC were both created in a separate process and already exist outside of this terraform process.
...ANSWER
Answered 2021-Sep-29 at 22:22You can't do this. SGs have VAC-scope, and your RDS must use SG from the VPC it is located it.
Since you peered your VPCs, you can only reference SG across VPCs in your aws_security_group.dev-sg-priv
.
QUESTION
I am trying to follow this guid but it looks like the stack may be missing some information. I am trying to create this in eu-west-2
https://cloudonaut.io/manage-aws-ec2-ssh-access-with-iam/
It errors with “Template validation error: Template error: Unable to get mapping for RegionMap::eu-west-2::AMI”
UPDATE
should the region map look like this?
...ANSWER
Answered 2021-Feb-22 at 13:15That blog is almost 5 years old, eu-west-2
didn't exist back then, it was launched publicly in December 2016 and the blog is from April 2016.
According to the template that's linked, these are the supported regions:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ec2-ssh
You can use ec2-ssh like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page