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
2
votes
3 answers

authorize aws security group using python boto3 with description for each ingress

I am preparing a script to update security group with myip and static string when ever i am running with different network connection . sg.authorize_ingress(DryRun=False,IpPermissions=[{'IpProtocol': 'tcp','FromPort': 22,'ToPort': 22,'IpRanges':…
user365270
  • 31
  • 4
2
votes
3 answers

Tomcat running on Amazon EC2 not accessible outside AWS

Have found plenty of answers to this question but nothing seems to be working. I have a windows EC2 instance which has tomcat 8 installed and running on port 8080. I have my application deployed and I am able to access it as localhost:8080/myapp by…
2
votes
1 answer

Security group for s3 hosted website making http requests

Let’s assume that I have a S3 hosted website. Aside from that I have an EC2 that would be to receive http requests from that website. Is there a way that I can set up a security group so that that EC2 can only receive http requests from that…
rodrigocf
  • 1,951
  • 13
  • 39
  • 62
2
votes
2 answers

Security Group only showing outbound rules

I have a Postgres RDS instance set-up and configured within a VPC with subnets and security groups. The issue is that the instance doesn't seem to be allowing inbound connections. In the AWS RDS console under connect it displays the security group…
blountdj
  • 599
  • 1
  • 11
  • 23
2
votes
1 answer

How to expose port 8888 on AWS EC2 instance with HTTP

I want to expose port 8888 on my AWS EC2 free-tier micro instance. Right now, my security group for the instance has this in bound protocol: Custom TCP Rule TCP 8888 0.0.0.0/0 Jupyter Notebook Once I set this up, if I go to the…
2
votes
2 answers

How to SSH to target AWS machine using a bastion host

Assuming Machine A is target machine which I want to SSH into finally while Machine B is a bridge machine (bastion host). These two machines are accessible using the same PEM file. The security group of Machine A allows SSH connections only from…
Wasim Thabraze
  • 780
  • 1
  • 12
  • 29
2
votes
3 answers

AWS Cloud Formation - Requested configuration not supported AWS::EC2::Instance

I am getting below error on one of my cloud formation template - 13:00:10 UTC+0550 CREATE_FAILED AWS::EC2::Instance WebApplicationServer The requested configuration is currently not supported. Please check the documentation for supported…
2
votes
1 answer

How to output multiple elements via AWS query?

I trying to output in a column format three keys from 'rds'. If I start with this statement: aws rds describe-db-instances --region us-east-1 --query 'DBInstances[*].[DBInstanceIdentifier, PubliclyAccessible, VpcSecurityGroupId]' --output text ...I…
2
votes
3 answers

Edit Default Security Group created by aws for AWS Active Directory via cloudformation

When AWS Active Directory(Type: "AWS::DirectoryService::MicrosoftAD") is created via cloud formation, the AWS also creates the security group for domain controllers. The description for such security group is "AWS created a security group for…
2
votes
2 answers

Import inbound security group rules on AWS

I have a security group which has quite a few inbound rules. Can I reference to this group from another group so that the referencing group inherits all the rules from its parent? For example: Group A Port 3306. Traffic from X.X.X.X allowed. Port…
super.t
  • 2,526
  • 7
  • 32
  • 51
2
votes
3 answers

How to give a VPC and all its instances access to a AWS Security Group

My goal is simple: Allow any instance inside a VPC to connect to a specific security group. The field for allowed sources suggests: "CIDR, IP or Security group". Is there a way for me to specify a VPC? The reason beeing that I have multiple…
2
votes
2 answers

Access Amazon EC2 instance only from ELB

I deployed a simple website on EC2 instance, and created an elastic load balancer, routing traffic to this EC2 instance. I also created a CNAME record on my DNS registrar, pointing my domain (www.example.com) to the load balancer DNS name…
2
votes
1 answer

How to change RDS Security Group using boto3?

I am restoring (=creating a new instance) an RDS MySQL Snapshot using boto3. Unfortunately the Security Group does not get copied over instead it gets assigned the default Security Group which is has no limitations on incoming traffic. Looking at…
kev
  • 8,928
  • 14
  • 61
  • 103
2
votes
1 answer

AWS ElasticBeanstalk Security Groups

I have a web application launched using ElasticBeanstalk (EB) with load balancer, which instances may be added/removed based on the trigger. Now I have a Redis server hosted on EC2 with port 6379 that I only want this very EB instances (all the…
2
votes
1 answer

Why have the same security group and how can have not the same one in VPC?

I would like to create EFS in AWS and it is said in documentation, that I can attach it only to instances, which have the same security group as my VPC. How to know security group of my VPC? Suppose it is default and my instances have different…
Dims
  • 47,675
  • 117
  • 331
  • 600