This repo provides a C API for AWS Nitro Enclaves, including a KMS SDK that integrates it with attestation.
99
stars
75
forks
source link
what is the equivalent method of "get credentials" (about kmstool-instance) in cli? #101
Closed
raindust closed 1 year ago
I what to get credentials like https://github.com/aws/aws-nitro-enclaves-sdk-c/blob/main/bin/kmstool-instance/main.c#L151-L216 in console or "aws cli", if I use "curl http://169.254.169.254/latest/meta-data/identity-credentials/ec2/security-credentials/ec2-instance" get credential using metadata service, and send it to "kmstool-enclave-cli" inside enclave will fail because the following error:
Can I use metadata service in https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-data-categories.html , or aws cli to get equivalent method of it?