Questions tagged [aws-security-group]

Amazon EC2 Security Groups

Amazon EC2 Security Groups for EC2. A security group acts as a virtual firewall that controls the traffic for one or more instances. When you launch an instance, you associate one or more security groups with the instance.

See Amazon EC2 Security Groups

820 questions
4
votes
1 answer

RDS - Specify IP Addresses that can access RDS instance

After following the AWS Documentation, I was able to successfully create an RDS DB Instance (PosgreSQL) and wondering if I could create a rule that limits the allowed IP addresses that can access the database. I honestly don't know where to start…
4
votes
2 answers

Elastic Beanstalk: Migrate DB Security Group to VPC Security Group

When trying to deploy my application, I recently got the following error: ERROR: Service:AmazonCloudFormation, Message:Stack named 'awseb-e-123-stack' aborted operation. Current state: 'UPDATE_ROLLBACK_IN_PROGRESS' Reason: The following resource(s)…
4
votes
1 answer

Auto Scaling activity failed because security group does not exist in VPC

I got the below error when terminating an EC2 instace, expecting another to spawn and replace it. Auto Scaling activity failed 81 seconds ago with error: The security group 'X' does not exist in VPC 'Y'. Launching EC2 instance failed. At…
tim_xyz
  • 11,573
  • 17
  • 52
  • 97
4
votes
1 answer

EC2 port 8080 not open even added Security Group

I am trying to test a simple http server on ec2 with port 8080 by python -m SimpleHTTPServer 8080 but it is not working. I have added the security group for TCP 8080, tried ALL TCP and even all All traffic. But still I cannot open the…
Ted Xu
  • 1,095
  • 1
  • 11
  • 20
4
votes
1 answer

Why does Elastic Beanstalk create two security groups?

I am trying to deploy Spring Boot Application with AWS Elastic Beanstalk. Instead of using default settings for the environment, I modified something under "VPC". After picking availability zone and one of the security groups for the VPC, I created…
4
votes
1 answer

RDS Security Permissions to Allow Public Read/Write and Private Admin

I am trying to configure my RDS Security Group configurations to be able to allow my EC2 instance to read and write to the database, but only admin access the DB via login credentials. Will my setup below achieve this? Should the admin access only…
cphill
  • 5,596
  • 16
  • 89
  • 182
4
votes
3 answers

EC2 instance cannot access Internet

I have created a new EC2 instance using terraform for installing vertica, but not able to access Internet or ping google.com within the instance. I have set up an ec2 instance with a private subnet and have set up nat gateway with a public…
4
votes
1 answer

Loadbalancer cannot get a good health check

I'm confused how the AWS load balancers work. I have a pretty simple setup... I have a rest based API that needs to be exposed to the internet (port 80) via my load balancer. I only want the load balancer exposed to the internet traffic. I have a…
bstar
  • 271
  • 2
  • 14
4
votes
1 answer

terraform : Error creating Security Group: UnauthorizedOperation: You are not authorized to perform this operation

I have a below terraform script which works fine when use it on terminal. provider "aws" { region = "${var.aws_region}" } resource "aws_instance" "jenkins-poc" { count = "2" ami = "${var.aws_ami}" instance_type =…
4
votes
1 answer

AWS security group rules deployment (lambda->SQS)

On AWS we've implemented functionality that AWS lambda pushes message to AWS queue; However during this implementation I had to manuall grant permissions to AWS lambda to add message to particular queue. And this apporach with manual clicks not so…
4
votes
3 answers

AWS Lambda to access EC2 with appropriate security group settings

I have my MongoDB living on AWS EC2 and my Lambda function (python code) is trying to access it via IP address 23.23.23.23:27017. At our company we restrict our EC2 instances to our company's IP address by setting up AWS Security Groups on EC2…
Chenna V
  • 10,185
  • 11
  • 77
  • 104
3
votes
1 answer

How to parse ingress object in cdktf security group?

Problem Unable to create security group rules in aws using CDKTF Code import cdktf_cdktf_provider_aws.security_group as SecurityGroup_ self.security_group_ = SecurityGroup_.SecurityGroup(self.scope_object, id_=self.id, name=self.name,…
3
votes
0 answers

Can't access Elastic Beanstalk Configuration: A problem occurred while loading your page: Configuration validation exception: Invalid option value

My application is running on Elastic beanstalk AL2 with docker. It is still up and running, this issue is not user facing and only internal to AWS. I upgraded to AL2 about 7 months ago and there were no problems. Recently I logged into to Elastic…
3
votes
0 answers

Whitelisting Azure DevOps Pipeline

I have a server in AWS, which is hosting a security tool. Azure DevOps supports this tool and I've installed the add on for it. I've added the step to my Pipeline and configured the service connection. We are using Hosted Agents in a Cloud AZD…
3
votes
1 answer

cloudformation failed to create subnets

I was trying to run a code and i had this error but cant identify the problem. i got the error message The CIDR '10.0.1.0/24' conflicts with another subnet (Service: AmazonEC2; Status Code: 400; Error Code: InvalidSubnet.Conflict; Request ID:…