When doing a serverless deploy, if you are using an EC2 instance to run the deploy, can you use an IAM EC2 role instead of writing key/secret to a file?
I think that it can not use with IAM EC 2 role as far as reading the document.
<!--
title: Serverless Framework - AWS Lambda Guide - Credentials
menuText: Credentials
menuOrder: 3
description: How to set up the Serverless Framework with your Amazon Web Services credentials
layout: Doc
-->
<!-- DOCS-SITE-LINK:START automatically generated -->
### [Read this on the main serverless docs site](https://www.serverless.com/framework/docs/providers/aws/guide/credentials)
<!-- DOCS-SITE-LINK:END -->
# AWS - Credentials
The Serverless Framework needs access to your cloud provider's account so that it can create and manage resources on your behalf.
This guide is for the Amazon Web Services (AWS) provider, so we'll step through the process of setting up credential for AWS and using them with Serverless.
[Watch the video on setting up credentials](https://www.youtube.com/watch?v=HSd9uYj2LJA)
This file has been truncated. show original