You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I first list all group names to ensure what I try to filter by is correct. It works just fine when I filter by vpc id here. The names expected are listed. However, when I attempt to narrow this down by using the --group-names along with the vpc-id as filter, the cli attempts to use a completely different vpc-id than what is passed in.
`
➜ ~ echo ${vpc_id}
vpc-1234123e
➜ ~
➜ ~ aws ec2 describe-security-groups
--filters "Name=vpc-id,Values=vpc-1234123e" --query "SecurityGroups[*].GroupName"
[
"foo",
"default"
]
➜ ~ aws ec2 describe-security-groups --group-names foo
--filters "Name=vpc-1234123e,Values=vpc-1234123e"
An error occurred (InvalidGroup.NotFound) when calling the DescribeSecurityGroups operation: The security group 'foo' does not exist in default VPC 'vpc-9999111e'
`
The text was updated successfully, but these errors were encountered:
@churnikorn Could you provide debugs for running this command? I suspect this is just service-side behavior where the --group-names and --filters parameters are not compatible for some permutation of it.
* Revert "fix: Dependency and runtime mismatch at init now displays the correct error message (aws#3211)"
This reverts commit 17ef26d.
* Revert "feat: SAM Init interactive flow redesign (aws#2958)"
This reverts commit 307ded6.
I first list all group names to ensure what I try to filter by is correct. It works just fine when I filter by vpc id here. The names expected are listed. However, when I attempt to narrow this down by using the --group-names along with the vpc-id as filter, the cli attempts to use a completely different vpc-id than what is passed in.
`
➜ ~ echo ${vpc_id}
vpc-1234123e
➜ ~
➜ ~ aws ec2 describe-security-groups
--filters "Name=vpc-id,Values=vpc-1234123e" --query "SecurityGroups[*].GroupName"
[
"foo",
"default"
]
➜ ~ aws ec2 describe-security-groups --group-names foo
--filters "Name=vpc-1234123e,Values=vpc-1234123e"
An error occurred (InvalidGroup.NotFound) when calling the DescribeSecurityGroups operation: The security group 'foo' does not exist in default VPC 'vpc-9999111e'
`
The text was updated successfully, but these errors were encountered: