Security group rule not added to security group #904
Unanswered
JonathanWoollett-Light
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm making a program to launch an ec2 instance, establish an ssh connection, run a simple command and print the result.
With the default security the SSH connection hangs and fails to connect. So I have tried to specify the security to match instances I start manually that I can SSH into.
But when calling
authorize_security_group_ingress
(rust, cli) the rule is not added to the specified security group.Output
I've deleted the keypair for the key shown here.
Looking at:
it shows the security group rule was not added to the security group, this is also reflected in the ec2 console where the security group is created and connected to the instance but does not have this inbound security rule. As documented here it notes
security_group_rules
is:What am I missing here?
Source
Run with
AWS_ACCESS_KEY_ID=<access key id> AWS_SECRET_ACCESS_KEY=<secret access key> AWS_DEFAULT_REGION=eu-west-2 cargo run
Beta Was this translation helpful? Give feedback.
All reactions