Skip to content

Commit 92c3fd4

Browse files
authored
Merge branch 'flex' into docs/update-opencode-work-function
2 parents b24baeb + 9eba8a7 commit 92c3fd4

1 file changed

Lines changed: 2 additions & 18 deletions

File tree

LOCAL_AWS_SETUP.md

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Verify the build:
4545
Add to `~/.aws/config`:
4646

4747
```ini
48-
[profile AdministratorAccess]
48+
[profile ClaudeCodeAccess]
4949
sso_start_url = <your-sso-start-url>
5050
sso_region = <your-sso-region>
5151
sso_account_id = <your-account-id>
@@ -122,23 +122,7 @@ Add to `~/.zshrc` or `~/.bashrc`:
122122

123123
```bash
124124
opencode-work() {
125-
local profile="AdministratorAccess"
126-
local opencode_args=()
127-
128-
# If first arg looks like a session ID, convert it to -s <session_id>
129-
if [[ -n "$1" && "$1" != -* ]]; then
130-
opencode_args=(-s "$1")
131-
shift
132-
fi
133-
opencode_args+=("$@")
134-
135-
# Check if existing env credentials are still valid
136-
if [[ -n "$AWS_ACCESS_KEY_ID" ]] && aws sts get-caller-identity &>/dev/null; then
137-
echo "Using existing AWS credentials"
138-
/path/to/opencode/packages/opencode/dist/opencode-darwin-arm64/bin/opencode "${opencode_args[@]}"
139-
return
140-
fi
141-
125+
local profile="ClaudeCodeAccess"
142126
echo "Logging in to AWS SSO ($profile)..."
143127
aws sso login --profile "$profile" || return 1
144128
eval "$(aws configure export-credentials --profile "$profile" --format env)"

0 commit comments

Comments
 (0)