Skip to content

Commit 6cce342

Browse files
jwalshclaude
andcommitted
fix(security): replace real AWS account ID with placeholder
Replace account ID 107396990521 with standard placeholder 123456789012 in README.org examples. Remove hardcoded credential placeholders from switch_profile.sh dev case — use AWS_PROFILE instead. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 485b92f commit 6cce342

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

README.org

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -794,7 +794,7 @@ aws iam get-role --role-name AWSGlueServiceRole | jq -r '.Role.Arn' | tee /tmp/r
794794
#+end_src
795795

796796
#+RESULTS:
797-
: arn:aws:iam::107396990521:role/AWSGlueServiceRole
797+
: arn:aws:iam::123456789012:role/AWSGlueServiceRole
798798

799799

800800
#+begin_src emacs-lisp
@@ -803,7 +803,7 @@ aws iam get-role --role-name AWSGlueServiceRole | jq -r '.Role.Arn' | tee /tmp/r
803803
#+end_src
804804

805805
#+RESULTS:
806-
: role_arn value: arn:aws:iam::107396990521:role/AWSGlueServiceRole
806+
: role_arn value: arn:aws:iam::123456789012:role/AWSGlueServiceRole
807807

808808
#+begin_src shell
809809
echo "$role_arn"
@@ -859,7 +859,7 @@ job.commit()
859859
#+begin_src shell
860860
aws glue create-job \
861861
--name mla-job \
862-
--role arn:aws:iam::107396990521:role/AWSGlueServiceRole \
862+
--role arn:aws:iam::123456789012:role/AWSGlueServiceRole \
863863
--command Name=glueetl,ScriptLocation=s3://aif-c01-jasonwalsh/scripts/glue-script.py \
864864
--output text
865865
#+END_SRC

scripts/switch_profile.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ switch_profile() {
1212
;;
1313
dev)
1414
export AWS_PROFILE=dev
15-
export AWS_ACCESS_KEY_ID=your_aws_access_key_id
16-
export AWS_SECRET_ACCESS_KEY=your_aws_secret_access_key
15+
unset AWS_ACCESS_KEY_ID
16+
unset AWS_SECRET_ACCESS_KEY
1717
export AWS_DEFAULT_REGION=us-east-1
18-
echo "Switched to AWS dev profile"
18+
echo "Switched to AWS dev profile (uses AWS_PROFILE credentials)"
1919
;;
2020
*)
2121
echo "Usage: switch_profile [lcl|dev]"

0 commit comments

Comments
 (0)