In this step, we’ll set up the environment to interact with AWS resources from the developer’s terminal using AWS CLI
Go to AWS Console → IAM → Users → “Create user”
User details:
ws1-amplify
Set permissions:
AmplifyBackendDeployFullAccess
(for deploying Amplify backend resources)AWSCloudFormationReadOnlyAccess
(to check resource creation and debug stack builds)IAMFullAccess
(to manage IAM policies and verify permissions)AWSIoTFullAccess
(for IoT Core interactions via CLI and attaching IoT policies)Create Access Keys:
Store your AWS credentials securely and never commit them to version control!
Set up a named profile for this project:
# Configure AWS CLI with your profile
aws configure --profile weather-platform
# Enter when prompted:
# AWS Access Key ID: [your-access-key-id]
# AWS Secret Access Key: [your-secret-access-key]
# Default region name: us-east-1 (or your preferred region)
# Default output format: json
Verify the profile:
aws sts get-caller-identity --profile weather-platform