We are using EC2 instance in AWS, my question is how we can find the database in AWS console? while we have already checked RDS, in RDS no DB instance is available, can someone guide what is the exact location to find the database in AWS ec2 instance?
Under Services in AWS console you can find and i have highlighted with red
Related
I am a kafka newbie. I've to list the topics in the MSK(https://console.aws.amazon.com/msk/home) . I login to msk but there is no console there to run the relevant commands to list the topics. So I am trying to figure out on which EC2 is the MSK running so I can log in that machine. But I've not been able to figure out how to map the relevant EC2 instance to my current running MSK.
MSK is a managed service, which means Amazon manages the servers for you. You don't get access to the underlying servers of managed services on Amazon. If they even use EC2 instances behind the scenes (they probably do) those EC2 servers won't be visible to you.
To list the topics on your MSK cluster, you would need to do something like this from an EC2 server in the same VPC:
bin/kafka-topics.sh --list --zookeeper <zookeeper endpoint>
Where <zookeeper endpoint> is the ZooKeeper endpoint of your MSK cluster.
See the official documentation on this subject here.
I'm seeing that AWS EC2 can be achieved this objective by using a profile and script attaches to the Launch Configuration or Launch Template.
AWS EC2 User Data script to allocate Elastic IP
I'm curious if anybody try to do this on Google Cloud yet ?
If so, please share.
Thanks
I'm having some issues with a Grafana deployment. After deploying Grafana, I cant change the default password for the admin account, which you have to do the first time you launch Grafana. I log in with the default credentials, then get prompted to enter a new password. When I do, I get an "unauthorized" error. Looking at the browsers console, it seems to give a 404 error when I try to submit a new password.
I'm using an RDS instance to store Grafana user data. The RDS instance is in the same subnet as the ECS cluster. I've attached the AmazonRDSDataFullAccess policy to the ECS task role but that did not help. I also tried making the RDS instance publicly available but that was also not helpful.
I'm using Grafana version 6.5.0. I was using the latest 7.1 but downgraded hoping it would solve my current issue.
Firstly make sure your RDS database has a security group allowing inbound access from the ECS cluster. This will grant you the inbound access to the RDS database that are required.
As Fargate is serverless, a node could be destroyed so any local configuration would be gone. As you're using RDS you should make sure you're using environment variables to specify the DB connection details.
Finally add these to your task definition, using the environment item. For secrets such as password for the RDS db use the secrets option.
I want to connect to a database running in different cloud provider and it is exposed publicly.
I need to connect to that database from sagemaker notebook instance.
But the public ip of the sagemaker notebook instance needs to be whitelisted on the other side.
Is it possible to attach elastic ip to sagemaker notebook instance as I don't see any option to attach eip to sagemaker notebook instance?
No, it is not possible to assign a SageMaker notebook an Elastic IP, which is a disappointment. This missing feature makes the SageMaker product a lot more difficult to use with many sources of data, limiting its utility.
Official Amazon Answer
From the AWS SageMaker product forums on Dec 12, 2019: Possible to attach Elastic IP to sagemaker notebook instance?
Question> Is it possible to attach elastic ip to sagemaker notebook instance?
Answer> We are always re-evaluating our backlog of features based on customer requests,
so we appreciate the feedback on this feature.
You might want to start a new thread or chime in on that one if you want them to add this feature.
Possible Solutions
A general strategy for using a particular IP to access a resource would be to setup a proxy machine and authorize its IP and use it as a proxy to access your service. How hard this is depends on what you are doing - for S3 it doesn't seem possible - but for web-based requests this shouldn't be too hard. For AWS services you can use a proxy.
Personally I am trying to access Algoseek's requestor-pays S3 buckets directly from SageMaker notebooks and this isn't possible. I looked at setting up a proxy but can't figure out how. Instead I will copy the S3 data each time they add a day into our own S3 bucket.
In my case, I have whitelisted the NAT Gateway's IP in the external database.
EDIT: This works only for private subnets.
I created a WordPress app using Lightsail. It says it was created in Frankfurt Zone. However, I cannot see this instance in EC2 console. I want to create a Load Balancer for that app and add certificates, but I can't cause I don't see this instance on the list. Any ideas where can I find this Lightsail instance in EC2 console?
AWS Lightsail not shown in EC2 console, it's the main difference between the Lightsail and EC2, If you want to have more control on your EC2, so you should run EC2 instance instead of cheaper version Lightsail.
For more info about the Lighsail read the FAQ on the AWS website:
https://aws.amazon.com/lightsail/faq/
Also, you can use Lightsail load balancer instead of standard ELB on AWS, for more info read the following doc:
https://aws.amazon.com/lightsail/features/load-balancing/