AWS Integration and Authentication
Grove can handle AWS authentication for you, making it easy to work with AWS services from your development environment without manually managing credentials.
Setting up AWS SSO
Section titled “Setting up AWS SSO”Before using Grove’s AWS integration, you’ll need AWS SSO configured:
- Configure AWS CLI: Make sure you have AWS CLI v2 installed and configured.
- Set up SSO: Configure your AWS SSO settings in
~/.aws/config(AWS SSO configuration guide). - Test authentication: Verify you can authenticate with
aws sso login.
Your ~/.aws/config should look something like:
[default]sso_start_url = https://your-org.awsapps.com/startsso_region = us-east-1sso_account_id = 123456789012sso_role_name = DeveloperAccessregion = us-east-1Using AWS authentication with Grove
Section titled “Using AWS authentication with Grove”To enter your Grove environment with AWS authentication:
kanuka grove enter --authThis will:
- Start your Grove development environment.
- Authenticate you with AWS SSO if needed.
- Set up AWS credentials for your session.
- Show authentication status and expiration time.
Re-authenticating when credentials expire
Section titled “Re-authenticating when credentials expire”When your AWS credentials expire, you can re-authenticate:
# Re-enter with fresh authenticationkanuka grove enter --auth
# Or authenticate without entering the environmentaws sso loginUsing AWS services in your environment
Section titled “Using AWS services in your environment”Once authenticated, you can use AWS services normally:
# Inside your Grove environment with --authaws s3 lsaws ec2 describe-instancesaws lambda list-functionsSession-only authentication
Section titled “Session-only authentication”Grove’s AWS authentication is session-only, meaning:
- You’ll always be prompted to authenticate when using
--auth. - Authentication only lasts for the current shell session.
- Environment variables are cleared when entering the Grove shell.
- No persistent credentials are stored.
Troubleshooting AWS integration
Section titled “Troubleshooting AWS integration”Common issues and solutions:
“SSO session not found”: Run aws sso login first.
“Credentials expired”: Re-run kanuka grove enter --auth or aws sso login.
“Profile not found”: Check your ~/.aws/config file configuration.
“Permission denied”: Verify your SSO role has the necessary permissions.
Security considerations
Section titled “Security considerations”Grove’s AWS integration:
- Never stores long-term credentials.
- Uses temporary tokens that expire automatically.
- Respects your existing AWS CLI configuration.
- Works with your organization’s SSO policies.
Next steps
Section titled “Next steps”To learn more about Grove’s AWS integration, see the development environments concepts and the command reference.
Or, continue reading to learn about other Kānuka features.