# S3/EC2 Credentials

S3 Credentials:-

* S3 credentials are used to authenticate and authorize requests to Amazon S3.
* They include an access key and a secret key, which are used to verify the identity of the requester and control access to the s3 resources.
* S3 credentials can be created for a user through the AWS Identity and Access Management (IAM) service.
* These credentials are used to send authenticated requests to Amazon S3, and they are managed and secured through IAM policies and user managemen&#x74;**.**

EC2 Credentials:-&#x20;

* EC2 instances can be configured it automatically retrieve temporary credentials from the instance metadata when an IAM role is attached to the instance.
* Their credentials are used to authenticate requests made by applications running on the EC2 instances.
* IAM roles for EC2 instances provide a secure way to distribute and manage credentials for applications running on the instances without the need to store long-term credentials on the instances.
