AWS EC2 AMI instance can't connect to RDS instance. but ubuntu instance canWhy do I get “Permission denied...
Non-Italian European mafias in USA?
What is better: yes / no radio, or simple checkbox?
Detect if page is on experience editor Sitecore 9 via Javascript?
Sometimes a banana is just a banana
Test pad's ESD protection
Pure Functions: Does "No Side Effects" Imply "Always Same Output, Given Same Input"?
Traversing Africa: A Cryptic Journey
Is there a legal poaching?
Borrowing Characters
Can throughput exceed the bandwidth of a network
Is the withholding of funding notice allowed?
Why are special aircraft used for the carriers in the united states navy?
Toast materialize
I can't die. Who am I?
Levi-Civita symbol: 3D matrix
Practical reasons to have both a large police force and bounty hunting network?
In Adventurer's League, is it possible to keep the Ring of Winter if you manage to acquire it in the Tomb of Annihilation adventure?
Are small insurances worth it
What could trigger powerful quakes on icy world?
Dredging in a fantasy setting
Rationale to prefer local variables over instance variables?
Is there a full canon version of Tyrion's jackass/honeycomb joke?
Difference between 'stomach' and 'uterus'
The need of reserving one's ability in job interviews
AWS EC2 AMI instance can't connect to RDS instance. but ubuntu instance can
Why do I get “Permission denied (publickey)” when trying to SSH from local Ubuntu to a Amazon EC2 server?Why can't I connect to Amazon RDS after setting it up?EC2 Ubuntu with WordPress can't connect to RDSSerious Ubuntu AMI EC2 Issue - Cannot duplicateCan't connect to EC2 instance in VPC (Amazon AWS)Allow access to RDS instance from EC2 instance on same VPCUnable to connect to RDS instance from outside VPC (ERROR 2003 (HY000) Can't connect to MySQL Server)AWS VPC Public Private Subnets - EC2 Instance cannot reach RDS instanceConnection timed out on new AWS RDS instances - can connect to older, almost identical RDS with no issueAmazon EC2 (Tokyo) Can't Access Amazon RDS (Frankfurt)
I have a newly created Linux AMI EC2 instance and an Ubuntu instance.
And both instances try to connect to the same RDS.
The settings of both instances are exactly the same. Security groups and VPCs are the same. Only linux images are different.
But, AMI instance can't connect to RDS instance. but ubuntu instance can.
What difference made this result?
ubuntu amazon-web-services amazon-ec2 amazon-rds amazon-ami
New contributor
blurfx is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
I have a newly created Linux AMI EC2 instance and an Ubuntu instance.
And both instances try to connect to the same RDS.
The settings of both instances are exactly the same. Security groups and VPCs are the same. Only linux images are different.
But, AMI instance can't connect to RDS instance. but ubuntu instance can.
What difference made this result?
ubuntu amazon-web-services amazon-ec2 amazon-rds amazon-ami
New contributor
blurfx is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1
Do you mean "Amazon Linux" rather than "AMI instance"? Difficult to say based on the little information you've provided, Amazon Linux connects to RDS fine when properly configured. You can't ping RDS to test connectivity, but you can telnet or similar to port 3306 to see what happens. What happens when you try that? Can the instance connect to each other? Is iptables running and blocking connections? Please edit your question to show the work you've done / do for diagnostics.
– Tim
1 min ago
add a comment |
I have a newly created Linux AMI EC2 instance and an Ubuntu instance.
And both instances try to connect to the same RDS.
The settings of both instances are exactly the same. Security groups and VPCs are the same. Only linux images are different.
But, AMI instance can't connect to RDS instance. but ubuntu instance can.
What difference made this result?
ubuntu amazon-web-services amazon-ec2 amazon-rds amazon-ami
New contributor
blurfx is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
I have a newly created Linux AMI EC2 instance and an Ubuntu instance.
And both instances try to connect to the same RDS.
The settings of both instances are exactly the same. Security groups and VPCs are the same. Only linux images are different.
But, AMI instance can't connect to RDS instance. but ubuntu instance can.
What difference made this result?
ubuntu amazon-web-services amazon-ec2 amazon-rds amazon-ami
ubuntu amazon-web-services amazon-ec2 amazon-rds amazon-ami
New contributor
blurfx is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
blurfx is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
blurfx is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked 16 mins ago
blurfxblurfx
1011
1011
New contributor
blurfx is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
blurfx is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
blurfx is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1
Do you mean "Amazon Linux" rather than "AMI instance"? Difficult to say based on the little information you've provided, Amazon Linux connects to RDS fine when properly configured. You can't ping RDS to test connectivity, but you can telnet or similar to port 3306 to see what happens. What happens when you try that? Can the instance connect to each other? Is iptables running and blocking connections? Please edit your question to show the work you've done / do for diagnostics.
– Tim
1 min ago
add a comment |
1
Do you mean "Amazon Linux" rather than "AMI instance"? Difficult to say based on the little information you've provided, Amazon Linux connects to RDS fine when properly configured. You can't ping RDS to test connectivity, but you can telnet or similar to port 3306 to see what happens. What happens when you try that? Can the instance connect to each other? Is iptables running and blocking connections? Please edit your question to show the work you've done / do for diagnostics.
– Tim
1 min ago
1
1
Do you mean "Amazon Linux" rather than "AMI instance"? Difficult to say based on the little information you've provided, Amazon Linux connects to RDS fine when properly configured. You can't ping RDS to test connectivity, but you can telnet or similar to port 3306 to see what happens. What happens when you try that? Can the instance connect to each other? Is iptables running and blocking connections? Please edit your question to show the work you've done / do for diagnostics.
– Tim
1 min ago
Do you mean "Amazon Linux" rather than "AMI instance"? Difficult to say based on the little information you've provided, Amazon Linux connects to RDS fine when properly configured. You can't ping RDS to test connectivity, but you can telnet or similar to port 3306 to see what happens. What happens when you try that? Can the instance connect to each other? Is iptables running and blocking connections? Please edit your question to show the work you've done / do for diagnostics.
– Tim
1 min ago
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "2"
};
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
});
}
});
blurfx is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f956922%2faws-ec2-ami-instance-cant-connect-to-rds-instance-but-ubuntu-instance-can%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
blurfx is a new contributor. Be nice, and check out our Code of Conduct.
blurfx is a new contributor. Be nice, and check out our Code of Conduct.
blurfx is a new contributor. Be nice, and check out our Code of Conduct.
blurfx is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Server Fault!
- 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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f956922%2faws-ec2-ami-instance-cant-connect-to-rds-instance-but-ubuntu-instance-can%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
1
Do you mean "Amazon Linux" rather than "AMI instance"? Difficult to say based on the little information you've provided, Amazon Linux connects to RDS fine when properly configured. You can't ping RDS to test connectivity, but you can telnet or similar to port 3306 to see what happens. What happens when you try that? Can the instance connect to each other? Is iptables running and blocking connections? Please edit your question to show the work you've done / do for diagnostics.
– Tim
1 min ago