Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InvalidGroup.Duplicate: The security group '**' already exists #2095

Open
Scumwong opened this issue Jun 21, 2024 · 2 comments
Open

InvalidGroup.Duplicate: The security group '**' already exists #2095

Scumwong opened this issue Jun 21, 2024 · 2 comments
Labels
kind/support Categorizes issue or PR as a support question. service/ec2 Indicates issues or PRs that are related to ec2-controller.

Comments

@Scumwong
Copy link

Describe the bug
I created a security group in the aws console, but when I tried to change it via ec2-controllers, I got an error that the security group already exists. This case does not support modifying manually created security groups? Is the only way to rebuild the security group is via ec2-controllers?
Steps to reproduce

Expected outcome
A concise description of what you expected to happen.

Environment

  • Kubernetes version
  • Using EKS (yes/no), if so version? yes 1.25
  • AWS service targeted (S3, RDS, etc.)
@a-hilaly a-hilaly added service/ec2 Indicates issues or PRs that are related to ec2-controller. kind/support Categorizes issue or PR as a support question. labels Jun 21, 2024
@a-hilaly
Copy link
Member

@Scumwong can you please provide a manifest of the SG you're trying to create? also tell us more about what fields you're trying to modify.

@Scumwong
Copy link
Author

apiVersion: ec2.services.k8s.aws/v1alpha1
kind: SecurityGroup
metadata:
name: example-security-group
spec:
name: "example-security-group"
description: "Example security group"
vpcID: "vpc-xxxxxxxx"
ingressRules:
- fromPort: 22
toPort: 22
ipProtocol: "tcp"
ipRanges:
- cidrIP: "0.0.0.0/0"
egressRules:
- fromPort: 0
toPort: 0
ipProtocol: "-1"
ipRanges:
- cidrIP: "0.0.0.0/0"
This is my yaml for updating a sg that has been created manually with aws console, but after apply the yaml ,log shows the sg exits and can not update

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/support Categorizes issue or PR as a support question. service/ec2 Indicates issues or PRs that are related to ec2-controller.
Projects
None yet
Development

No branches or pull requests

2 participants