-
I have a need to adjust the expiration time of AWS credentials in my applications to s3 buckets. I have tried to use both SetExpiration() and the constructor AWSCredentials(const Aws::String& accessKeyId, const Aws::String& secretKey, const Aws::String& sessionToken, Aws::Utils::DateTime expiration) with an expiration time of my choice. But the actual expiration seems to be controlled by a different clock. For example, I use the code below to construct client->sdk_creds_ to expire immediately, but the s3 client created from client->sdk_creds_ can still access my s3 bucket. Can somebody please share some insights?
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
You can do that by managing the IAM access keys. There might be some delay when updating access keys, but you should be able to expect the changes quickly. I'm not sure what the exact expectation is. Let us know if you are seeing any unreasonable delay with this |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
You can do that by managing the IAM access keys. There might be some delay when updating access keys, but you should be able to expect the changes quickly. I'm not sure what the exact expectation is. Let us know if you are seeing any unreasonable delay with this