Skip to content

Commit 2a73a60

Browse files
Add travis aws config script
1 parent 0acdfaa commit 2a73a60

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

.travis.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,20 @@ env:
1313
- AWS_ACCESS_KEY_ID=AKFAKEACCESSKEYID
1414
- AWS_DEFAULT_REGION=us-east-1
1515
- AWS_SECRET_ACCESS_KEY=AKFAKESECRETACCESSKEY
16+
- AWS_PROFILE=default
1617

1718
addons:
1819
snaps:
1920
- name: aws-cli
2021
confinement: classic # or devmode
2122
channel: latest/edge
2223

24+
before_install:
25+
- ./scripts/aws_travis_credentials.sh
26+
2327
install:
2428
- make --version
2529
- make docker_build
26-
- aws configure
2730

2831
script:
2932
- docker image ls

scripts/aws_travis_credentials.sh

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
mkdir -p ~/.aws
2+
3+
cat > ~/.aws/credentials << EOL
4+
[default]
5+
aws_access_key_id = ${AWS_ACCESS_KEY_ID}
6+
aws_secret_access_key = ${AWS_SECRET_ACCESS_KEY}
7+
EOL
8+
9+
cat > ~/.aws/config << EOL
10+
[default]
11+
region = ${AWS_REGION}
12+
output = json
13+
EOL

0 commit comments

Comments
 (0)