Search code examples
amazon-web-servicesvisual-studioamazon-s3aws-lambdaaws-toolkit

Error Creating S3 Bucket AWS Toolkit for Visual Studio With Admin Permissions


I'm having trouble using the AWS Toolkit for Visual Studio to deploy a lambda function.

This is the error I'm getting: enter image description here

But I am a global admin and am able to see and access everything through the AWS UI. I think this may be a programmatic access issue, but where do I check or look?

Here are all my current permissions and groups on AWS: enter image description here enter image description here

How do I successfully use the AWS toolkit for Visual Studio with my admin account (I understand after getting this working, I probably want to back off the permissions - but that's a separate best practice)? One thing I'm certain of is that I'm using the correct Access key ID and Secret access key, so that itself isn't an issue, sounds like a permissions thing to me.

Thank you!


Solution

  • It appears that you have a policy named Force_MFA.

    If this policy is requiring users to authenticate with an MFA, then the AWS CLI will not be able correctly authenticate. You would either need to remove this policy, or use GetSessionToken() to provide an MFA value and then use the returned credentials with the AWS CLI.