Thanks! If you're running in Lambda or Fargate, using an IAM role, you can create the SdkConfig struct the exact same way. It will automatically locate the credentials. You can leave out the dotenvy part though, as you won't be using a ".env" file anymore.
Great tutorial! One question: if my code runs on lambda or in docker on fargate, how to construct the awscfg variable in this case?
Thanks! If you're running in Lambda or Fargate, using an IAM role, you can create the SdkConfig struct the exact same way. It will automatically locate the credentials. You can leave out the dotenvy part though, as you won't be using a ".env" file anymore.