File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ Verify the build:
4545Add to ` ~/.aws/config ` :
4646
4747``` ini
48- [profile AdministratorAccess ]
48+ [profile ClaudeCodeAccess ]
4949sso_start_url = <your-sso-start-url>
5050sso_region = <your-sso-region>
5151sso_account_id = <your-account-id>
@@ -122,23 +122,7 @@ Add to `~/.zshrc` or `~/.bashrc`:
122122
123123``` bash
124124opencode-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) "
You can’t perform that action at this time.
0 commit comments