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
0
votes
1 answer

How to make an egress access rule in boto

I have been trying to add access rules to a security group "test". Below is the code that i have been using: web = conn.create_security_group('test', 'couch_db') web.authorize('tcp', 1, 65535, '0.0.0.0/0') web.authorize('tcp', 5984, 5984,…
Th3Dark0
  • 132
  • 1
  • 2
  • 10
0
votes
2 answers

Get changed output from the ec2_group Ansible module

I'm looking for a nice way to show or list security groups in Ansible Currently I'm using the Ansible module ec2_group that silently changes the security group to match what is defined in Ansible but doesn't show what is changed. changed:…
0
votes
1 answer

Creating external access to IIS server running in AWS VPC

I have setup a new instance of Sisense in a AWS windows instance running in a VPC. This runs on top of IIS on port 8081. It is working correctly from the windows VM and I can connect to the app at http://localhost:8081 and http://[private_ip]:8081…
sparkdoo
  • 522
  • 1
  • 5
  • 13
0
votes
0 answers

Setting up davmail on Amazon EC2

I am trying to set it up on Amazon EC2 so that I can convert an OWA email into an IMAP email that I can access from anywhere. I tried setting up the server using the davmail.properties file that is here:…
Jeff
  • 1
0
votes
1 answer

Amazon RDS Security Group with Load Balancer IP

We have a setup where our Load Balancer is talking to one of our RDS instances at Amazon. For the Security Group of our RDS instance we have to fill in a IP Address. Only the IP address of the Load Balancer cant be used because it could change. So…
0
votes
1 answer

How to connect achieve TCP Socket Connection to Amazon EC2 Cloud Instance

We are using TCP socket connection to send messages from one PC to another PC. Now, we have migrated our project to a cloud environment. It is possible to send messages from our own PC to the Amazon Cloud Instance. I have already tried this but I am…
user5503016
  • 21
  • 1
  • 5
0
votes
4 answers

EC2 Security Groups: Allow access from one group to another group

I have 2 security groups A1 and A2. There are some Ec2 instances belonging to A1 or A2 (not both). Question: Only the EC2 instances belonging to A1 should be able to access instances belonging to A2. i.e If I try to logon from my desktop machine…
-1
votes
1 answer

Can AWS security groups protect EC2 from being attacked by other instances inside AWS?

AWS security groups can protect EC2 from outside AWS. how about from other instances inside AWS network? Can they protect EC2 from being attacked by other instances inside AWS? ------------------------ | AWS | | EC2-1 EC2-2 …
eastwater
  • 4,624
  • 9
  • 49
  • 118
-1
votes
1 answer

Terraform security group configuration: allow getting packages from github via https

i wanted to create a security group, which allowes users to travel threw the port 443 and 80. I need the port 443 for downloading github actions packages, however the it sais that the connection timed out. If i add in the GUI from AWS the Group: ALL…
-1
votes
3 answers

conflicting issue for aws_security_group_rule attributes cidr_blocks and source_security_group_id

Below is the locals sg_rules output I am getting check the value for cidr_blocks and security_group_id variables. At a time either of the values will be "security_group_id" = tostring(null) or "cidr blocks" = tolist([]) Locals Outputs : sg_rules =…
-1
votes
1 answer

What is the meaning of this security group declaration in terraform

Reading some tf code for a postgresql related vpc security group, I see this resource "aws_security_group" "xxx" { name = "xxx" description = "xxx" vpc_id = xxxx ingress { description = "xxxx" from_port = 5432 …
java_doctor_101
  • 3,287
  • 4
  • 46
  • 78
-1
votes
2 answers

How do i add a security group as an inbound rule to another security group in terraform

I have a Terraform codebase which deploys a private EKS cluster, a bastion host and other AWS services. I have also added a few security groups to the in Terraform. One of the security groups allows inbound traffic from my Home IP to the bastion…
-1
votes
1 answer

EC2 open port for only private IP address

My Linux based EC2 instances have both public and private IPs. I am hosting two servers on it: S3 server, which will be accessible over both internet/private network and NFS server, which should be accessed only via private IPs/internal network. I…
ashish
  • 813
  • 3
  • 10
  • 18
-1
votes
2 answers

Creating an ec2 instance using terraform by attaching a security group that already exists

How to add an instance to an existing security group while creating in terraform instead of creating a new security group resource? code in var.tf variable "sg" { type =string default = "sg-111436g6535hc63xc" } code in resource.tf resource…
Manu
  • 51
  • 1
  • 8
-1
votes
1 answer

how can i use nodejs to add a security group to an EC2 instance that is already running?

the title says almost everything, but just to make it clear, I DON'T want to (1) use the console, OR (2) use the CLI, I want to add a SG dynamically using nodejs. I am shocked that there is not an obvious answer to this in the AWS documentation,…