I am following the course AWS Amazon Elastic Kubernetes Service Kubernetes masterclass devops microservices
As part of this, I have attempted to set the AWS configuration as:
aws configure
AWS Access Key ID [****************5P7N]:
AWS Secret Access Key [****************U3Hn]:
Default region name [eu-west-2]:
Default output format [json]:
aws ec2 describe-vpcs
gives the response:
An error occurred (UnauthorizedOperation) when calling the DescribeVpcs operation: You are not authorized to perform this operation.
I added the permission AdministratorAccess to the IAM user. I can now run aws ec2 describe-vpcs.