Questions tagged with Virtual Private Cloud
Content language: English
Sort by most recent
What do I need to allow for my Security group to receive inbound traffic from SQS in lambda?
I have a Lambda inside a VPC with a static IP. I have not implemented this before and I'm wondering when implementing my security group what ports or/and protocols do I need to allow for my Lambda to receive inbound traffic from SQS? I have already implemented the SQS in Lambda in CDK, such as events, and so forth so that when I recieve an event it triggers a lambda function. However, I'm not certain if I need to allow anything in my security group in order to receive traffic from SQS.
Restrict access to s3 bucket
Our company has an application running on Amazon EC2 instances in a VPC. One of the applications needs to call an Amazon S3 API to store and read objects. The company’s security policies restrict any internet-bound traffic from the applications. Which action will fulfill these requirements and maintain security?
Need guidance for the next step in my learning process
Hello Forum. **Question:** *What course or steps do I need to take next in order to learn how to host my websites in the cloud?* Below is the experience level I would estimate for myself: **PHP**, intermediate level, can write code for websites. **MySQL**, intermediate level, can assemble functional databases. >AWS courses I have completed: >* Pre-Training Questionnaire | duration 1 minute >* Introduction to Amazon Virtual Private Cloud (VPC) | duration: 7 minutes >* AWS Cloud Practitioner Essentials | duration: 6.0 hours >* Introduction to AWS Identity and Access Management (IAM) | duration: 7 minutes The AWS Cloud Practitioner Essentials is a great course. It has quite a bit of information. It took me about three (3) days for completion. I have created a root account for AWS. I have also created a IAM account for myself under the root account. I would appreciate any guidance or information that may be provided. Thank you in advance.
Unresponsive ec2 instance
Hello, On 25.05 and today on 30.05 we got alarms that instance is down/unresponsive. Instance id is i-084bee8dfe7252dd5. We are using promethues for alarms and monitoring and I checked also cloudwatch for that instance. I didn't find anything in the logs, everything seems in order. Once we get alarm, I can ping instance but I can't access it no matter what I try. I have to shutdown instance and start it again using console to get it working. Can you check on your end? Any suggestions? Best regards
Adding MFA to Workspaces "failed" problem
I have been attempting to add Mult-Factor Authentication to my workspaces account for my user base. I have configured the radius server using Free Radius from this post here: https://aws.amazon.com/blogs/desktop-and-application-streaming/integrating-freeradius-mfa-with-amazon-workspaces/ and all goes according to plan. I have the FreeRadius server using LinOTP running. The problem is in the very last step, when I go to enable MFA in workspace , I put in the information and it just says "failed". Specifically, Step 6: Enable MFA on your AWS Directory Communication between the AWS Managed Microsoft AD RADIUS client and your RADIUS server require you to configure AWS security groups that enable communication over port 1812. Edit your Virtual Private Cloud (VPC) security groups to enable communications over port 1812 between your AWS Directory Service IP end points and your RADIUS MFA server. Navigate to your Directory Service console Click the Directory you want to enable MFA on. Select Network & Security tab, scroll down to Multi-factor authentication, click Actions and Enable. In Enable multi-factor authentication (MFA) configure MFA settings: Display label: Example RADIUS server IP address(es): Private IP of the Amazon Linux 2 instance Port: 1812 Shared secret code: the one set in /etc/raddb/clients.conf Confirm shared secret code: as preceding Protocol: PAP Server timeout (in seconds): 30 Max retries: 3 This operation can take between 5-10mins to complete. Once the Radius status is “completed” you can test MFA authentication from the WorkSpace client. I really have two questions: 1. How do I do this part? Edit your Virtual Private Cloud (VPC) security groups to enable communications over port 1812 between your AWS Directory Service IP end points and your RADIUS MFA server. Maybe I'm not setting up the endpoints correctly ? Do I go to the VPC and add endpoints there? CAn you pleae be specific. 2. How do I get more information from just the "failed" in red --- how do I access the creation logs? Thanks in advance, Jon
Trouble Removing ENIs eni-0ab2e473c30b113d2 and eni-02985b14cbc402722
It appears that these network interfaces are "stuck" and I'm unable to remove them, therefore can't free (delete) the resources (VPCs, subnets, etc.) that are using them. We've been unable to track down what might still be using them. Can you confirm they are (or aren't) stuck, and if not, point us in the right direction on what's using them? Thank you.
MWAA UI Private Webserver can't be accessed through internal ALB
I am attempting to setup an MWAA environment inside of a private subnet and using an internal ALB to allow users to access the VPC endpoint that is tied to the web server IP addresses in the subnets that were chosen during environment creation. I am currently coming across an issue where if I access the MWAA UI through the console hyperlink I get sent to a page that say `This site can't be reached`. If I update the URL to include the ALB A-record and MWAA web login token I am able to access the proper page. If I access just the ALB A-record I am sent to a login page for MWAA and sent to the same page where it says `This site can't be reached`. Additional information is here in my stackoverflow question. To me it is almost as if there is some sort of re-direction issue occurring here. As for being able to access the internal ALB I read that users need access to the VPC, what do this mean exactly? https://stackoverflow.com/questions/71798790/aws-internal-alb-is-unable-to-re-direct-to-private-mwaa-webserver
cannot delete network interface related to a FSx multi AZ VPC stack despite being logged in as root user
I'm trying to delete a VPC related to FSx. I get an error saying I need to delete the following Network interfaces first: eni-01d9c56382ee91336 eni-0d1148b3737a47a4e eni-073fc4bca23bc8dbd eni-0f234498e3f3e47b0 When I try to delete the network interfaces I get another error message saying I do not have permission. I'm logged in as root user so I'm stumped as to how to do this. How do I solve this issue? Thanks, Pierre
Configured VPC NAT instances stopped working yesterday (03.03.2022, eu-central-1)
Hi, I'm confronted with a really annoying problem currently. My custom VPC (3 public subnets, 3 private subnets -> internet access through NAT instances) broke out of the blue yesterday. My infrastructure is deployed via CloudFormation and yesterday I updated a stack where three NAT instances for my VPC are located (for each public subnet there is one NAT instance deployed in it). They have worked flawlessly before yesterday and as a new Amazon Linux 2 version was released (I reference the AMI ID via /aws/service/ami-amazon-linux-latest/amzn2-ami-hvm-arm64-gp2), these instances got updated to use the newest AMI. Since then I have problems routing traffic from private subnets to the internet as things are not working as expected anymore. The current primary point of failure is that my CodePipeline fails because a CodeBuild action fails. The temporary CodeBuild instance is deployed in one of the three private subnets and then has to download a CodePipeline artifact from S3 through the internet. This step fails with the following error: `CLIENT_ERROR: RequestError: send request failed caused by: Get "https://s3.eu-central-1.amazonaws.com/<S3-bucket-name>?location=": dial tcp 126.96.36.199:443: connect: no route to host for primary source and source version arn:aws:s3:::<S3-prefix>` The thing is: before yesterday's last stack update which altered the NAT instances, everything was working as expected and CodePipeline succeeded. CodeBuild was able to download the necessary artifacts from S3 and the VPC and NAT instances were set up correctly. Then the update came in and CodeBuild fails now. The only thing that was changed was the AMI ID for the NAT instances (and I replaced absolute strings for "ProjectName" in my CodeBuild actions in CodePipeline with !Ref to the AWS::CodeBuild::Project resources which should have nothing to do with my current problem). After the updated NAT instances were not working anymore, I set their AMI IDs to explicit older versions as I assumed that there is a problem with the newest Amazon Linux 2 version. However, even with the older AMIs I'm not able to get the NAT instances working again (at least not for CodeBuild, but I noticed that ECS services running on an EC2 instance (which is also deployed in a private subnet) lost connection to the internet as well). I even redeployed the whole infrastructure to check if there is a problem on the side of AWS but the problem persists. The problem got me really frustrated now as everything was working fine. Then a small update was applied and now the NAT instances fail even if I havn't changed anything in the VPC and NAT configuration. Where should the problem be now if not on the side of AWS? My currently deployed NAT instances are configured as described by AWS and as they have worked before, they are reachable via SSH and can access the internet via the VPCs internet gateway. Still, CodeBuild continues to fail with the mentioned error and the internet seems not to be accessible from private subnets as it was the case before yesterday. I would be more than glad if anyone has suggestions how this problem can be resolved now. Thanks in advance!
NiceDCV connection gateway working example?
Are there any complete examples of a NiceDCV connection gateway? I'd like to run the gateway on a bastion host to connect to workstations on a private subnet. It seems the connection gateway configuration *requires* a web-resources url, presumably in case of a web client, but the documentation doesn't indicate how to set it up, or what files to put there.
Connect Amazon DocumentDB Cluster from Outside Amazon VPC
Connect Amazon DocumentDB Cluster from Outside Amazon VPC Amazon DocumentDB (with MongoDB compatibility) clusters are deployed within an Amazon Virtual Private Cloud (Amazon VPC). They can be accessed directly by Amazon EC2 instances or other AWS services that are deployed in the same Amazon VPC I setup an EC2 (same VPC as DocumentDB) with security permissions for port 22 SSH and can do this command below successfully to the EC2 $ ssh -i "AWSshkeyForEC2.pem" firstname.lastname@example.org No problem. I then try to setup a tunneling (for the DocumentDB at port 27017) issuing this command line $ ssh -i "AWSshkeyForEC2.pem" -L 27017:docdbwhatever.us-east-1.docdb.amazonaws.com:27017 email@example.com -N and says Warning: Permanently added 'xxxx.compute-1.amazonaws.com,yyyyy' (ECDSA) to the list of known hosts. and just hangs there? I am on a OSX machine. Overall I rather create the DocumentDB without the VPC for a DBaaS. There is a reasons for this the live hardware is on site at the factory for data and then the data should be stored at the Mongo Database in the cloud. Other Apps run in the cloud and can reference the DocumentDB. We are not going to have an App in the cloud to access hardware outside of the cloud due to security. So maybe the solution is to somehow create the DocumentDB without the VPC. I saw I could have deleted the default(VPC) and maybe I should have. The address is the magic 27017 of course for Mongo to the DocumentDB.
Security group doesn't exist but I know it exists
I created a CFN stack for Kubernetes cluster and then deleted it and noticed that the VPC and ENI were left undeleted so wanted to remove the ENI but couldn't because a security group is attached to it. Tried to remove the SG and assign a default VPS SG but it says I don't have permissions to do that. I tried looking up the SG using aws cli but it says that the SG doesn't exist. I can see it right now in my console so why does it say it doesn't exist? I'm stuck. Please help me. How do I remove the ENI, VPC and the SG. Thank you in advance.