Skip to content

Commit a805ff6

Browse files
authored
Merge pull request #17 from rrigato/dev
obtain short term credentials using cloudshell
2 parents d51d40a + 03e44c1 commit a805ff6

File tree

4 files changed

+13
-1
lines changed

4 files changed

+13
-1
lines changed

.github/workflows/burnday_pipeline.yml

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ on:
33
push:
44
branches:
55
- master
6+
- dev
67
jobs:
78
run-build-test:
89
runs-on: ubuntu-latest

scripts/app_deployment.sh

+2
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ python -m unittest
2828

2929
deactivate
3030

31+
git push origin dev
32+
3133
echo "pushed to remote"
3234

3335
gh pr create --title "$1" \

scripts/burnday_build_test.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ zip $DEPLOYMENT_PACKAGE -r $PROJECT_NAME \
3434
zip -u $DEPLOYMENT_PACKAGE -j handlers/${PROJECT_NAME}_skill.py \
3535
-x *__pycache__* --quiet
3636

37-
zip -u $DEPLOYMENT_PACKAGE -j externals \
37+
zip -u $DEPLOYMENT_PACKAGE -r externals \
3838
-x *__pycache__* --quiet
3939

4040
echo "--------deployment package created--------"

scripts/cloudshell_assume_role.sh

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#assume sts role and export the credentials to be used from aws cloudshell
2+
CREDENTIALS=$(
3+
aws sts assume-role --role-arn $ROLE_ARN \
4+
--role-session-name local_debug_session \
5+
)
6+
7+
echo -e "export AWS_ACCESS_KEY_ID=$(echo $CREDENTIALS | jq -r '.Credentials.AccessKeyId')\n\
8+
export AWS_SECRET_ACCESS_KEY=$(echo $CREDENTIALS | jq -r '.Credentials.SecretAccessKey')\n\
9+
export AWS_SESSION_TOKEN=$(echo $CREDENTIALS | jq -r '.Credentials.SessionToken')"

0 commit comments

Comments
 (0)