- Le plus récent
- Le plus de votes
- La plupart des commentaires
Looking at the error, it says that while making the API call to list the rules of security group, the AWSAccessKeyId is missing. Access key id is mandatory while making API calls. I If you are using boto3, you can refer below link: https://boto3.amazonaws.com/v1/documentation/api/latest/guide/credentials.html
As your requirement is to list the rules of security group, you can also use AWS CLI to list the security group rules. To configure AWS CLI for the same, please refer below link: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-quickstart.html#cli-configure-quickstart-config
Once AWS configure is done, please rum below command to list the rules of Security group: aws ec2 describe-security-groups --group-ids sg-XXXXXX
Note: sg-XXXXXX is the security group name.
Below is the document for AWS CLI command reference for the API “describe-security-groups” : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/describe-security-groups.html
Please ensure you have right set of credentials configured from the place you originate this call “aws configure list”
As stated in the answer above, I also suspect that you're missing the credentials you need to make the API call. There are a number of ways that you can provide these credentials, including the shared credentials file, an environment variable, programmatically, SSO, etc. What method you use depends on the needs of your environment and application.
Since this post is tagged with .NET, the following are some sections from the .NET developer guide that discuss these topics:
- https://docs.aws.amazon.com/sdk-for-net/v3/developer-guide/net-dg-config-creds.html
- https://docs.aws.amazon.com/sdk-for-net/v3/developer-guide/advanced-auth.html
Hope this helps.
Contenus pertinents
- demandé il y a un an
- demandé il y a 2 mois
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 3 mois
Thanks for the reply, I didn't read the error close enough, but I got it worked out now.
However, here's nothing that says how the request should be formatted, or even what the options are. I can see it takes a list of filters, and each filter has a name and value, but where is it written what those options are? Can you point me to something that shows the filter options?